docs/lawvere-fixed-points.md

Lawvere's fixed-point theorem: Cantor, Russell, Gödel, Tarski, halting

The theorem

F. William Lawvere, "Diagonal arguments and cartesian closed categories" (1969). It holds in any cartesian closed category: objects A and B, an exponential B^A, and evaluation.

A map φ : A → B^A is point-surjective if every point g : 1 → B^A equals φ(a) for some point a : 1 → A.

Theorem. If φ : A → B^A is point-surjective, then every f : B → B has a fixed point.

Proof. Define g : A → B by g(a) = f(φ(a)(a)). This is the diagonal: a is used once as an index and once as an argument. By point-surjectivity, g = φ(a₀) for some a₀. Then

φ(a₀)(a₀) = g(a₀) = f(φ(a₀)(a₀)),

so b = φ(a₀)(a₀) is a fixed point of f. ∎

The proof uses nothing beyond application and the cartesian closed structure: no excluded middle, no choice, no case split on truth values. It is constructive, and it holds in every topos and in type theory.

Contrapositive. If some f : B → B has no fixed point, then no φ : A → B^A is point-surjective. Every classical limitative result is this contrapositive with a fixpoint-free f, and every positive self-reference result is the theorem read directly.

The instances

The common reading is Noson Yanofsky, "A universal approach to self-referential paradoxes, incompleteness and fixed points" (Bulletin of Symbolic Logic, 2003).

Cantor. Take B = 2 (Bool) and f = negation, which swaps the two points and fixes neither. Then there is no surjection A → 2^A: no set enumerates all of its own subsets. The diagonal subset {a | a ∉ φ(a)} is g.

Russell. Read A as "all sets" and φ(x)(y) = (y ∈ x). With f = negation, g is the predicate y ∉ y. If the collection of all sets were a set R with membership as its φ, g would be some φ(r), and r ∈ r would be a fixed point of negation. Hence there is no set of all sets with naive comprehension.

Gödel. Here the theorem runs positively. In arithmetic, take A as formulas with one free variable and B as sentences up to provable equivalence. φ(ψ)(χ) = ψ(⌜χ⌝) is substitution of a Gödel numeral, which is representable inside arithmetic. So every definable f : B → B has a fixed point: this is the diagonal lemma. Applied to f(σ) = ¬Prov(⌜σ⌝), it yields G with G ↔ ¬Prov(⌜G⌝). If the system is consistent it does not prove G, and with ω-consistency (or Rosser's refinement, without it) it does not prove ¬G either.

Tarski. Suppose arithmetic defines its own truth predicate True. Then negation on sentences, f(σ) = ¬True(⌜σ⌝), is definable, so by the diagonal lemma it has a fixed point L with L ↔ ¬True(⌜L⌝). With True(⌜L⌝) ↔ L, that is L ↔ ¬L. Negation on truth values has no fixed point, so truth is not definable in the system.

Halting. Take A as programs and B as {halts, loops}. A halting decider h would make φ(p)(q) = h(p, q) a total computable map from programs onto the computable predicates on programs. The map f that swaps halting and looping is computable as program behaviour: "if told halts, loop; else halt". A diagonal program d(q) = f(h(q, q)) then contradicts h on input d. So there is no halting decider.

Kleene's recursion theorem, the Y combinator, Scott's D∞. These are the positive readings. Programs do surject onto computable functions on programs, so every computable transformation of programs has a fixed point up to extensional equivalence. In the untyped λ-calculus, Y f = (λx. f(x x))(λx. f(x x)) is the diagonal g applied to itself, literally the proof term above. Scott built a model D ≅ D^D; Lawvere then forces every endomap of D to have a fixed point, which is why D carries a domain order with least fixed points rather than being a plain set.

The pattern. Wherever a structure reaches all of its own predicates (self-reference: Gödel, Kleene, Y), every endomap of the value object has a fixed point. Wherever the value object has a fixpoint-free endomap (Bool's negation), the structure cannot reach all of its own predicates (Cantor, Russell, Tarski, halting). This is one theorem, read in two directions.

The excluded middle, constructively

Excluded middle over all types is inconsistent precisely because Bool has an automorphism with no fixed point. In univalent foundations,

LEM∞ : Π(A : U). A + ¬A,

and even global double-negation elimination Π(A : U). ¬¬A → A, contradict univalence (HoTT book, Theorem 3.2.2 and Corollary 3.2.7). Univalence turns Bool's swap into a loop in the universe at Bool. A uniform function choosing an element of every inhabited type must commute with transport along that loop, so its value at Bool would be a fixed point of the swap, and the swap has none. This is Lawvere's contrapositive with the universe's own symmetry in the role of f: a uniform binary decision over everything collides with a fixpoint-free self-map of the binary.

Restricted to mere propositions (types with at most one element up to paths, the posets of truncated fibres), LEM₋₁ : Π(P : Prop). P + ¬P is consistent with univalence. The binary split is coherent exactly where fibres carry no plurality of witnesses. On proof-relevant fibres, a symmetry of the fibre with no fixed point blocks every uniform choice. That is why Σ is not classical ∃: a point of Σ keeps its witness, and a uniform P + ¬P over such fibres asks for a choice that no symmetric structure can make.

Withholding excluded middle is not refuting it: ¬¬(P ∨ ¬P) is provable intuitionistically. Lawvere's theorem itself, and Cantor's theorem with it, hold constructively. The constructive reading of disjunction and existence (Brouwer, Heyting, Bishop) asks a proof of P ∨ ¬P to say which side holds, with its witness. Univalence makes the inconsistency of demanding that uniformly into a theorem.

Quantifiers as adjoints, and the fibre

Lawvere, "Adjointness in foundations" (1969) and "Equality in hyperdoctrines" (1970). For a projection π : Γ × X → Γ, substitution π* takes predicates on Γ to predicates on Γ × X, and

∃_π ⊣ π* ⊣ ∀_π.

Equality is the left adjoint along the diagonal Γ → Γ × Γ. In type theory these are Σ ⊣ weakening ⊣ Π, and equality becomes the identity type. When fibres are posets, Σ truncated is ∃ and the adjunction is the classical one. When fibres are spaces, Σ keeps the witnesses and identity carries paths, which is the setting in which the univalent obstruction above appears.

Truth values then live in the subobject classifier Ω of a topos, a Heyting algebra and not in general Bool. The law P ∨ ¬P holds exactly when Ω ≅ 1 + 1 internally, the Boolean case.

The fourfold and the sevenfold: what the traditions formally say

Both schemes are formal logics in their own right: each is a complete enumeration of the forms a predication can take, with rules for how they combine, stated in the texts themselves. This section gives them in those terms. The modern work listed under each is reconstruction into Western notation, which re-expresses a logic that was already formal; it is listed with the disputes over it, and a gloss marked as such follows.

The Buddhist tetralemma (catuṣkoṭi)

Early Buddhist texts treat four alternatives as exhausting the options for a proposition A: A; not-A; both A and not-A; neither A nor not-A. The Buddha's "undeclared questions" (whether the Tathāgata exists after death, and the like) are set out in this form, and all four are set aside.

Nāgārjuna's Mūlamadhyamakakārikā (c. 2nd century CE), the founding text of the Middle Way school, uses the four corners in two ways. Positively (MMK 18.8), all four are affirmed, each from a different standpoint. Negatively, more often, all four are rejected: a thing does not arise from itself, from another, from both, or without cause (MMK 1.1). The Middle Way is the rejection of both extremes, being and non-being, and this negative use carries it. It is a refusal to take any of the four positions as a view about the ultimate, not the assertion of a third value between true and false.

Under classical logic the corners collapse. "Both" is a contradiction that entails everything, and "neither" is classically equivalent to "both" by De Morgan.

Modern reconstructions in Western notation.

The Jain sevenfold predication (saptabhaṅgī)

The Jain doctrine of the many-sidedness of reality (anekāntavāda) holds that an object has many aspects. Any predication is true only from a standpoint (naya) and is qualified by syāt, "in some respect". The sevenfold scheme, set out by Samantabhadra (Āptamīmāṃsā), Siddhasena, and later Vādidevasūri and Mallisena (Syādvādamañjarī), is:

The seven are the non-empty combinations of three primitive values: is, is not, inexpressible (2³ − 1 = 7). In the Jain texts, contradiction is resolved by indexing: "is" and "is not" hold in different respects (substance versus mode, place, time, state), so no single respect carries both. Avaktavya marks that both cannot be said in one breath from one standpoint.

Modern reconstructions in Western notation.

What does and does not connect

Neither tradition is intuitionistic logic, and neither withholds excluded middle on the constructivists' ground (the demand for a witness). They depart from the classical binary in different directions:

Gloss (Claude's, not the traditions'). Lawvere's theorem leaves a system that describes its own descriptions three exits from the liar: no Boolean negation as a total self-map of its truth values, or no reach over all of its own predicates, or a value fixed by negation. Each exit has a modern representative:

The tetralemma, which lists both a glut and a gap among its own corners, admits the first two exits at once. The gloss is a structural correspondence between Lawvere's theorem and these logics. It is not a claim that Nāgārjuna or the Jain logicians argued from self-reference, which they did not.

Sources