1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-04 17:07:28 +03:00
juvix/tests/positive/LambdaCalculus.juvix

15 lines
313 B
Plaintext
Raw Normal View History

module LambdaCalculus;
LambdaTy : Type -> Type := Lambda;
AppTy : Type -> Type := App;
type Expr (V : Type) :=
| var : V -> Expr V
| lam : LambdaTy V -> Expr V
| app : AppTy V -> Expr V;
type Lambda (V : Type) := mkLambda : Expr V -> Lambda V;
type App (V : Type) := mkApp : Expr V -> Expr V -> App V;