Homotopy Type Theory booleans > history (Rev #6)

Contents

Definition

The booleans 𝟚\mathbb{2} are inductively generated by

  • a term 0:𝟚0:\mathbb{2}

  • a term 1:𝟚1:\mathbb{2}

𝟚\mathbb{2} is also called the decidable subtype classifier.

Boolean functions

The following functions could be inductively defined on the booleans:

  • Negation ¬:𝟚→𝟚\neg:\mathbb{2} \to \mathbb{2}
¬0≔1\neg 0 \coloneqq 1
¬1≔0\neg 1 \coloneqq 0
  • Disjunction (−)∨(−):𝟚×𝟚→𝟚(-)\vee(-):\mathbb{2} \times \mathbb{2} \to \mathbb{2}
0∨0≔00 \vee 0 \coloneqq 0
0∨1≔10 \vee 1 \coloneqq 1
1∨0≔11 \vee 0 \coloneqq 1
1∨1≔11 \vee 1 \coloneqq 1
  • Conjunction (−)∧(−):𝟚×𝟚→𝟚(-)\wedge(-):\mathbb{2} \times \mathbb{2} \to \mathbb{2}
0∧0≔00 \wedge 0 \coloneqq 0
0∧1≔00 \wedge 1 \coloneqq 0
1∧0≔01 \wedge 0 \coloneqq 0
1∧1≔11 \wedge 1 \coloneqq 1
  • Biconditional (−)⇔(−):𝟚×𝟚→𝟚(-)\iff(-):\mathbb{2} \times \mathbb{2} \to \mathbb{2}
0⇔0≔10 \iff 0 \coloneqq 1
0⇔1≔00 \iff 1 \coloneqq 0
1⇔0≔01 \iff 0 \coloneqq 0
1⇔1≔11 \iff 1 \coloneqq 1
  • Conditional (−)⇒(−):𝟚×𝟚→𝟚(-)\implies(-):\mathbb{2} \times \mathbb{2} \to \mathbb{2}
0⇒0≔10 \implies 0 \coloneqq 1
0⇒1≔10 \implies 1 \coloneqq 1
1⇒0≔01 \implies 0 \coloneqq 0
1⇒1≔11 \implies 1 \coloneqq 1

Properties

The booleans are homotopy-equivalent to the type of decidable propositions in a universe 𝒰\mathcal{U}.

𝟚≅∑ P:𝒰isProp(P)×isDecidable(P)\mathbb{2} \cong \sum_{P:\mathcal{U}} isProp(P) \times isDecidable(P)

See also

References

Revision on June 15, 2022 at 22:29:31 by Anonymous?. See the history of this page for a list of all contributions to it.