Mathematik und Logik Inhalt

Werbung
Mathematik und Logik
Franz Binder
Institut für Algebra
Johannes Kepler Universität Linz
Vorlesung im 2005W
http://www.algebra.uni-linz.ac.at/Students/Win/ml05w
Inhalt
Prädikatenlogik
Allquantor, ∀
Existenzquantor
Allquantor, ∀
I
I
I
I
I
Sei X ein Datentyp, und P [x] für jedes x : X eine Aussage. Dann
bezeichnet ∀x : X P [x] eine All-Aussage.
Die All-Aussage drückt eine universelle Quantifizierung aus.
Ein Beweis von ∀x : X P [x] konstruiert für jedes beliebige x : X
einen Beweis von P [x].
Praktisch: Es sei ∀x : X P [x] zu beweisen.
Vorgangsweise: Annahme x : X; beweise P [x].
Hängt P [x] nicht von x ab, dann liegt eine normale Implikation
vor: ∀x : X P ist dasselbe wie X → P .
Allquantor, Introduktion und Elimination
I
I
Um ∀x : X P [x] zu beweisen, muß man P [x] für ein beliebiges x : X
beweisen.
∀-Introduktion:
x: X
..
.
P [x]
∀x : X P [x]
I
I
∀I
Wurde ∀x : X P [x] bewiesen, und ist a : X, dann hat man einen
Beweis von P [a].
∀-Elimination:
∀x : X P [x] a : X
∀E
P [a]
Allquantor, Beispiel
∀x : X A[x] ∨ ∀y : Y B[y]
x: X
y: Y
..
.
A[x] ∨ B[y]
∀I
∀y : Y (A[x] ∨ B[y])
∀x : X ∀y : Y (A[x] ∨ B[y])
∀I
⇒I
∀x : X A[x] ∨ ∀y : Y B[y] =⇒ ∀x : X ∀y : Y (A[x] ∨ B[y])
Allquantor: Beispiel (Fortsetzung)
Annahmen: ∀x : X A[x] ∨ ∀y : Y B[y],
Zu beweisen:
x : X,
∀x : X A[x]
∀y : Y B[y]
..
.
..
.
A[x] ∨ B[y]
A[x] ∨ B[y]
y: Y
∀x : X A[x] ∨ ∀y : Y B[y] ⇒ A[x] ∨ B[y]
∨E
Die beiden Fälle:
∀x : X A[x] x : X
∀E
A[x]
∨I0
A[x] ∨ B[y]
∀y : Y B[y] y : Y
∀E
B[y]
∨I1
A[x] ∨ B[y]
I
I
I
I
I
Sei X ein Datentyp, und P [x] für jedes x : X eine Aussage. Dann
bezeichnet ∃x : X P [x] eine Existenz-Aussage.
Die Existenzaussage drückt eine existenzielle Quantifizierung aus.
Ein Beweis von ∃x : X P [x] konstruiert ein a : X und einen Beweis
von P [a].
Praktisch: Es sei ∃x : X P [x] zu beweisen.
Vorgangsweise: Man wählt ein passendes a : X, und versucht
damit P [a] zu beweisen.
Hängt P [x] nicht von x ab, dann liegt eine normale Konjunktion
vor: ∃x : X P ist dasselbe wie X ∧ P .
Existenzquantor: Introduktion und Elimination
I
I
I
I
Um ∃x : X P [x] zu beweisen, muß man ein a : X finden und damit
P [a] beweisen.
a : X P [a]
∃-Introduktion:
∃I
∃x : X P [x]
Wurde ∃x : X P [x] bewiesen, so kann man für’s weitere annehmen,
daß es ein soches Objekt gibt.
∃-Elimination:
y : X P [y]
..
.
Q
∃x : X P [x]
Q
∃E
Herunterladen