AI Glossary / Graphs and symbolic AI / Beginner
Contradiction
Definition
In classical logic, a contradiction is a statement that is false under every interpretation, such as P AND NOT P. A set of statements is inconsistent when no interpretation makes all of them true together.
What it means
Contradiction is stronger than disagreement or uncertainty. Two people can disagree because they use different definitions, refer to different times or lack information. A formal contradiction arises only after the relevant claims and context are made precise.
For example, the statements a door is open at noon and the same door is not open at noon conflict if open has the same meaning in both. The door being open at noon and closed at one o'clock need not conflict. Time and identity are part of the proposition.
A statement can be false in one situation without being a contradiction. A light can be off now but on later.
Symbolic AI uses contradiction both as a problem to detect in knowledge bases and as a deliberate tool in proofs.
How it works
A truth table checks a finite propositional formula across assignments. If none makes it true, it is unsatisfiable. For P AND NOT P, setting P true makes NOT P false, while setting P false makes P false; the conjunction fails either way.
Larger rule sets can be checked using SAT, SMT or theorem-proving techniques, depending on their language. A contradiction can be indirect: no single pair of input sentences need visibly look like P and NOT P before inference reveals the conflict.
Proof by refutation adds the negation of a desired conclusion to the premises. If that enlarged set is inconsistent, the premises entail the conclusion in classical logic. This procedure must distinguish inconsistency caused by the added assumption from a knowledge base that was already inconsistent.
Classical logic has the principle of explosion: an inconsistent set entails every proposition. This is a mathematical consequence of its semantics, not permission for a practical application to return arbitrary answers. Systems often detect and isolate conflicts before using the affected knowledge.
Paraconsistent logics change the inference framework so some contradictions do not cause unrestricted explosion. They require explicit semantics; a system cannot simply ignore inconvenient consequences and still claim an unchanged classical interpretation.
Three practical examples
- A configuration checker detects that one requirement forces a feature on while another forces the same feature off under identical conditions.
- A theorem prover temporarily assumes a claim's negation and derives an impossibility to establish the original claim from its premises.
- A knowledge-base review finds that two imported records conflict only because their time qualifiers were omitted during conversion.
Think of it this way
Think of a rulebook requiring the same switch to be both on and off at the same instant. No switch setting can satisfy the combined demand.
The analogy assumes a shared definition of on and off and the same switch and time. A flashing switch, an uncertain sensor or two different devices does not automatically create the same logical problem. Formal contradiction depends on the modeled propositions.
Worked example
An indirect conflict among three rules
Let A mean a request is accepted and R mean it is reviewed. Consider these premises: A; A ⇒ R; and NOT R.
From A and A ⇒ R, infer R. This conflicts with NOT R, so all three premises cannot be true together. A truth-table check confirms that A must be true and R false because of the first and third premises, but then A ⇒ R is false.
Each two-premise subset is satisfiable. A with A ⇒ R allows A true and R true. A with NOT R allows A true and R false. A ⇒ R with NOT R allows A false and R false. The conflict therefore depends on the combination of all three.
If the actual policy allows accepted requests to await review, the implication may be the mistaken premise. If review was completed but the record is stale, NOT R may be mistaken. Logic identifies the incompatible set; it does not independently decide which real-world source should be corrected.
Illustrative case study
Fictional case: Willow Approvals imports accepted requests and review statuses into a rule engine. A policy translation says every accepted request has already been reviewed, producing contradictions for newly accepted requests awaiting review.
The team discovers that the policy actually requires review before final release, not before acceptance. It corrects the event distinction and retains timestamps in the imported facts.
The lesson is that inconsistency can expose a modeling error, a data error or a real process exception. Repair should follow evidence about the cause rather than deleting whichever statement is easiest to remove.
Common misconceptions and mistakes
- Every false sentence is a contradiction. A contradiction is false under every relevant interpretation.
- Missing evidence is the same as explicit negation. That depends on the knowledge system's assumptions.
- A contradiction identifies the false premise automatically. It identifies incompatibility, not necessarily its source.
- Opposite claims at different times always conflict. Their temporal scope can make both legitimate.
- A proof search timeout proves consistency. It may leave the question unresolved.
Business use
Contradiction checking helps teams audit requirements, configuration rules and structured knowledge. Its value is strongest when the system can show a small conflicting set and connect each premise to a source or policy owner.
Preserve entity identity, time, scope and the distinction between unknown and false. Define what the application does when inconsistency appears: flagging an affected record, withholding a derived conclusion or requesting a targeted review may be appropriate. Treat consistency as one quality property, not proof of completeness or real-world accuracy. A consistently wrong dataset remains wrong.
People also ask
Can a contradiction be useful?
Yes. Deriving one from a deliberately added assumption can support a proof by refutation.
Is inconsistency the same as incompleteness?
No. Incompleteness means relevant information or conclusions are missing; inconsistency means some accepted statements cannot all hold.
Do all logics treat contradictions identically?
No. Classical and paraconsistent systems differ, so the intended logic must be specified.
Check your understanding
A rule set says A, A implies B, and NOT B. Can all three be true in classical logic?
Answer: No. The first two entail B, conflicting with NOT B.
Related terms
- Consistency
- Satisfiability
- Negation
- Entailment
- Proof by Contradiction
- Refutation
- unsatisfiable core
- paraconsistent logic
Learn next
Construct the truth table for the worked three-premise set and verify each two-premise subset separately. Then add time labels to accepted and reviewed and explain how different policy wording changes whether the records conflict.
More in Graphs and symbolic AI
- Continuous domains - Continuous domains are sets of possible variable values modeled as a continuum, such as all real numbers in an interval.
- Contraction - A contraction is a mapping that reduces the distance between any two inputs by at least a fixed proportional factor smaller than one.
- Contraction hierarchies - Contraction hierarchies are a shortest-path acceleration technique that preprocesses a weighted graph into an ordered hierarchy with shortcut edges.
- Control theory - Control theory studies how to influence a changing system so that its behavior meets specified objectives.
- Corpus - A corpus is a collection of language material assembled for analysis, research or computational use.
- Critical path - A critical path is a sequence of dependent activities that determines a project's earliest completion time in a basic precedence schedule.
Sources
AIMA educational logic implementation, including propositional evaluation, entailment, satisfiability and resolution: https://aima.cs.berkeley.edu/python/logic.html
University of Miami resolution notes, including contradiction through the empty clause: https://www.cs.miami.edu/home/geoff/Courses/TPTPSYS/FirstOrder/Resolution.shtml
The approval rules and fictional investigation are original illustrations.
Previous: Contractive operator Next: Contrast