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.6 Propositional Logic<br />

2.6.1 Boolean Expressions and Propositional Logic<br />

We will now look at Boolean expressions from a different angle. We use them to give us a very<br />

simple model of a representation language for<br />

• knowledge — in our context mathematics, since it is so simple, and<br />

• argumentation — i.e. the process of deriving new knowledge from older knowledge<br />

Still another Notation for Boolean Expressions<br />

Idea: get closer to MathTalk<br />

Use ∨, ∧, ¬, ⇒, and ⇔ directly (after all, we do in MathTalk)<br />

construct more complex names (propositions) for variables<br />

(Use ground terms of sort B in an ADT)<br />

Definition 299 Let Σ = 〈S, D〉 be an abstract data type, such that B ∈ S and<br />

[¬: B → B], [∨: B × B → B] ∈ D, then we call the set T g<br />

B (Σ) of ground Σ-terms of sort<br />

B a formulation of Propositional Logic.<br />

We will also call this formulation Predicate Logic without Quantifiers and denote it with<br />

PLNQ.<br />

Definition 300 Call terms in T g<br />

B (Σ) without ∨, ∧, ¬, ⇒, and ⇔ atoms. (write A(Σ))<br />

Note: Formulae of propositional logic “are” Boolean Expressions<br />

replace A ⇔ B by (A ⇒ B) ∧ (B ⇒ A) and A ⇒ B by ¬A ∨ B. . .<br />

Build print routine ˆ· with A ∧ B = A ∗ B, and ¬A = A and that turns atoms into<br />

variable names. (variables and atoms are countable)<br />

c○: Michael Kohlhase 173<br />

Conventions for Brackets in Propositional Logic<br />

we leave out outer brackets: A ⇒ B abbreviates (A ⇒ B).<br />

implications are right associative: A 1 ⇒ · · · ⇒ A n ⇒ C abbreviates A 1 ⇒<br />

(· · · ⇒ (· · · ⇒ (A n ⇒ C)))<br />

a stands for a left bracket whose partner is as far right as is consistent with existing brackets<br />

(A ⇒ C ∧ D = A ⇒ (C ∧ D))<br />

c○: Michael Kohlhase 174<br />

We will now use the distribution of values of a Boolean expression under all (variable) assignments<br />

to characterize them semantically. The intuition here is that we want to understand theorems,<br />

examples, counterexamples, and inconsistencies in mathematics and everyday reasoning 5 .<br />

The idea is to use the formal language of Boolean expressions as a model for mathematical<br />

language. Of course, we cannot express all of mathematics as Boolean expressions, but we can at<br />

5 Here (and elsewhere) we will use mathematics (and the language of mathematics) as a test tube for understanding<br />

reasoning, since mathematics has a long history of studying its own reasoning processes and assumptions.<br />

90

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

Saved successfully!

Ooh no, something went wrong!