Everything starts from \(a=a\).
Adjunction is found inside identity, and currying is the adjunction of filling a place.
From these come binary meets and joins, the exponent laws, \(\forall \) anchored at \(x=x\), and \(\exists \) whose witnesses are produced by identity itself, through the one-point splitting of every judgment.
This yields intuitionistic logic. Double negation is then an idempotent closure, and classical logic is the reflection onto its fixed points.
There is one construction and one idempotent, not two definitions.
Q0 (identity). \(\vdash a=a\), with \(\mathrm {refl}\) the only generator. J gives substitution \(a=b,\ P(a)\vdash P(b)\), and following \(\vdash \) is reflexive and transitive (S2, S3).
Q1 (adjunction, found in identity).
Q2 (currying). Filling \((\lambda x.\,t)u=t[u/x]\) (one-point: pin \(x\) by \(x=u\) and hide it) and \(\lambda x.\,fx=f\) (identity decides) are the two round trips of
Q3 (truth, falsity, negation).
Q4 (binary meets and joins).
Q5 (exponent laws). Each line has the same consequences or antecedents on both sides, so the two sides are equivalent by uniqueness of adjoints (Q1, Q2):
| Kinds | Judgments |
| \(D^{A+B}\cong D^A\times D^B\) | \((A\vee B)\Rightarrow D\dashv \vdash (A\Rightarrow D)\wedge (B\Rightarrow D)\) |
| \((D^B)^A\cong D^{A\times B}\) | \(A\Rightarrow (B\Rightarrow D)\dashv \vdash (A\wedge B)\Rightarrow D\) |
| \((B\times C)^A\cong B^A\times C^A\) | \(A\Rightarrow (B\wedge C)\dashv \vdash (A\Rightarrow B)\wedge (A\Rightarrow C)\) |
| \(D^0\cong 1\), \(D^1\cong D\) | \(\bot \Rightarrow D\dashv \vdash \top \), \(\top \Rightarrow D\dashv \vdash D\) |
| \(A\times (B+C)\cong A\times B+A\times C\) | \(A\wedge (B\vee C)\dashv \vdash (A\wedge B)\vee (A\wedge C)\) |
The last line holds because \(A\wedge -\) is a left adjoint (Q2), so it preserves joins.
Q6 (“for all” is anchored at \(x=x\)). With \(\top _X(x)=(x=x)\), which holds for every \(x\) by \(\mathrm {refl}\),
Q7 (witnesses come from identity). Every judgment splits into one-point pieces:
Q8 (families of every size). A family \(\{x_i\}_{i\in I}\) is one judgment \(x(i,a)\) with an extra place \(i\), and
Q9 (\(\Omega \) and \(\Omega ^X\)). \(\Omega \) is the kind of judgments without places, up to \(\dashv \vdash \). By Q2, \(\mathrm {Hom}(Y\times X,\Omega )\cong \mathrm {Hom}(Y,\Omega ^X)\). With Q4–Q8, \(\Omega \) and \(\Omega ^X\) are complete Heyting algebras. This is intuitionistic logic.
Q10 (double negation is an idempotent closure). Let \(j=\neg \neg \). Then
Q11 (the classical connectives). On \(\Omega _{\neg \neg }\):
\(\wedge \), \(\Rightarrow \) and \(\forall \) are unchanged, since \(j\) preserves them;
joins are reflected:
Hence, in \(\Omega _{\neg \neg }\),
Q12 (the two readings).
| \(\Omega \) (intuitionistic) | \(\Omega _{\neg \neg }\) (classical) | |
| \(\wedge \), \(\Rightarrow \), \(\forall \) | Q2, Q4, Q6 | same |
| \(\vee \) | Q4 | \(\neg \neg (A\vee B)\) |
| \(\exists \) | witnesses from \(x=a\) (Q7) | \(\neg \forall \neg \) |
| \(\neg \neg P\vdash P\) | no | yes |
| \(P\vee \neg P\) | no | yes |
| \(\Omega \) | complete Heyting | \(\{\neg (a=a),\ a=a\}\) |
Q13 (completeness of \(\mathbb R\)). For a family of lower cuts of \(\mathbb Q\) bounded by \(u\), \((\sup _ix_i)(q)=\exists i.\,x_i(q)\) is again a lower cut and the least upper bound (Q8).
In \(\Omega \), it is a Dedekind real when the family is located: for \(q<r\), some \(x_i\) exceeds \(q\), or \(r\) bounds all of them.
In \(\Omega _{\neg \neg }\), locatedness holds by \(P\vee _c\neg P\), so every bounded inhabited family of reals has a supremum.
Q14 (Tarski). For monotone \(F\) on \(\Omega ^X\), \(\mu F=\forall P.\,(F(P)\le P\Rightarrow P)\) is the least fixed point (M4) in both readings.
Q15 (the floor).
| Ingredient | Status | Source |
| adjunction | derived | unit reflexivity, counit substitution (Q1) |
| currying, \(\Rightarrow \) | derived | \(\beta \), \(\eta \) (Q2) |
| \(\top \), \(\bot \), \(\neg \) | derived | \(a=a\), \(\neg (a=a)\) (Q3) |
| \(\wedge \), \(\vee \), exponent laws | derived | Q4, Q5 |
| \(\forall \) | derived | anchored at \(x=x\) (Q6) |
| \(\exists \) and its witnesses | derived | one-point pieces \(x=a\) (Q7) |
| \(\bigvee \), \(\bigwedge \) of every size; \(\Omega \), \(\Omega ^X\) | derived | Q8, Q9 |
| classical logic | derived | reflection along \(j=\neg \neg \) (Q10, Q11) |
| completeness, Tarski | derived | Q13, Q14 |
| generated kinds, e.g. \(\mathbb N\) | principle | “given by generators”, the step to infinity |
| choice (Zorn) | principle | non-separable Hahn–Banach, bases, Tychonoff |
The diagonal of an order has two adjoints, join and meet. A monotone map that preserves joins has a right adjoint. Applied to \(A\wedge -\), this gives implication, which is currying in an order. A Heyting algebra is an order in which \(A\wedge -\) has this adjoint. Every law of intuitionistic logic is a corollary of its unit and counit, and classical logic is the reflection along \(\neg \neg \).
H1 (the diagonal and its adjoints). For an order \(L\), let \(\Delta :L\to L\times L\), \(\Delta x=(x,x)\). Its adjoints, when they exist, are join and meet:
H2 (joins give meets). If all \(\bigvee \) exist, then
H3 (adjoint functor theorem for orders). Let \(L,M\) be complete lattices and \(F:L\to M\) monotone. Then \(F\) has a right adjoint if and only if \(F\) preserves all joins, and
H4 (currying in an order). Apply H3 to \(F=A\wedge -\). If \(A\wedge -\) preserves joins (distributivity),
H5 (Heyting algebra). A Heyting algebra is a lattice in which every \(A\wedge -\) has a right adjoint. A complete lattice satisfying the distributivity of H4 (a frame) is a complete Heyting algebra by H3.
| Example | Join | Why distributive |
| judgments \(\Omega ^X\) | \(\exists \) over the index (Q8) | Frobenius, Q7 |
| open sets of a space | union | \(U\cap \bigcup _iV_i=\bigcup _i(U\cap V_i)\) |
| down-sets of an order (Kripke frames) | union | as for opens |
For open sets, \(U\Rightarrow V=\mathrm {int}\bigl ((X\setminus U)\cup V\bigr )\) and \(\neg U=\mathrm {int}(X\setminus U)\).
H6 (intuitionistic laws as corollaries). Each law follows from the unit and counit of H4, or from adjoints preserving joins and meets:
| Law | Reason |
| \(A\wedge (A\Rightarrow B)\le B\) (modus ponens) | counit |
| \(B\le A\Rightarrow (A\wedge B)\) | unit |
| \(A\Rightarrow A=\top \) | \(C\wedge A\le A\) for all \(C\) |
| \(A\wedge (B\vee C)=(A\wedge B)\vee (A\wedge C)\) | \(A\wedge -\) is a left adjoint |
| \(A\Rightarrow (B\wedge C)=(A\Rightarrow B)\wedge (A\Rightarrow C)\) | \(A\Rightarrow -\) is a right adjoint |
| \((A\vee B)\Rightarrow C=(A\Rightarrow C)\wedge (B\Rightarrow C)\) | joins map to meets |
| \(\neg A:=A\Rightarrow \bot \), \(\ A\wedge \neg A=\bot \) | counit with \(B=\bot \) |
| \(A\le \neg \neg A\) | unit with \(B=\bot \) |
| \(\neg \neg \neg A=\neg A\) | \(A\le \neg \neg A\) and antitonicity of \(\neg \) |
H7 (what is not forced). In the open sets of \(\mathbb R\):
for \(U=(0,\infty )\), \(\neg U=(-\infty ,0)\), so \(U\vee \neg U=\mathbb R\setminus \{0\}\neq \mathbb R\);
for \(U=\mathbb R\setminus \{0\}\), \(\neg U=\varnothing \), so \(\neg \neg U=\mathbb R\neq U\).
Excluded middle and double negation elimination are not corollaries of H5. This is intuitionistic logic, built from the diagonal.
H8 (classical logic as a corollary). By H6, \(j=\neg \neg \) satisfies
H9 (the chain).
| Step | Result | From |
| H1 | \(\vee \dashv \Delta \dashv \wedge \); \(\bigvee \dashv \Delta _I\dashv \bigwedge \) | the diagonal |
| H2 | meets from joins | unit and counit |
| H3 | join-preserving maps have right adjoints | H1, H2 |
| H4 | \(A\Rightarrow B=\bigvee \{C:\ C\wedge A\le B\}\) | H3 on \(A\wedge -\) |
| H5 | Heyting algebras; opens, \(\Omega ^X\), down-sets | H4 |
| H6 | intuitionistic laws | unit and counit |
| H7 | no excluded middle in general | open sets of \(\mathbb R\) |
| H8 | Boolean algebra \(L_{\neg \neg }\); classical logic | idempotent \(j=\neg \neg \) |
Homotopy type theory reaches intuitionistic logic from identity alone.
Propositions are the types in which any two elements are identical.
Propositional truncation is an idempotent reflection onto them.
Implication is the function type, and the quantifiers are \(\Pi \) and the truncated \(\Sigma \).
The resulting propositions form a Heyting algebra, classical logic is its \(\neg \neg \)-reflection, and choice implies excluded middle [193].
HT1 (levels from identity). Each level is defined by identity types only:
HT2 (propositions).
HT3 (truncation as a reflection). \(\|A\|\) has the generators \(|a|\) for \(a:A\) and \(\prod _{x,y:\|A\|}(x=y)\). Its universal property is
HT4 (logic).
| Logic | Type | Adjoint |
| \(P\wedge Q\) | \(P\times Q\) | right of duplication |
| \(P\Rightarrow Q\) | \(P\to Q\) | right of \(P\times -\) (currying) |
| \(\forall x.\,P\) | \(\prod _xP(x)\) | right of weakening |
| \(P\vee Q\) | \(\|P+Q\|\) | left of duplication, reflected |
| \(\exists x.\,P\) | \(\|\sum _xP(x)\|\) | left of weakening, reflected |
| \(\top \), \(\bot \) | \(1\), \(0\) | empty meet, empty join |
| \(x=y\) | identity type | left along the diagonal |
\(\sum _xP(x)\)keeps its witness, and \(\|\sum _xP(x)\|\) forgets which witness. This is the intuitionistic \(\exists \), generated by witnesses (Q7).
HT5 (Heyting). With the operations of HT4, \(\mathrm {Prop}\) is a Heyting algebra. \(P\times -\) preserves truncated joins, so H3–H5 apply, and every law of H6 holds as a function between propositions.
HT6 (excluded middle, two strengths).
\(\mathrm {LEM}_{-1}\): \(\prod _{P:\mathrm {Prop}}(P+\neg P)\). Since \(P+\neg P\) is a proposition, this is not provable, and it is consistent with univalence.
\(\mathrm {LEM}_\infty \): \(\prod _{A:\mathrm {Type}}(A+\neg A)\), and even \(\prod _A(\neg \neg A\to A)\), contradicts univalence. Such a choice of element would be invariant under every automorphism, but \(\{0,1\}\) has the exchange \(\sigma \), which fixes no element.
HT7 (classical logic as a reflection). \(\neg \neg \) is an idempotent closure on \(\mathrm {Prop}\) (H8). Its fixed points form a Boolean algebra, and
HT8 (choice implies classical logic). The axiom of choice for sets implies \(\mathrm {LEM}_{-1}\) (Diaconescu). For a proposition \(P\), quotient \(\{0,1\}\) by \(0\sim 1\iff P\). A choice of representatives decides whether the two classes coincide, and hence decides \(P\). The floor principle “choice” (Q15) therefore brings classical logic with it.
HT9 (the route).
| Step | Result | From |
| HT1 | contractible, propositions, sets, levels | identity types |
| HT2 | \(\mathrm {Prop}\), \(\top \), \(\bot \); extensionality | HT1; univalence |
| HT3 | truncation, a reflection | generators with all paths |
| HT4 | \(\wedge ,\Rightarrow ,\forall ,\vee ,\exists \) | adjoints, truncated |
| HT5 | Heyting algebra | H3–H5 |
| HT6 | \(\mathrm {LEM}_{-1}\) consistent; \(\mathrm {LEM}_\infty \) contradicts univalence | exchange \(\sigma \) on \(\{0,1\}\) |
| HT7 | Boolean reflection; \(\mathrm {Prop}\simeq \{0,1\}\) under LEM | \(\neg \neg \) |
| HT8 | choice implies LEM | Diaconescu |
The diagonal route (Section 20.1) builds Heyting algebras as orders. The HoTT route builds them as the propositions among types, with proofs kept until truncation forgets them. The two meet at HT5.