Formelsammlung Logik

Dies ist eine Formelsammlung zum mathematischen Teilgebiet der Logik.

Aussagenlogik

Logische Werte:

  • wahr (true) 1
  • falsch (false) 0

Erweiterte Logik:

  • unbestimmt (Don’t-Care) X

Aussagen können durch logische Operatoren, auch Junktoren genannt, verknüpft werden. Die üblichen Junktoren sind:

Name Symbol sprachliche Umschreibung Operation Definition
Negator ¬ {\displaystyle \neg } nicht Negation Die Negation eines logischen Werts ist genau dann wahr, wenn der Wert falsch ist.
Konjunktor {\displaystyle \land } und Konjunktion Die Konjunktion von zwei Werten ist genau dann wahr, wenn beide Werte wahr sind.
Disjunktor {\displaystyle \lor } oder Disjunktion Die Disjunktion von zwei Werten ist genau dann wahr, wenn mindestens ein Wert wahr ist.

Um die Symbole des Konjunktors und des Disjunktors leicht auseinanderhalten zu können, gibt es die Eselsbrücke mit den drei O: „Oder ist Oben Offen.“ Alternativ merkt man sich "And" (Englisch) für und, sowie "vel" (Latein) für oder.

Verknüpfungen zweier Aussagen

Name sprachliche Umschreibung äquivalente Darstellungen Wahrheitstabelle Logik­gatter
durch Negator, Konjunktor und Disjunktor durch andere Junktoren A=1 A=0
B=1 B=0 B=1 B=0
Konjunktion A und B A B {\displaystyle A\land B} ¬ ( B ¬ A ) {\displaystyle \neg (B\to \neg A)} 1 0 0 0 AND
Exklusion, konträrer Gegensatz nicht zugleich A und B ¬ ( A B ) {\displaystyle \neg (A\land B)} , ¬ A ¬ B {\displaystyle \neg A\lor \neg B} A B {\displaystyle A\mid B} , A ¬ B {\displaystyle A\to \neg B} , B ¬ A {\displaystyle B\to \neg A} 0 1 1 1 NAND
Disjunktion A oder B (oder beide) A B {\displaystyle A\lor B} ¬ A B {\displaystyle \neg A\to B} , ¬ B A {\displaystyle \neg B\to A} 1 1 1 0 OR
Nihilition, Rejektion weder A noch B ¬ ( A B ) {\displaystyle \neg (A\lor B)} , ¬ A ¬ B {\displaystyle \neg A\land \neg B} 0 0 0 1 NOR
Kontravalenz, kontradiktorischer Gegensatz entweder A oder B ( A ¬ B ) ( ¬ A B ) {\displaystyle (A\land \neg B)\lor (\neg A\land B)} , ( A B ) ( ¬ A ¬ B ) {\displaystyle (A\lor B)\land (\neg A\lor \neg B)} A B {\displaystyle A\veebar B} , ¬ ( A B ) {\displaystyle \neg (A\leftrightarrow B)} 0 1 1 0 XOR
Bikonditional, Bisubjunktion, materiale Äquivalenz B dann und nur dann, wenn A; genau dann B, wenn A ( A B ) ( ¬ A ¬ B ) {\displaystyle (A\land B)\lor (\neg A\land \neg B)} , ( A ¬ B ) ( ¬ A B ) {\displaystyle (A\lor \neg B)\land (\neg A\lor B)} ( A B ) {\displaystyle (A\leftrightarrow B)} , ( A B ) ( B A ) {\displaystyle (A\to B)\land (B\to A)} 1 0 0 1 XNOR
Konditional, Subjunktion, materiale Implikation Implikation wenn A, dann B ¬ A B {\displaystyle \neg A\lor B} A B {\displaystyle A\to B} , ¬ B ¬ A {\displaystyle \neg B\to \neg A} 1 0 1 1
Replikation wenn B, dann A ¬ B A {\displaystyle \neg B\lor A} B A {\displaystyle B\to A} , ¬ A ¬ B {\displaystyle \neg A\to \neg B} 1 1 0 1
Inhibition Postsektion A und nicht B A ¬ B {\displaystyle A\land \neg B} ¬ ( A B ) {\displaystyle \neg (A\to B)} 0 1 0 0
Präsektion B und nicht A B ¬ A {\displaystyle B\land \neg A} ¬ ( B A ) {\displaystyle \neg (B\to A)} 0 0 1 0

Logische Grundgesetze

Gesetz der doppelten Negation x ¬ ( ¬ x ) {\displaystyle x\leftrightarrow \neg (\neg x)}
Kommutativgesetze x y y x {\displaystyle x\land y\leftrightarrow y\land x} x y y x {\displaystyle x\lor y\leftrightarrow y\lor x}
Assoziativgesetze x ( y z ) ( x y ) z {\displaystyle x\land (y\land z)\leftrightarrow (x\land y)\land z} ( x y ) z x ( y z ) {\displaystyle (x\lor y)\lor z\leftrightarrow x\lor (y\lor z)}
Distributivgesetze x ( y z ) ( x y ) ( x z ) {\displaystyle x\land (y\lor z)\leftrightarrow (x\land y)\lor (x\land z)} x ( y z ) ( x y ) ( x z ) {\displaystyle x\lor (y\land z)\leftrightarrow (x\lor y)\land (x\lor z)}
Idempotenz x x x {\displaystyle x\land x\leftrightarrow x} x x x {\displaystyle x\lor x\leftrightarrow x}
Gesetze der Negation (Tautologie / Kontradiktion) x ¬ x 1 {\displaystyle x\lor \neg x\leftrightarrow 1} x ¬ x 0 {\displaystyle x\land \neg x\leftrightarrow 0}
Absorptionsgesetze x ( x y ) x {\displaystyle x\land (x\lor y)\leftrightarrow x} x ( x y ) x {\displaystyle x\lor (x\land y)\leftrightarrow x}
Neutralität x 0 x {\displaystyle x\lor 0\leftrightarrow x} x 1 x {\displaystyle x\land 1\leftrightarrow x}
De Morgansche Gesetze ¬ ( x y ) ¬ x ¬ y {\displaystyle \neg (x\land y)\leftrightarrow \neg x\lor \neg y} ¬ ( x y ) ¬ x ¬ y {\displaystyle \neg (x\lor y)\leftrightarrow \neg x\land \neg y}
Modus ponens { a b , a } b {\displaystyle \{a\rightarrow b,a\}\vdash b}
Modus tollens { a b , ¬ b } ¬ a {\displaystyle \{a\rightarrow b,\neg b\}\vdash \neg a}
Hypothetischer Syllogismus { a b , b c } a c {\displaystyle \{a\rightarrow b,b\rightarrow c\}\vdash a\rightarrow c}
Disjunktiver Syllogismus { a b , ¬ a } b {\displaystyle \{a\lor b,\neg a\}\vdash b}

Prädikatenlogik

p ist Platzhalter für eine prädikatenlogische Aussageform.

x p ¬ ( x ¬ p ) {\displaystyle \forall _{x}p\leftrightarrow \neg (\exists _{x}\neg p)} x p ¬ ( x ¬ p ) {\displaystyle \exists _{x}p\leftrightarrow \neg (\forall _{x}\neg p)}
¬ x p ( x ¬ p ) {\displaystyle \neg \forall _{x}p\leftrightarrow (\exists _{x}\neg p)} ¬ x p ( x ¬ p ) {\displaystyle \neg \exists _{x}p\leftrightarrow (\forall _{x}\neg p)}

ϕ {\displaystyle \phi } und ψ {\displaystyle \psi } sind im Folgenden Platzhalter für prädikatenlogische Aussageformen. Die Umformungen in Zeilen 1, 2, 4 und 5 der Tabelle gelten nur, wenn x innerhalb von ψ {\displaystyle \psi } nicht frei vorkommt, d. h., wenn durch das Verschieben des Quantors keine Variablenbindung entsteht (bzw. aufgelöst wird), die zuvor nicht da war (bzw. da war).

Unproblematisch ist das, wenn die Variablen in den Aussageformen ϕ {\displaystyle \phi } und ψ {\displaystyle \psi } jeweils unterschiedlich benannt sind.

( x ϕ ) ψ x ( ϕ ψ ) {\displaystyle (\forall x\phi )\land \psi \leftrightarrow \forall x(\phi \land \psi )} ( x ϕ ) ψ x ( ϕ ψ ) {\displaystyle (\forall x\phi )\lor \psi \leftrightarrow \forall x(\phi \lor \psi )}
( x ϕ ) ψ x ( ϕ ψ ) {\displaystyle (\exists x\phi )\land \psi \leftrightarrow \exists x(\phi \land \psi )} ( x ϕ ) ψ x ( ϕ ψ ) {\displaystyle (\exists x\phi )\lor \psi \leftrightarrow \exists x(\phi \lor \psi )}
¬ x ϕ x ¬ ϕ {\displaystyle \lnot \exists x\phi \leftrightarrow \forall x\lnot \phi } ¬ x ϕ x ¬ ϕ {\displaystyle \lnot \forall x\phi \leftrightarrow \exists x\lnot \phi }
( ( x ϕ ) ψ ) x ( ϕ ψ ) {\displaystyle ((\forall x\phi )\rightarrow \psi )\leftrightarrow \exists x(\phi \rightarrow \psi )} ( ( x ϕ ) ψ ) x ( ϕ ψ ) {\displaystyle ((\exists x\phi )\rightarrow \psi )\leftrightarrow \forall x(\phi \rightarrow \psi )}
( ψ ( x ϕ ) ) x ( ψ ϕ ) {\displaystyle (\psi \rightarrow (\exists x\phi ))\leftrightarrow \exists x(\psi \rightarrow \phi )} ( ψ ( x ϕ ) ) x ( ψ ϕ ) {\displaystyle (\psi \rightarrow (\forall x\phi ))\leftrightarrow \forall x(\psi \rightarrow \phi )}

Minimale Schlussregeln

Quasiordnung

{\displaystyle \vdash } ist im Folgenden eine Quasiordnung zwischen Aussagen.

  A A A B B C A C {\displaystyle {\begin{array}{c}{~}\\\hline A\vdash A\end{array}}\qquad {\begin{array}{c}A\vdash B\qquad B\vdash C\\\hline A\vdash C\end{array}}}

Konjunktion

{\displaystyle \top } und {\displaystyle \land } werden durch folgende Regeln definiert.

  A A B A C A B C {\displaystyle {\begin{array}{c}{~}\\\hline A\vdash \top \end{array}}\qquad {\begin{array}{c}A\vdash B\qquad A\vdash C\\\hline A\vdash B\land C\end{array}}{\uparrow }{\downarrow }}

Disjunktion

{\displaystyle \bot } und {\displaystyle \lor } werden durch folgende Regeln definiert.

  A A C B C A B C {\displaystyle {\begin{array}{c}{~}\\\hline \bot \vdash A\end{array}}\qquad {\begin{array}{c}A\vdash C\qquad B\vdash C\\\hline A\lor B\vdash C\end{array}}{\uparrow }{\downarrow }}

Heyting-Implikation und -Negation

{\displaystyle \to } wird durch die Regel

A B C A B C {\displaystyle {\begin{array}{lcr}A\land B&\vdash &C\\\hline A&\vdash &B\to C\end{array}}{\uparrow }{\downarrow }}

definiert, und ¬ {\displaystyle \lnot } per ¬ A := A {\displaystyle \lnot A:=A\to \bot } .

Es gelten

  • A ¬ A {\displaystyle A\land \lnot A\vdash \bot } ,
  • ¬ {\displaystyle \lnot \top \vdash \bot } und
  • ¬ {\displaystyle \top \vdash \lnot \bot } .

Ko-Heyting-Implikation und -Negation

Dual zu {\displaystyle \to } und ¬ {\displaystyle \lnot } sind {\displaystyle \setminus } und {\displaystyle \sim } .

A B C A B C {\displaystyle {\begin{array}{lcr}A\setminus B&\vdash &C\\\hline A&\vdash &B\lor C\end{array}}{\uparrow }{\downarrow }} ,

A := A {\displaystyle {\sim }A:=\top \setminus A} .

Es gelten

  • A A {\displaystyle \top \vdash A\lor {\sim }A}
  • {\displaystyle {\sim }\top \vdash \bot } und
  • {\displaystyle \top \vdash {\sim }\bot } .

Beziehung zwischen den Negationen

Es gilt immer ¬ A A {\displaystyle \lnot A\vdash {\sim }A} . Gilt auch A ¬ A {\displaystyle {\sim }A\vdash \lnot A} , erhält man klassische Logik.

Quantoren

Es sei f : X Y {\displaystyle f\colon X\to Y} eine Abbildung. Eine beliebige Aussage A {\displaystyle A} über Elemente von Y {\displaystyle Y} kann per f {\displaystyle f} in eine Aussage über X {\displaystyle X} -Elemente transformiert werden; Notation: A f {\displaystyle A\circ f} . ( f ) {\displaystyle ({\mathord {-}}\circ f)} ist ein Funktor. Sein Rechts- und Linksadjungierter ist der All- bzw. Existenzquantor, d. h.,

A f X B A Y f B C X A f f C Y A {\displaystyle {\begin{array}{lcr}A\circ f&\vdash _{X}&B\\\hline A&\vdash _{Y}&\forall _{f}B\end{array}}{\uparrow }{\downarrow }\qquad {\begin{array}{rcl}C&\vdash _{X}&A\circ f\\\hline \exists _{f}C&\vdash _{Y}&A\end{array}}{\uparrow }{\downarrow }} .