Skip to content

Commit e15c8b2

Browse files
committed
Include Church factorial samples
1 parent 08f265a commit e15c8b2

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

samples/cfact4.mlc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FACT = n: n (p, q: MULT q (p (SUCC q))) (p: C1) C1;
2+
3+
MINUS (C3 C3) (FACT C4)

samples/cfact5.mlc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FACT = n: n (p, q: MULT q (p (SUCC q))) (p: C1) C1;
2+
3+
MINUS (C3 C5) (FACT C5)

test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ compare w2eta "v1, v2: v1 (v1 (v1 (v1 v2)))" \
4242
compare 1022ii "v1: v1" \
4343
ABSTRACT closed NORMAL OPTIMAL TURNING
4444

45+
compare cfact4 "v1, v2: v1 (v1 (v1 v2))" \
46+
abstract closed normal optimal turning
47+
4548
compare yfact4 "v1, v2: v1 (v1 (v1 v2))" \
4649
abstract closed normal optimal turning
4750

51+
compare cfact5 "v1, v2: v1 (v1 (v1 (v1 (v1 v2))))" \
52+
abstract closed normal optimal turning
53+
4854
compare yfact5 "v1, v2: v1 (v1 (v1 (v1 (v1 v2))))" \
4955
abstract closed normal OPTIMAL turning

0 commit comments

Comments
 (0)