Content
Proof Patterns

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 S    TS \implies T. However, sometimes there is no obvious way to show for example in this case, that if SS is true, then TT is true. We want to make life easier by showing an equivalent statement that is (not TT)     \implies (not SS). 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 use\emph{use} 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 TT is true. We choose a statement SS and a statement RR and show that S    RS \implies R is true. Then we show that (not T)    (S or R)(\text{not } T) \implies (S \text{ or } R) is true.

Direct implication / Composition of Implications

The Subset-Relation is transitiveSource:  Lemma 3.3

Prove that for any sets AA, BB and CC:

ABBCAC A \subseteq B \land B \subseteq C \Longrightarrow A \subseteq C

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:

ABA A \cap B \subseteq A

Proof by Case Distinction

An example of a proof by case distinction is truth tables; to show that FGF \equiv G, we show that for all possible inputs, the output value of FF and GG are equivalent.

Lemma 2.6Source:  Script

Prove the following equivalence:

AB¬B¬A A \to B \equiv \lnot B \to \lnot A

Prove it using a case distinction.

Indirect Proof of an Implication

To show that S    TS \implies T holds, we show that (correctness follows from the truth table from the previous exercise):

not T    not S \text{not } T \implies \text{not } S
Consistency 1Source:  Theorem 3.4/Consistency.1

Prove that for any sets AA and BB:

ABAB=A A \subseteq B \Longrightarrow A \cap B = A

Prove it using an indirect proof.

Easy Arithmetic?Source:  Tobias Steinbrecher

Let a,bZa,b \in \mathbb{Z}. If a+b9a + b \geq 9, then a5a \geq 5 or b5b \geq 5.

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 F,GF, G:

(F is validG is valid)(FG) (F\text{ is valid} \Longrightarrow G\text{ is valid}) \Longrightarrow (F \models G)

Existence Proof

A special type of an existence proof is the proof by Counterexample; to show that FF is not true, we show that "not FF" 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 SS):

  1. Find a suitable statement TT and prove that TT is false.
  2. Assume that SS is false and show from this assumption that TT is true.

When doing a real proof, we often don't know what our contradiction statement TT will be initially. We have some statement SS, 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 "a=ba = b and aba \neq b". To relate this back to the proof pattern above, this incorrect statement at the end could now be called the statement TT. We could now pretend that we found this statement initially, but this is rarely the case.

Problem 1Source:  Yannick Funke

Prove the following statement:

x>0y>0x+yx+y x > 0 \land y > 0 \Longrightarrow \sqrt{x + y} \ne \sqrt{x} + \sqrt{y}

Prove it using a proof by contradiction.