Barber paradox 2026-10-31
For a binary relation , no object can satisfy for every . Putting would give for . The forward direction derives by a negation introduction subproof assuming ; the reverse direction then gives , a contradiction. Thus this argument even avoids needing the law of excluded middle. The familiar interpretation reads as “ shaves ”; the logical obstruction is self-application rather than a physical peculiarity of shaving.
Classical first-order logic has the quantifier and logical equality rules of natural deduction together with unrestricted double-negation elimination, or equivalently the law of excluded middle. It is interpreted in ordinary two-valued first-order structures.
Intuitionistic first-order logic has the usual introduction and elimination rules for logical connectives, quantifiers and logical equality, but no unrestricted double-negation elimination or law of excluded middle. Its proofs retain the witness and logical disjunction information that can be lost in classical first-order logic.
Intuitionistic propositional logic Created 2026-09-24 Updated 2026-11-05
Intuitionistic propositional logic formalizes reasoning in which a proof of a logical disjunction supplies a proof of one disjunct, and a proof of an logical implication transforms proofs of its antecedent into proofs of its consequent. It has the usual introduction and elimination rules for conjunction, disjunction and implication, together with elimination from falsity, but does not adopt the unrestricted law of excluded middle or double-negation elimination.
A two-world Kripke model for intuitionistic propositional logic illustrates the difference. Let , with forced only at . At , neither nor is forced: is not available there, and its possible future truth prevents . Consequently is not forced at . This gives a semantic counterexample to unrestricted excluded middle, while preserving the persistence of intuitionistic Kripke forcing.
Mathematical logic Created 2026-09-24 Updated 2026-10-18
Mathematical logic studies formal languages, formal proofs, model theory, computability theory, and the foundations of mathematics. It makes the rules of reasoning explicit enough that reasoning itself becomes an object of mathematics. Proof theory studies deductions; model theory studies interpretations in which statements hold.
Three questions organize the subject: is an expression a well-formed first-order formula, is it true in a specified first-order structure, and does it have a formal proof from specified axioms? These questions are distinct. For example, is a first-order sentence in an appropriate first-order language; it is false in the natural numbers but true in the rational numbers, with .
The beauty of mathematical logic is that the same logical connectives and rules of universal quantification and existential quantification organize arguments across mathematics. Classical propositional logic uses two truth values; Intuitionistic propositional logic interprets logical implication through constructions on proofs, without unrestricted law of excluded middle. This proof-based framework is developed in Frank Pfenning, Natural Deduction, sections 1–3.
Work in ZF with the law of excluded middle, without the axiom of choice. The paper's terminology is an infinite Dedekind-finite set. The useful common principle is countable union of explicitly ordered finite lists without choice: given an actual sequence of finite lists, enumerate their entries by list number and position using a Cantor pairing function. If the union of entries is infinite, repeatedly take the entry with the least code not already selected. This produces an injection from without choosing any enumerations of unordered sets.
Consequently, if a family of objects has an explicitly ordered finite list of labels for each object, and only finitely many objects can be made from any given finite pool of labels, then a countably infinite list of distinct objects forces a countably infinite subset of the label set. For a Dedekind-finite label set this is impossible. If the label set embeds into the object family as well, infinitude is preserved. Thus
The distinction between ordered lists supplied by the data and arbitrary finite subsets is essential: a blanket countable-union theorem for unordered finite sets would introduce a choice principle.
A proper filter on a set contains , excludes , is upward closed, and is closed under finite intersections. Order its proper extensions by inclusion. The union of a nonempty chain is again a proper filter: finitely many members lie together in one chain member. Zorn lemma, and hence the axiom of choice, gives a maximal extension . If neither nor belongs to , maximality of says adjoining either one produces the improper filter. There are therefore with and , contradicting . Thus is an ultrafilter.
For Łoś theorem, interpret the ultraproduct using when , with functions and relations interpreted coordinatewise. These interpretations are well defined because changing finitely many argument representatives changes them only outside the intersection of their agreement sets, which belongs to . For any first-order formula and sequences of parameters,
Prove this by structural induction. Atomic formulas follow from the interpretation of terms. Conjunction uses finite intersections; negation uses the ultrafilter dichotomy between a set and its complement. If holds in the ultraproduct, a witness sequence gives a subset of in . Conversely, choose a witness for in every factor where one exists, and an arbitrary element in every other factor. This is the second explicit use of the axiom of choice; all factors have nonempty carriers. The inductive hypothesis applied to supplies the ultraproduct witness. The other connectives and universal quantification follow from these cases.
For the possible worlds, use free filters, equivalently proper filters extending the cofinite filter . Here “nonprincipal” must have this free-filter meaning: merely saying that a filter has no single generating subset need not make an accessible least world. The designated world is , and all worlds have carrier . Atoms, including equality, are forced by
Equality may identify distinct sequences at a world; it is a persistent congruence, and at an ultrafilter world its quotient is the ordinary ultraproduct.
The required equivalence with all ultraproducts uses dense-extension filter semantics. Its recursive clauses are
Every extension in these clauses is a free proper filter. The dense clause for disjunction is essential; for propositional formulas, local disjunction would instead give a Kripke model for intuitionistic propositional logic and would invalidate the claimed equivalence.
The useful separation fact is membership in a free filter is detected by its ultrafilter extensions:
Indeed, if , every has infinite intersection with : a finite intersection would imply after intersecting with a suitable cofinite set. Hence adjoining generates a free proper filter, which extends to a nonprincipal ultrafilter by the ultrafilter lemma.
Induction on formulas now gives . Negation and implication follow by adjoining the positive set on which their classical truth conditions fail. For disjunction, membership of lets every extension be refined to an ultrafilter containing one of the two sets. If that union is absent from , an ultrafilter extending contains its complement and has no further proper extension, contradicting the dense clause. For existence, choose coordinate witnesses on as in Łoś theorem. For universality, if , choose a counterexample in every factor outside it and arbitrary elements elsewhere. The resulting sequence has , so cannot force that instance. The converse follows from upward closure and persistence.
At the designated world, therefore,
This semantics validates classical first-order logic, including law of excluded middle. For example, every free filter has an ultrafilter refinement deciding an atomic formula, so its excluded middle is forced even when neither disjunct is forced at the original world. To see concretely why local disjunction fails, take and an atom true exactly at even indices: neither its truth set nor its complement is cofinite, although every ultraproduct satisfies its excluded middle.
Write . Use negation introduction on the existential claim. For its fresh witness , instantiate ; the resulting self-application says both and its reverse. The given law of excluded middle then provides the two cases.
1  ∀x. ∀y. (S(x,y) ∨ ¬S(x,y))                    premise
 2  | ∃b. H(b)                                   assumption
 3  | | H(b)                                     assumption, b fresh
 4  | | (S(b,b) → ¬S(b,b)) ∧ (¬S(b,b) → S(b,b))  ∀-elim 3, p := b
 5  | | S(b,b) → ¬S(b,b)                         ∧-elim-L 4
 6  | | ¬S(b,b) → S(b,b)                         ∧-elim-R 4
 7  | | ∀y. (S(b,y) ∨ ¬S(b,y))                   ∀-elim 1, x := b
 8  | | S(b,b) ∨ ¬S(b,b)                         ∀-elim 7, y := b
 9  | | | S(b,b)                                 assumption
10  | | | ¬S(b,b)                                →-elim 5,9
11  | | | ⊥                                      ¬-elim 9,10
12  | | | ¬S(b,b)                                assumption (new case)
13  | | | S(b,b)                                 →-elim 6,12
14  | | | ⊥                                      ¬-elim 13,12
15  | | ⊥                                        ∨-elim 8,9–11,12–14
16  | ⊥                                          ∃-elim 2,3–15
17  ¬∃b. H(b)                                    ¬-intro 2–16
Both case assumptions are discharged at line 15; the witness assumption is discharged at line 16. Since is absent from the surrounding premise and the exported conclusion , existential quantifier elimination rule is valid. Line 17 is the required negated existential. This is the diagonal self-application underlying the barber paradox.
A derivation of the law of excluded middle using only the supplied primitive rules is
1  | ¬(A ∨ ¬A)    assumption
2  | | A          assumption
3  | | A ∨ ¬A     ∨-intro-L 2
4  | | ⊥          ¬-elim 3,1
5  | ¬A           ¬-intro 2–4
6  | A ∨ ¬A       ∨-intro-R 5
7  | ⊥            ¬-elim 6,1
8  ¬¬(A ∨ ¬A)     ¬-intro 1–7
9  A ∨ ¬A         ¬¬-elim 8
Both boxes have been discharged, so the final formula has no undischarged assumptions.
Split on the law of excluded middle for , then use disjunction elimination:
 1  D ∧ E          premise
 2  (A ∧ D) → B    premise
 3  (¬A ∧ E) → B   premise
 4  D              ∧-elim-L 1
 5  E              ∧-elim-R 1
 6  A ∨ ¬A         excluded middle
 7  | A            assumption
 8  | A ∧ D        ∧-intro 7,4
 9  | B            →-elim 2,8
10  | ¬A           assumption
11  | ¬A ∧ E       ∧-intro 10,5
12  | B            →-elim 3,11
13  B              ∨-elim 6,7–9,10–12
The two occurrences of have identical type and depend only on the corresponding temporary branch assumption and the original premises.
Use only the displayed natural deduction rules. Let abbreviate . Indentation below marks temporary assumptions; the closing rule names the assumption discharged.
1  | ¬A                         assume
2  | | φ                        assume
3  | | A                        ∨-intro-L, 2
4  | | ⊥                        ¬-elim, 3 and 1
5  | ¬φ                         ¬-intro, discharge 2–4
6  | A                          ∨-intro-R, 5
7  | ⊥                          ¬-elim, 6 and 1
8  ¬¬A                          ¬-intro, discharge 1–7
9  A                            ¬¬-elim, 8
There are no undischarged assumptions at line 9, so this proves the law of excluded middle. The use of double-negation elimination is explicit; an unproved appeal to the derived RAA rule is unnecessary.
Apply the complete logical derivation of the law of excluded middle in (a) to , obtaining . Then use the disjunction elimination rule, constructing each logical implication by an explicit hypothetical subproof:
1  Q ∨ ¬Q                              result of (a), φ := Q
2  | Q                                 first case
3  | | P                               assume
4  | | Q                               available from 2
5  | P → Q                             →-intro, discharge 3–4
6  | (P → Q) ∨ (P → ¬Q)                ∨-intro-L, 5
7  | ¬Q                                second case
8  | | P                               assume
9  | | ¬Q                              available from 7
10 | P → ¬Q                            →-intro, discharge 8–9
11 | (P → Q) ∨ (P → ¬Q)                ∨-intro-R, 10
12 (P → Q) ∨ (P → ¬Q)                  ∨-elim, 1, cases 2–6 and 7–11
Both case assumptions and both hypothetical assumptions have been discharged. Thus the conclusion is a theorem, not a logical implication that depends on assuming .
The logical implication associates to the right. Assume its two antecedents, then use nested applications of the disjunction elimination rule.
1  | P ∨ Q                              assume
2  | | P ∨ ¬Q                           assume
3  | | | P                              first case of 1
4  | | | P                              available from 3
5  | | | Q                              second case of 1
6  | | | | P                            first case of 2
7  | | | | P                            available from 6
8  | | | | ¬Q                           second case of 2
9  | | | | ⊥                            ¬-elim, 5 and 8
10 | | | | P                            ⊥-elim, 9
11 | | | P                              ∨-elim, 2, cases 6–7 and 8–10
12 | | P                                ∨-elim, 1, cases 3–4 and 5–11
13 | (P ∨ ¬Q) → P                       →-intro, discharge 2–12
14 (P ∨ Q) → ((P ∨ ¬Q) → P)             →-intro, discharge 1–13
Tautology Created 2026-10-14 Updated 2026-10-25
A tautology is a propositional formula true under every Boolean valuation in classical propositional logic, such as the law of excluded middle . A primitive proposition is not a tautology, even if it represents a true statement. See forall x: Calgary, section 12.1.
Three-valued logic 2026-11-05
A three-valued logic uses three truth values together with specified logical connectives and a rule for which values count as designated truth. The truth-value set alone does not determine the logic. A third value can represent incomplete information, but its intended interpretation and inference rules must also be supplied.
For a concrete strong-Kleene semantics, take , , and define negation by , conjunction by and disjunction by . Then and , while . If only is designated, the law of excluded middle is not valid for every valuation in this semantics.
Another three-valued semantics can use implication . It makes , whereas defining implication as would give . This explicit difference shows why one cannot reason from the number of values without specifying the connective tables and designated values.