2024-11-20 19:29:09 -08:00
|
|
|
==================
|
|
|
|
|
Lambda Abstraction
|
|
|
|
|
==================
|
|
|
|
|
|
2024-12-01 21:38:43 -08:00
|
|
|
def foo := fun (A : *) (x : A) : A => x;
|
2024-11-20 19:29:09 -08:00
|
|
|
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
(program
|
|
|
|
|
(definition
|
|
|
|
|
(identifier)
|
|
|
|
|
(expr
|
|
|
|
|
(app_term
|
|
|
|
|
(labs
|
|
|
|
|
(param_block
|
2024-11-21 13:14:46 -08:00
|
|
|
(identifier)
|
|
|
|
|
(expr
|
|
|
|
|
(app_term
|
|
|
|
|
(app
|
|
|
|
|
(term
|
|
|
|
|
(star))))))
|
2024-11-20 19:29:09 -08:00
|
|
|
(param_block
|
2024-11-21 13:14:46 -08:00
|
|
|
(identifier)
|
|
|
|
|
(expr
|
|
|
|
|
(app_term
|
|
|
|
|
(app
|
|
|
|
|
(term
|
|
|
|
|
(identifier))))))
|
2024-12-01 21:38:43 -08:00
|
|
|
(ascription
|
|
|
|
|
(expr
|
|
|
|
|
(app_term
|
|
|
|
|
(app
|
|
|
|
|
(term
|
|
|
|
|
(identifier))))))
|
2024-11-20 19:29:09 -08:00
|
|
|
(expr
|
|
|
|
|
(app_term
|
|
|
|
|
(app
|
|
|
|
|
(term
|
|
|
|
|
(identifier))))))))))
|