Lecture 03
Lecture 03
-John Locke
• Mathematical proofs are, in a sense, the only
true knowledge we have
• They provide us with a guarantee as well as an
explanation (and hopefully some insight)
Predicate Logic and Quantifiers 3
Motivation (2)
• Mathematical proofs are necessary in CS
– You must always (try to) prove that your algorithm
• terminates
• is sound, complete, optimal
• finds optimal solution
– You may also want to show that it is more efficient than
another method
– Proving certain properties of data structures may lead to
new, more efficient or simpler algorithms
– Arguments may entail assumptions. You may want to
prove that the assumptions are valid
Predicate Logic and Quantifiers 4
Terminology
• A theorem is a statement that can be shown to be true (via a proof)
• A proof is a sequence of statements that form an argument
• Axioms or postulates are statements taken to be self evident or assumed
to be true
• A lemma (plural lemmas or lemmata) is a theorem useful within the proof
of a theorem
• A corollary is a theorem that can be established from theorem that has
just been proven
• A proposition is usually a ‘less’ important theorem
• A conjecture is a statement whose truth value is unknown
• The rules of inference are the means used to draw conclusions from other
assertions, and to derive an argument or a proof