

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!


This project involves defining a simple language and verifying correctness properties related to evaluation and type checking. Specifically, we will define the abstract syntax of a simple expression language and define eval and typeof function that evaluate and determine the type of expressions respectively. Finally, we will verify the standard progress and preservation properties for the language.
Please submit a single Isabelle theory file that contains your definitions and proofs. You are free to use any Isabelle definition or verification features in your solution. Documentation is important - particularly if you do not complete your proofs.
(a) T rue ∧ F alse :: boolean (b) [[A :: boolean; B :: boolean]] =⇒ A ∧ B :: boolean (c) C :: boolean =⇒ if C then 1 else 2 :: integer (d) [[A :: boolean; B :: boolean; C :: boolean]] =⇒ (A ∧ B) ∧ C :: boolean (e) (1 + 2) > 2 :: boolean
(a) T rue ∧ F alse = F alse (b) A ∧ B = B ∧ A (c) (A ∧ B) ∧ C = A ∧ (B ∧ C) (d) if T rue ∧ F alse then 1 else 2 = 2 (e) (if C then 1 else 2 = 1)OR(if C then 1 else 2 = 2)
You can always add the assumption that your variables are of the correct type if that is useful for you.