• Keine Ergebnisse gefunden

Formale Beweise und Boolesche Logik

N/A
N/A
Protected

Academic year: 2022

Aktie "Formale Beweise und Boolesche Logik"

Copied!
17
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

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

(2)

Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik

Beweismethoden f¨ ur die Boolesche Logik

Till Mossakowski Logik 2/ 17

(3)

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

(4)

Beweismethoden f¨ur die Boolesche Logik Formale Beweise und Boolesche Logik

Formale Beweise und Boolesche Logik

Till Mossakowski Logik 4/ 17

(5)

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 aufPQ”, eineBeseitigungsregel, z. B. “vonPQ schließe aufP”.

Till Mossakowski Logik 5/ 17

(6)

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

(7)

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

(8)

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

(9)

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

(10)

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, derivefrom 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 thatABfollows from (BA)(AC), which is clearly not right.

1. (BA)(AC) 2.BA

3.B Elim: 2

4.A Elim: 2

5.AC

6.A Elim: 5

7.A Elim: 1, 2–4, 5–6

8.AB 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

(11)

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

(12)

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

. PQ

Conditional Elimination (Elim)

PQ ... P...

. Q

Summary of Rules

Till Mossakowski Logik 12/ 17

(13)

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

. PQ

Conditional Elimination ( Elim)

PQ ... P...

. Q

Summary of Rules

Till Mossakowski Logik 13/ 17

(14)

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

. PQ

Conditional Elimination ( Elim)

PQ ... P...

. Q

Summary of Rules

Till Mossakowski Logik 14/ 17

(15)

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

. PQ

Conditional Elimination ( Elim)

PQ ... P...

. Q

Summary of Rules

Till Mossakowski Logik 15/ 17

(16)

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

(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

Referenzen

ÄHNLICHE DOKUMENTE

3 Wenn Sie meinen, dass die Konklusion nicht folgt oder sich nicht sicher sind, versuchen Sie, ein Gegenbeispiel zu finden.. 4 Wenn Sie meinen, dass die Konklusion folgt, versuchen

Beweise und Widerlegungen in der formalen Logik SS 2010 Ubungsblatt 3 ¨ (Abgabe

Beweisen Sie, daß die Regel (⊥) zul¨assig in NI ist, wenn statt der Regel (⊥) nur die auf atomare Konklusionen eingeschr¨ankte Regel (⊥) a verwendet

Geben Sie f ¨ur folgende Ableitungen an, welche Formelvorkommen maximal sind, und normalisieren Sie die Ableitungen. Geben Sie dabei jeweils zwei Reduktionen mit allen

Beweise und Widerlegungen in der formalen Logik SS 2010 Ubungsblatt 6 ¨ (Abgabe

Der Gebrauch von Annahmen und die Anwendung der Regeln von NK werden zun¨achst durch einige Beispiele f ¨ur Ableitungen veranschaulicht. Die genaue Definition einer Ableitung wird

Thermische Ausdehnung eines Molek¨ uls: St¨ orungsrechnung (2 Punkte) Ein zweiatomiges Molek¨ul, das in ein Kritall eingebettet ist, besitzt nur noch

Die Bedeutung einer Formel der Aussagenlogik ergibt sich dann daraus, dass man diese Zuordnung von den Aussagensymbolen auf die Formel erweitert, in dem man definiert,