Beruflich Dokumente
Kultur Dokumente
Name: ID#:
b) is greater than .
e) He is an engineer.
2. Use propositional logic to prove that the following arguments are valid. (All steps in the proof
sequence have to be annotated indicating the rule applied. Only the rules listed on the pages at
the end of this exam can be used.) ( 16 points )
a)
b)
3. Give the truth values of the following formulas for the interpretation where the domain consists
of the all integers greater than 0 and is “x is a prime number”, is “
”, and
is “ is even”. ( 9 points )
a)
b)
c)
a)
b)
c)
d)
e)
! "
5. Use predicate logic to prove the following arguments. (All steps in the proof sequence have to
be annotated by the rule used to derive it. Only the rules listed on the pages at the end of this
exam can be used.) ( 16 points )
a)
b)
6. For each of the following proofs indicate which proof technique was used (counterexample,
exhaustive proof, direct proof, proof by contraposition, proof by contradiction, proof by induc-
tion). ( 12 points )
a) Conjecture: The product of an arbitrary number of odd integers is always odd.
Proof: Assume the product were even. Then
and therefore at least one of the factors has to be an even number. Thus the product of odd
integers is always odd.
d) Conjecture: All natural numbers between and are either even or prime numbers.
!
Proof: , , , and are even and , , and are prime number. Therefore all natural
7. Prove or disprove the following conjectures. You can use any of the proof techniques introduced
in class. ( 24 points )
c) Every positive integer greater than can be written as the sum of s and s.
Equivalence Rules
Rule Name Expression Equivalent Expression
Commutativity (comm)
Associativity (ass)
Implication (imp)
Negation (neg)
Inference Rules
Rule Name From Can Derive
Conjunction (con) ,
Simplification (sim) ,
Modus ponens (mp) ,
For all proofs the steps have to be annotated such as to indicate the rule and which elements of the
proof sequence it was applied to.