simplified D^c
This commit is contained in:
parent
3ab180ad8d
commit
2dc431121e
1 changed files with 1 additions and 3 deletions
|
@ -539,9 +539,7 @@ for a given path.
|
||||||
|
|
||||||
```
|
```
|
||||||
Dᶜ : (n : ℕ) → Vec Value (suc n) → Value
|
Dᶜ : (n : ℕ) → Vec Value (suc n) → Value
|
||||||
Dᶜ zero (a[0] ∷ []) = ⊥ ↦ a[0] ↦ a[0]
|
Dᶜ n (a[n] ∷ ls) = (D^suc n (a[n] ∷ ls)) ↦ (vec-last (a[n] ∷ ls)) ↦ a[n]
|
||||||
Dᶜ (suc n) (a[n+1] ∷ a[n] ∷ ls) =
|
|
||||||
(D^suc (suc n) (a[n+1] ∷ a[n] ∷ ls)) ↦ (vec-last (a[n] ∷ ls)) ↦ a[n+1]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* The Church numeral for 0 ignores its first argument and returns
|
* The Church numeral for 0 ignores its first argument and returns
|
||||||
|
|
Loading…
Reference in a new issue