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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Example 309 A ⊢ B ⇒ A<br />
Derivations and Proofs<br />
Ax<br />
A ⇒ B ⇒ A A ⇒E<br />
B ⇒ A<br />
c○: Michael Kohlhase 179<br />
Definition 310 A derivation of a formula C from a set H of hypotheses (write H ⊢ C) is<br />
a sequence A1, . . . , Am of formulae, such that<br />
Am = C (derivation culminates in C)<br />
for all (1 ≤ i ≤ m), either Ai ∈ H (hypothesis)<br />
or there is an inference rule Al1 · · · Alk<br />
, where lj < i for all j ≤ k.<br />
Ai<br />
Example 311 In the propositional calculus of<br />
natural deduction we have A ⊢ B ⇒ A: the<br />
sequence is A ⇒ B ⇒ A, A, B ⇒ A<br />
Ax<br />
A ⇒ B ⇒ A A ⇒E<br />
B ⇒ A<br />
Observation 312 Let S := 〈L, K, |=〉 be a logical system, then the C derivation relation<br />
defined in Definition 310 is a derivation system in the sense of ??<br />
Definition 313 A derivation ∅ ⊢C A is called a proof of A and if one exists ( ⊢C A) then<br />
A is called a C-theorem.<br />
Definition 314 an inference rule I is called admissible in C, if the extension of C by I does<br />
not yield new theorems.<br />
c○: Michael Kohlhase 180<br />
With formula schemata we mean representations of sets of formulae. In our example above, we<br />
used uppercase boldface letters as (meta)-variables for formulae. For instance, the the “modus<br />
ponens” inference rule stands for 9 EdNote:9<br />
As an axiom does not have assumptions, it can be added to a proof at any time. This is just what<br />
we did with the axioms in our example proof.<br />
In general formulae can be used to represent facts about the world as propositions; they have a<br />
semantics that is a mapping of formulae into the real world (propositions are mapped to truth<br />
values.) We have seen two relations on formulae: the entailment relation and the deduction<br />
relation. The first one is defined purely in terms of the semantics, the second one is given by a<br />
calculus, i.e. purely syntactically. Is there any relation between these relations?<br />
Ideally, both relations would be the same, then the calculus would allow us to infer all facts that<br />
can be represented in the given formal language and that are true in the real world, and only<br />
those. In other words, our representation and inference is faithful to the world.<br />
A consequence of this is that we can rely on purely syntactical means to make predictions<br />
about the world. <strong>Computer</strong>s rely on formal representations of the world; if we want to solve a<br />
problem on our computer, we first represent it in the computer (as data structures, which can be<br />
seen as a formal language) and do syntactic manipulations on these structures (a form of calculus).<br />
Now, if the provability relation induced by the calculus and the validity relation coincide (this will<br />
9 EdNote: continue<br />
95