Truncation levels › Decidable equality and Hedberg’s theorem [01FN]

A famous result of type theory says that any type whose identification types are decidable (“has decidable equality” for short) is a set. This is not easy to prove directly, and in fact there are a number of proofs that work using different assumptions. We haven’t assumed much yet, so some of those proofs are not yet accessible to us. But there is one proof that we can do based on the idea of a “weakly constant function”. First we define decidable equality formally:

Of course, this is all a little magical and you might not have any reason as-yet to believe that we can carry out the idea above. But it will happen that it is possible and not too difficult. First we must make a few preliminary definitions:

Context

Truncation levels [01FV]

Related

Dependent types I › Identification types [01E8]

Definition. Decidable equality [01GG]

Warm-up. How shall we proceed? [01GO]

Definition. Truncation levels › Sets [01FY]