Bausteine

  • Symbole (A,B,C…) können Werte 0,1 annehmen
  • Operatoren () (nicht, und, oder, Implikation, Äquivalenz)
  • Formeln Ausdrücke von Operation und Symbolen
AB
000011
010110
100100
111111

NOTE

“F allgemeingültig” immer 1 “F unerfüllbar” immer 0

Tautologie: immer 1 (or valid)

Definition

Logische Konsequenz: if for all truth assignments to the propositional symbols appearing in F or G, the truth value of G is 1 if the truth value of F is 1.

Beobachtung: Beispiel

AB
00101
01101
10001
11111

Modus Ponens

Ziel: Aussage Vorgehen:

  1. Finde geeignete Aussage
  2. Beweise
  3. Beweise

Falsches Beispiel

Theorem Beweise: (+1 beide Seite) (*1, weil 1 negativ ist)

Man sollte anders um beweisen, vom Wahres anfangen It’s crucial not to confuse the direction of implication. Proving S⟹R and R is true does not imply that S is true.

Lemma 2.1

Semantics

Definition: Literal

A literal is an atomic formula or the negation of an atomic formula. For example: or

Definition: Clause

A clause is a set of literals.

CNF & DNF

CNF (Conjunctive Normal Form) A Boolean formula is in CNF if it is an AND () of clauses, where each clause is an OR () of literals (a variable or its negation).

  • Shape: where truth table has 0
  • Example:
  • Typical use: SAT solvers (SAT is usually given as CNF).

DNF (Disjunctive Normal Form) A Boolean formula is in DNF if it is an OR () of terms, where each term is an AND () of literals.

  • Shape: where truth table has 1
  • Example:
  • Typical use: Representing a function as “one of these cases holds” (Normal Forms).

Resolution Calculus

This calculus is rule is written as The resolution calculus contains only this one rule,

Warning

It is important to point out that resolution steps must be carried out one by one