








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









CMSC 330 2
CMSC 330 3
CMSC 330 4
CMSC 330 7
CMSC 330 8
*(Named after Alonzo Church, developer of lambda calculus)
CMSC 330 9
succ 0 = (z.f.y.f (z f y)) (f.y.y) f.y.f ((f.y.y) f y) f.y.f y = 1
iszero 0 = (z.z (y.false) true) (f.y.y) (f.y.y) (y.false) true (y.y) true true
CMSC 330 10
CMSC 330 13
CMSC 330 14
CMSC 330 15
CMSC 330 16
CMSC 330 19
CMSC 330 20
CMSC 330 21
A n : int
e ::= n | x | x:t.e | e e
A x : A(x)
x A
A x:t.e : t t'
A, x : t e : t' A e e' : t'
A e : t t' A e' : t
CMSC 330 22
A (x:int.+ x 3) 4 : int
A = + : int int int
A (x:int.+ x 3) : int int A 4 : int
B + x 3 : int
B 3 : int
B + : iii
B + x : int int
B x : int
B = A, x : int
CMSC 330 25
CMSC 330 26
CMSC 330 27