

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to problems 1-4 from the natural numbers and lists exam, focusing on proving 3≠2 using formal inference rules, tableau proof of equality and append rules for lists, and defining and proving properties of the sum function for natural number lists.
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Natural Numbers and Lists Exam Exam # 4 May 6, 2002
This is an open-book and open-notes examination. Do all problems in 80 minutes. Make sure you justify your steps using the formal inference rules to earn full credit.
A0. x = x A1. (SUC(x : nat) =0) A2. SUC(x : nat) = SUC(y : nat) x=y A3. x:nat + 0 =x A4. x:nat + SUC(y : nat) = SUC(x+y) Prove 3≠2.
A0. x=x A1. ¬(SUC(x : nat) = 0) A2. SUC(x : nat) = SUC(y : nat) x = y A3. x: nat + 0 = x A4. x: nat + SUC(y : nat) = SUC (x+y) A5. x : nat + 1 = SUC(x) A6. x : nat + y : nat = y + x A7. x : nat • 0 = 0 A8. x : nat • SUC(y : nat) = x•y + x A9. x : nat • 1 =x A10. 0 • x : nat = A11. 1 • x:nat = x A12. SUC(x : nat) • y : nat = x • y + y A13. (x : nat + y : nat) • z : nat = x•z + y • z
G1: ∀x y z [(x•y)•z = x • (y • z)]