completed pass over Equality

This commit is contained in:
wadler 2018-03-12 13:01:08 -03:00
parent dffb291510
commit 926558bfe6

View file

@ -13,20 +13,14 @@ datatypes.
## Imports
Nearly every module in the Agda
standard library, and every chapter in this book, imports equality.
Since we define equality here, any such
import would create a conflict. The only import we make is the
definition of type levels, which is so primitive that it precedes
the definition of equality.
\begin{code}
open import Agda.Primitive using (Level; lzero; lsuc)
\end{code}
This chapter has no imports. Every chapter in this book, and nearly
every module in the Agda, imports equality. Since we define equality
here, any import would create a conflict.
## Equivalence
## Equality
We declare equivality as follows.
We declare equality as follows.
\begin{code}
data _≡_ {A : Set} : A → A → Set where
refl : ∀ {x : A} → x ≡ x