Non-triviality of the booleans, cooked two ways [01FB]

When we say that the booleans are non-trivial, we mean that \mathsf {true} is not equal to \mathsf {false}. This kind of statement can be expressed in type theory by the following type:

\mathsf {true} =_{\mathsf {bool}} \mathsf {false} \to \mathsf {empty}

An element of the type above would witness that \mathsf {true} =_{\mathsf {bool}} \mathsf {false} is contradictory, since if the antecedent would be witnessed, then we would be able to form an element of the empty type. Without either large elimination or a universe, we cannot construct a witness of this type; I don’t just mean that it is not easy to see how to construct such a witness, but rather that type theory without these facilities is consistent with there being a witness of \mathsf {true} =_{\mathsf {bool}} \mathsf {false} or even with the judgemental assertion \mathsf {true} \equiv \mathsf {false}:\mathsf {bool} holding. (Consistency can be seen using a very simple model where every type is interpreted by a subsingleton set.) So large eliminations and universes add a lot of power!

Context

Lecture. Dependent types II [01FF]

Related

Definition. Universes, or types of types › Universe [01F6]

Aside. Dependent types I › The boolean type › Type-level if-expressions [01DB]