The Heyting algebra [203] of intuitionistic logic may arise from \(A=A\) along four independent
routes: the HoTT subobject classifier \(\Omega \), the Gödel–McKinsey–Tarski embedding of \(S4\), the
Lindenbaum–Tarski quotient, and the open-set frame of \(S^3=SU(2)\). Each is a different face of the
idempotent identity.
Route A: HoTT subobject classifier \(\Omega \)
A type is a mere proposition (h-prop) if all its terms are identified:
Univalence makes \((\Omega ,\wedge ,\vee ,\Rightarrow ,\bot ,\top )\) a Heyting algebra; LEM \(P\vee \neg P\) has no general term, so the logic
is intuitionistic.
The \(S4\) necessity is an interior operator: \(\Box \varphi \to \varphi \) (decreasing), \(\Box \varphi \to \Box \Box \varphi \)
i.e. \(\Box ^2=\Box \) (idempotent), and monotone. The \(\Box \)-fixed points are the open elements:
Thesis. The same identity type \(\operatorname {Id}_A\) yields two logics depending on how it is read. Applying the
sharp modality \(\sharp \) collapses the proposition object \(\Omega \) to the two-element set \(2=\{\bot ,\top \}\), giving Boolean
algebra and classical logic. Reading \(\operatorname {Id}_A\) as paths keeps the full \(\Omega \), giving the Heyting algebra and
intuitionistic logic. Since \(2\subsetneq \Omega \), classical logic is the truncation of the richer intuitionistic one:
intuitionistic logic is the stronger, more structured system.
Part A: Sharp modality \(\Rightarrow \) classical logic
The sharp modality \(\sharp \) (and its dual \(\flat \)) discretises a type. It preserves identity:
Classical logic is recovered
by applying \(\sharp \) (truncation to \(2\)), \(\sharp \circ \operatorname {Id}\); the intuitionistic structure is the path reading on
the full \(\Omega \), \(\operatorname {Path}\circ \Omega \). Intuitionistic logic is therefore the stronger system: it retains the full
proposition object \(\Omega \) with its Heyting structure, of which the Boolean \(2\) is a collapsed
quotient. Excluded middle is not a theorem but an extra assumption that throws
away the intermediate truth values — it is information lost under \(\sharp \), not information
gained.
The single identity type \(\operatorname {Id}_A\) — the homotopy form of \(A=A\) — produces both logics. Sharpening it (\(\sharp \Omega =2\))
gives classical logic on two truth values; reading it as paths (full \(\Omega \)) gives intuitionistic logic on
the Heyting algebra. Because \(2\subsetneq \Omega \), classical logic is the truncation and intuitionistic logic is the
stronger, fuller system. Excluded middle is the residue of discreteness; the continuum is
intrinsically intuitionistic.
179.2 Internal versus External: the Domain of Excluded Middle
Thesis. Whether the law of excluded middle is a theorem is an internal question, answered
only after the proposition object \(\Omega \) is fixed. Which \(\Omega \) obtains is an external choice of topos. The
two belong to different domains; asking “is LEM a theorem (at all levels)?” conflates them.
Once \(\Omega \) is fixed the internal answer is determined; varying \(\Omega \) is a move at the external
level.
Step 1: The proposition object and its internal logic
In a topos \(\mathcal {E}\) with subobject classifier \(\Omega \in \mathcal {E}\), the pair \((\mathcal {E},\Omega )\) determines the internal logic via
The question “is LEM a
theorem?” is well-posed only relative to a chosen \(\Omega \). Comparing the answer across different \(\Omega \) —
e.g. \(\Omega =2\) (classical, LEM holds) versus \(\Omega =\mathcal {O}(X)\) (Heyting, LEM fails) — is not an internal disagreement but
an external change of level.
The status of excluded middle is not absolute. It is internal to a fixed \(\Omega \): once the proposition
object is chosen, the answer is settled. Whether \(\Omega =2\) (Boolean, classical) or \(\Omega \) is a larger Heyting
algebra (intuitionistic) is an external selection of the level at which \(A=A\) is read. Asking whether
LEM “really” holds — across all \(\Omega \) at once — mixes the two domains: the external choice of \(\Omega \) is
not itself an internal proposition. The same \(A=A\) projects to a Boolean answer at one level and a
Heyting answer at another; the level is the external datum, the logic is the internal
consequence.
179.3 From Heyting Algebra to Topos
Thesis. The Boolean algebra of the two-valued partition embeds in a Heyting algebra; a
Heyting algebra is a Cartesian closed poset; the product–exponential adjunction lifts a poset to
a category, then to a Cartesian closed category, and finally—adding finite limits and a
subobject classifier \(\Omega \)—to a topos. Boolean logic is the special case \(\neg \neg a=a\); the general topos has \(\Omega \) a
Heyting algebra with \(a\leq \neg \neg a\).
In poset language \(\mathrm {Hom}(x,y)\) is a single arrow if \(x\leq y\) and empty otherwise, so the adjunction reads
\begin{equation} a\wedge b\leq c \iff a\leq (b\to c), \tag{8760}\end{equation}
which is
exactly the definition of \(a\to b\). A Heyting algebra is therefore a Cartesian closed poset: \(\wedge \) is the
product, \(\to \) is the exponential.
The Heyting structure of \(\Omega \) furnishes the internal logic, and a topos is a Cartesian closed
category with finite limits and a subobject classifier:
The two-element Boolean algebra \(\mathbb {F}_2=\{0,1\}\)—the truth values of the partition \(O\sqcup U\)—is the simplest
subobject classifier. Generalising the truth-value object from \(\mathbb {F}_2\) to an arbitrary Heyting
algebra \(\Omega \) replaces classical logic (\(\neg \neg a=a\)) with intuitionistic logic (\(a\leq \neg \neg a\)) and the category \(\mathbf {Set}\) with a
general topos. The climb Heyting \(\to \) category \(\to \) CCC \(\to \) topos is the categorical realisation
of the same partition logic: \(\wedge \) is product, \(\to \) is exponential via the adjunction \((-\times a)\dashv (a\to -)\), and \(\Omega \)
classifies the subobjects exactly as \(\chi _A:X\to \mathbb {F}_2\) classified subsets. The Boolean algebra of the
two-element partition is the special case of the Heyting algebra of a general topos;
the internal logic of a topos is the generalisation of classical logic to intuitionistic
logic.