Fixed a macro bug
parent
04ce18c891
commit
4e3d5fa341
|
@ -67,11 +67,11 @@ XOR = λab.((a (NOT b)) b)
|
||||||
# `Y FAC 6` required 867,920 reductions and took 10 minutes to run.
|
# `Y FAC 6` required 867,920 reductions and took 10 minutes to run.
|
||||||
|
|
||||||
PAIR = λabi.(i a b)
|
PAIR = λabi.(i a b)
|
||||||
H = λp.((PAIR (p F)) (S (p F)))
|
|
||||||
S = λnfa.(f (n f a))
|
S = λnfa.(f (n f a))
|
||||||
D = λn.((n H) ((PAIR 0) 0) T)
|
H = λp.((PAIR (p F)) (S (p F)))
|
||||||
|
D = λn.(n H (PAIR 0 0) T)
|
||||||
Z = λn.(n (λa.F) T)
|
Z = λn.(n (λa.F) T)
|
||||||
NZ = λn.(n (λa.T) F)
|
NZ = λn.(n (λa.T) F)
|
||||||
ADD = λmn.(m S n)
|
ADD = λmn.(m S n)
|
||||||
MULT = λnmf.(n (m f))
|
MULT = λnmf.(n (m f))
|
||||||
FAC = λyn.( (Z n)(1)((MULT n) (y (D n))) )
|
FAC = λyn.(Z n) (1) (MULT n (y (D n)))
|
Reference in New Issue