This commit is contained in:
Michael Zhang 2024-04-25 13:32:33 -05:00
parent d5bbdfe962
commit cc73889956
2 changed files with 11 additions and 8 deletions

View file

@ -358,11 +358,12 @@ postulate
## 2.13 Natural numbers
```
code : → Set
code zero zero = 𝟙
code zero (suc y) = ⊥
code (suc x) zero = ⊥
code (suc x) (suc y) = code x y
private
code : → Set
code zero zero = 𝟙
code zero (suc y) = ⊥
code (suc x) zero = ⊥
code (suc x) (suc y) = code x y
```
### Theorem 2.13.1
@ -430,4 +431,4 @@ theorem2∙13∙1 m n = encode m n , equiv
; h = decode m n
; h-id = backward m n
}
```
```

View file

@ -2,6 +2,8 @@
module HottBook.Chapter8 where
open import Agda.Primitive
open import HottBook.Chapter1
open import HottBook.Chapter2
open import HottBook.Chapter6
```
@ -14,6 +16,6 @@ data : Set where
```
```
code : {l : Level} → S¹ → Set l
code {l} = S¹-elim (λ _ → Set l) (ua succ)
code : {l : Level} → S¹ → Set (lsuc l)
code {l} = S¹-elim (λ _ → Set l) (ua suc)
```