feat: initial commit

This commit is contained in:
lisk77 2025-06-30 19:43:09 +02:00
commit 0dd91da74f
17 changed files with 683 additions and 0 deletions

13
examples/numbers.lambda Normal file
View file

@ -0,0 +1,13 @@
0 = \ f x . x;
1 = \ f x . f x;
2 = \ f x . f ( f x );
isZero = \ n . n (\ x . false) true;
succ = \ n f x . f ( n f x );
pred = \ n f x . n (\ g h . h ( g f )) (\u . x) (\u . u);
add = \ m n . n succ m;
sub = \ m n . n pred m;
mul = \ m n f . m ( n f );
exp = \ b n . n b;
main = add 2 1;