
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!

Operational Semantics
SInt A ` n โ n
SVar x^7 โ^ v^ โ^ A A ` x โ v
SFun
A e 2 โ v A, x 7 โ v e 1 โ vโฒ A ` (fun x = e 1 ) e 2 โ vโฒ^
SAdd
A e 1 โ v 1 A e 2 โ v 2 A ` + e 1 e 2 โ v 1 + v 2
Type Systems
TInt A ` n : int
TVar x^ :^ t^ โ^ A A ` x : t
TFun
A, x : t e : tโฒ A ฮปx : t.e : t โ tโฒ^
TApp
A e 1 : t โ tโฒ^ A e 2 : t A ` e 1 e 2 : tโฒ