Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Logik f¨ ur Informatiker Logic for computer scientists
Till Mossakowski
Wintersemester 2014/15
Till Mossakowski Logik 1/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Beweismethoden f¨ ur die Boolesche Logik
Till Mossakowski Logik 2/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Beweise
Mittels Beweise werden wir versuchen, (tauto)logische Folgerungen zu zeigen.
Die Wahrheitstafelmethode kann zu sehr großen Tabellen f¨uhren, Beweise sind oftmals k¨urzer.
Beweise gibt es nicht nur f¨ur tautologische Folgerungen, sondern auch f¨ur Folgerungen in der vollst¨andigen Logik erster Stufe.
Ein Beweis besteht aus einer Folge von Beweisschritten.
Jeder Beweisschritt muss g¨ultig sein und muss in
informellenBeweisen bedeutsam aber leicht zu verstehen sein, formalenBeweisen durchBeweisregelngezeigt werden.
Till Mossakowski Logik 3/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Formale Beweise und Boolesche Logik
Till Mossakowski Logik 4/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Formale Beweise in Fitch
Wir haben eine wohldefinierte Menge formaler Beweisregeln.
Formale Beweise in Fitch k¨onnenmechanisch gepr¨uft werden.
F¨ur jeden Junktor gibt es
eineEinf¨uhrungsregel, z. B. “vonP schließe aufP∨Q”, eineBeseitigungsregel, z. B. “vonP∧Q schließe aufP”.
Till Mossakowski Logik 5/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Konjunktions-Beseitigung
Summary of Rules
Propositional rules ( F
T)
Conjunction Introduction (∧ Intro)
P1
⇓ Pn
...
. P1∧. . .∧Pn
Conjunction Elimination (∧ Elim)
P1∧. . . ∧Pi∧. . .∧Pn ...
. Pi
Disjunction Introduction (∨ Intro)
Pi ...
. P1∨. . .∨Pi∨. . .∨Pn
Disjunction Elimination (∨ Elim)
P1∨. . . ∨Pn ...
P1 ... S
⇓ Pn
... S ...
. S
557
Till Mossakowski Logik 6/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Konjunktions-Einf¨ uhrung
Summary of Rules
Propositional rules ( F
T)
Conjunction Introduction (∧ Intro)
P1
⇓ Pn
...
. P1∧. . .∧Pn
Conjunction Elimination (∧ Elim)
P1∧. . . ∧Pi∧. . .∧Pn ...
. Pi
Disjunction Introduction (∨ Intro)
Pi ...
. P1∨. . .∨Pi∨. . .∨Pn
Disjunction Elimination (∨ Elim)
P1∨. . . ∨Pn ...
P1 ... S
⇓ Pn
... S ...
. S
557
Till Mossakowski Logik 7/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Disjunktions-Einf¨ uhrung
Summary of Rules
Propositional rules ( F
T)
Conjunction Introduction (∧Intro)
P1
⇓ Pn
...
. P1∧. . .∧Pn
Conjunction Elimination (∧ Elim)
P1∧. . . ∧Pi∧. . .∧Pn ...
. Pi
Disjunction Introduction (∨Intro)
Pi ...
. P1∨. . .∨Pi∨. . .∨Pn
Disjunction Elimination (∨ Elim)
P1∨. . . ∨Pn ...
P1
... S
⇓ Pn
... S ...
. S
557
Till Mossakowski Logik 8/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Disjunktions-Beseitigung
Summary of Rules
Propositional rules ( F
T)
Conjunction Introduction (∧Intro)
P1
⇓ Pn
...
. P1∧. . .∧Pn
Conjunction Elimination (∧Elim)
P1∧. . .∧Pi∧. . .∧Pn
...
. Pi
Disjunction Introduction (∨Intro)
Pi
...
. P1∨. . .∨Pi∨. . .∨Pn
Disjunction Elimination (∨Elim)
P1∨. . .∨Pn
... P1
... S
⇓ Pn
... S ...
. S
557
Till Mossakowski Logik 9/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Eine inkorrekte Nutzung von Unterbeweisen
The proper use of subproofs/ 163
In the following two exercises, determine whether the sentences are consistent. If they are, use Tarski’s World to build a world where the sentences are both true. If they are inconsistent, use Fitch to give a proof that they are inconsistent (that is, derive⊥from them). You may useAna Con in your proof, but only applied to literals (that is, atomic sentences or negations of atomic sentences).
6.15
➶ ¬(Larger(a,b)∧Larger(b,a))
¬SameSize(a,b)
6.16
➶
Smaller(a,b)∨Smaller(b,a) SameSize(a,b)
Section 6.4
The proper use of subproofs
Subproofs are the characteristic feature of Fitch-style deductive systems. It is important that you understand how to use them properly, since if you are not careful, you may “prove” things that don’t follow from your premises. For example, the following formal proof looks like it is constructed according to our rules, but it purports to prove thatA∧Bfollows from (B∧A)∨(A∧C), which is clearly not right.
1. (B∧A)∨(A∧C) 2.B∧A
3.B ∧Elim: 2
4.A ∧Elim: 2
5.A∧C
6.A ∧Elim: 5
7.A ∨Elim: 1, 2–4, 5–6
8.A∧B ∧Intro: 7, 3
The problem with this proof is step 8. In this step we have used step 3, a step that occurs within an earlier subproof. But it turns out that this sort of justification—one that reaches back inside a subproof that has already ended—is not legitimate. To understand why it’s not legitimate, we need to think about what function subproofs play in a piece of reasoning.
A subproof typically looks something like this:
Section 6.4
Till Mossakowski Logik 10/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Die korrekte Nutzung von Unterbeweisen
Um einen Beweisschritt in einem Unterbeweis zu ¨uberpr¨ufen, kann man einen vorangegangenen Schrittim Hauptbeweis oder in jedem Unterbeweis, dessen Annahmen noch g¨ultig sind, verwenden.
Man darfnieeinen Schritt aus einem Unterbeweis, der bereits beendetist, verwenden.
Fitch unterst¨utzt das, indem es die Verwendung von einen Schritt aus einem Unterbeweis, der bereits beendetist, verbietet.
Till Mossakowski Logik 11/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
⊥ -Einf¨ uhrung
558 /Summary of Rules
Negation Introduction (¬ Intro)
P ...
⊥
. ¬P
Negation Elimination (¬ Elim)
¬¬P ...
. P
⊥Introduction (⊥ Intro)
P...
¬P ...
. ⊥
⊥Elimination (⊥Elim)
⊥...
. P
Conditional Introduction (→ Intro)
P ... Q
. P→Q
Conditional Elimination (→Elim)
P→Q ... P...
. Q
Summary of Rules
Till Mossakowski Logik 12/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Negations-Einf¨ uhrung
558 /Summary of Rules
Negation Introduction (¬Intro)
P ...
⊥
. ¬P
Negation Elimination (¬ Elim)
¬¬P ...
. P
⊥Introduction (⊥Intro)
P...
¬P ...
. ⊥
⊥Elimination (⊥ Elim)
⊥...
. P
Conditional Introduction (→ Intro)
P ... Q
. P→Q
Conditional Elimination (→ Elim)
P→Q ... P...
. Q
Summary of Rules
Till Mossakowski Logik 13/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Negations-Beseitigung
558 /Summary of Rules
Negation Introduction (¬Intro)
P ...
⊥
. ¬P
Negation Elimination (¬ Elim)
¬¬P ...
. P
⊥Introduction (⊥Intro)
P...
¬P ...
. ⊥
⊥Elimination (⊥ Elim)
⊥...
. P
Conditional Introduction (→ Intro)
P ... Q
. P→Q
Conditional Elimination (→ Elim)
P→Q ... P...
. Q
Summary of Rules
Till Mossakowski Logik 14/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
⊥ -Beseitigung
558 /Summary of Rules
Negation Introduction (¬Intro)
P ...
⊥
. ¬P
Negation Elimination (¬ Elim)
¬¬P ...
. P
⊥Introduction (⊥Intro)
P...
¬P ...
. ⊥
⊥Elimination (⊥ Elim)
⊥...
. P
Conditional Introduction (→Intro)
P ... Q
. P→Q
Conditional Elimination (→ Elim)
P→Q ... P...
. Q
Summary of Rules
Till Mossakowski Logik 15/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Strategie und Taktik in Fitch
1 Machen Sie sich klar, was die S¨atze besagen.
2 Uberlegen¨ Sie, ob die Konklusion aus den Pr¨amissen folgt.
3 Wenn Sie meinen, dass die Konklusion nicht folgt oder sich nicht sicher sind, versuchen Sie, einGegenbeispielzu finden.
4 Wenn Sie meinen, dass die Konklusion folgt, versuchen Sie, einen informellen Beweis zu f¨uhren.
5 Falls einformaler Beweis gefordert ist, lassen Sie sich bei der Auffindung dessen vom informellen Beweisleiten.
6 Vergessen Sie nicht die Taktik des R¨uckw¨arts-Arbeitens, falls Sie formal oder informell nachweisen, dass ein Satz aus anderen folgt.
7 Wenn Sie r¨uckw¨arts arbeiten, ¨ubrepr¨ufen Sie stets, ob die
Beweisziele Ihrer Zwischenschritteaus den gegebenen Informationen folgen.
Till Mossakowski Logik 16/ 17
Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik
Strategie und Taktik in Fitch (Fortsetzung)
Versuchen Sie stets, die Situation in Ihrem beweis mit den Beweisregeln zu vergleichen(im Anhang des Buches gibt es die komplette Liste der verf¨ugbaren Regeln, ebenso im internen Bereich auf der Webseite der Vorlesung).
Orientieren Sie sich am Hauptjunktor einer Pr¨amisseund wenden die entsprechende Beseitigungsregel an (vorw¨arts), oder Sie orientieren sich am Hauptjunktor der Konklusion und wenden die entsprechende Einf¨uhrungsregel an (r¨uckw¨arts).
Till Mossakowski Logik 17/ 17