


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!



In this lecture we demonstrate another kind of semantics. Your objective is to know the different parts of a natural rule, how to structure a proof-tree, and how natural semantics are different than operational semantics.
How do you explain what an expression means? The major insight of language semantics is that the meaning of an expression can be determined by combining the meaning of its subexpressions. Examples:
An evaluation has the following form:
e ⇓ v
where e is some expression, and v is a value.
Note: a textual numeral 13 represents the mathematical number 13.
M 1 ⇓ true M 2 ⇓ V (if M 1 M 2 M 3 ) ⇓ V
Integers
n ⇓ n
Booleans
true ⇓ true
false ⇓ f alse
Addition
e 1 ⇓ v 1 e 2 ⇓ v 2 (+ e 1 e 2 ⇓ v 1 + v 2
General Operators
e 1 ⇓ v 1 e 2 ⇓ v 2 (⊕ e 1 e 2 ) ⇓ v 1 ⊕ v 2
To use these rules, you combine them into a proof tree. To prove: (* (+ 2 3) (+ 3 5)) ⇓ 40
Try the following problems.