Proof Patterns
Note that this chapter introduces us to the important concept of a proof that we will need throughout the entire course, so pay attention! We will also take some first steps in proving something even more meaningful than statements about logic (though those were also meaningful :)).
Where do proof patterns fit in our big picture of logic and mathematical statements? What is the reason for proof patterns?
Often, we want to prove certain mathematical statements such as . However, sometimes there is no obvious way to show for example in this case, that if is true, then is true. We want to make life easier by showing an equivalent statement that is (not ) (not ). However, it is not obvious that these two statements are equivalent and it would actually be sufficient to prove the second implication. We need to prove this. A proof pattern is, therefore, just the way we choose to try to prove a certain mathematical statement. A proof pattern is called sound if we can actually prove our statement using it. Thus, in the sense of the equivalence above, the proof pattern would be sound if the equivalence does indeed hold. Obviously, we only want to use proof patterns that are sound. However, this soundness has to be proven first. To prove soundness, we can use propositional logic in easy cases.
After we know that a proof pattern is sound, we can sort of the proof pattern to really prove a meaningful statement.
See the definition of the proof patterns in the script (Chapter 2.6). Here are some exercises about proof patterns (and basic set theory).
Proving Soundness of a proof pattern
Beautiful sound?Source: Tobias Steinbrecher
We want to prove that is true. We choose a statement and a statement and show that is true. Then we show that is true.
Direct implication / Composition of Implications
The Subset-Relation is transitiveSource: Lemma 3.3
Prove that for any sets , and :
Prove it using a composition of implications (or a direct proof of an implication).
As an exercise, you can also (easily) prove the above statement with an indirect proof.
Simple Fact about Subsets/IntersectionsSource: Max Obreiter
Using composition of implications, prove the following fact:
Proof by Case Distinction
An example of a proof by case distinction is truth tables; to show that , we show that for all possible inputs, the output value of and are equivalent.
Lemma 2.6Source: Script
Prove the following equivalence:
Prove it using a case distinction.
Indirect Proof of an Implication
To show that holds, we show that (correctness follows from the truth table from the previous exercise):
Consistency 1Source: Theorem 3.4/Consistency.1
Prove that for any sets and :
Prove it using an indirect proof.
Easy Arithmetic?Source: Tobias Steinbrecher
Let . If , then or .
Proof by Counterexample
This is a very simple proof pattern. You only have to find a counterexample to show that a statement is false.
Proof by Counterexample: ExampleSource: Lemma 2.4 reversed
Show that the following implication does not hold for all formulas :
Existence Proof
A special type of an existence proof is the proof by Counterexample; to show that is not true, we show that "not " is true for some input.
Proof by Contradiction
The proof pattern of a proof by contradiction might be a bit confusing when considering it exactly as stated in the script (we want to prove ):
- Find a suitable statement and prove that is false.
- Assume that is false and show from this assumption that is true.
When doing a real proof, we often don't know what our contradiction statement will be initially. We have some statement , assume it is false, and then show that some incorrect statement follows. Usually, we continue until we have shown that something is obviously wrong - such as a statement like " and ". To relate this back to the proof pattern above, this incorrect statement at the end could now be called the statement . We could now pretend that we found this statement initially, but this is rarely the case.
Problem 1Source: Yannick Funke
Prove the following statement:
Prove it using a proof by contradiction.