15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.7 Machine-Oriented Calculi<br />

Now we have studied the Hilbert-style calculus in some detail, let us look at two calculi that work<br />

via a totally different principle. Instead of deducing new formulae from axioms (and hypotheses)<br />

and hoping to arrive at the desired theorem, we try to deduce a contradiction from the negation<br />

of the theorem. Indeed, a formula A is valid, iff ¬A is unsatisfiable, so if we derive a contradiction<br />

from ¬A, then we have proven A. The advantage of such “test-calculi” (also called negative<br />

calculi) is easy to see. Instead of finding a proof that ends in A, we have to find any of a broad<br />

class of contradictions. This makes the calculi that we will discuss now easier to control and<br />

therefore more suited for mechanization.<br />

2.7.1 Calculi for Automated Theorem Proving: Analytical Tableaux<br />

Analytical Tableaux<br />

Before we can start, we will need to recap some nomenclature on formulae.<br />

Recap: Atoms and Literals<br />

Definition 330 We call a formula atomic, or an atom, iff it does not contain connectives.<br />

We call a formula complex, iff it is not atomic.<br />

Definition 331 We call a pair A α a labeled formula, if α ∈ {T, F}. A labeled atom is<br />

called literal.<br />

Definition 332 Let Φ be a set of formulae, then we use Φ α := {A α | A ∈ Φ}.<br />

c○: Michael Kohlhase 199<br />

The idea about literals is that they are atoms (the simplest formulae) that carry around their<br />

intended truth value.<br />

Now we will also review some propositional identities that will be useful later on. Some of<br />

them we have already seen, and some are new. All of them can be proven by simple truth table<br />

arguments.<br />

Test Calculi: Tableaux and Model Generation<br />

Idea: instead of showing ∅ ⊢ T h, show ¬T h ⊢ trouble (use ⊥ for trouble)<br />

Example 333 Tableau Calculi try to construct models.<br />

Tableau Refutation (Validity) Model generation (Satisfiability)<br />

|=P ∧ Q ⇒ Q ∧ P |=P ∧ (Q ∨ ¬R) ∧ ¬Q<br />

P ∧ Q ⇒ Q ∧ P F<br />

P ∧ QT Q ∧ P F<br />

P T<br />

P ∧ (Q ∨ ¬R) ∧ ¬QT P ∧ (Q ∨ ¬R) T<br />

¬QT QF P T<br />

P F<br />

⊥<br />

Q T<br />

Q F<br />

⊥<br />

Q ∨ ¬R T<br />

Q T<br />

⊥<br />

¬R T<br />

R F<br />

No Model Herbrand Model {P T , Q F , R F }<br />

ϕ := {P ↦→ T, Q ↦→ F, R ↦→ F}<br />

Algorithm: Fully expand all possible tableaux, (no rule can be applied)<br />

106

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!