agda-intro/systemF.lagda.md

295 B
Raw Blame History

Recall: System F

 : 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