agda-intro/systemF.lagda.md

13 lines
295 B
Markdown
Raw Normal View History

2024-04-10 18:11:47 +02:00
## Recall: System F
```agda
: Set₁
= ∀ {A} → (A → A) → A → A
zero :
zero = λ f x → x
suc :
suc = λ n f x → f (n f x)
fold : ∀ {A} → (A → A) → A → → A
fold = λ f x n → n f x
-- add :
-- add = λ n → fold suc n
```