1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 05:42:26 +03:00
juvix/tests/positive/LambdaCalculus.juvix
Jonathan Cubides 21d5034e60
Fix formatting for all Juvix files in tests folder (#2404)
In this PR, we ran the Juvix formatter so that we can now freely run
`make format`, `make check`, or `make pre-commit` without any unexpected
file changes.

This goes after:

- https://github.com/anoma/juvix/pull/2486
2023-10-31 18:36:34 +01:00

15 lines
313 B
Plaintext

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;