• Keine Ergebnisse gefunden

Logic, Boolean logic and Tarski’s world

N/A
N/A
Protected

Academic year: 2022

Aktie "Logic, Boolean logic and Tarski’s world"

Copied!
13
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Logik f¨ ur Informatiker Logic for computer scientists

Till Mossakowski

WiSe 2013/14

Till Mossakowski Logic 1/ 13

(2)

The Logic of Boolean

Connectives

(3)

Logical necessity

A sentence is

logically necessary, or logically valid, if it is true in all circumstances (worlds),

logically possible, orsatisfiable, if it is true in some circumstances (worlds),

logically impossible, or unsatisfiable, if it is true in no circumstances (worlds).

Till Mossakowski Logic 3/ 13

(4)

Logically possible

Logically and physically possible

Logically impossible P∧ ¬P a6=a

Logically necessary P ∨ ¬P a=a

(5)

Logic, Boolean logic and Tarski’s world

A sentence is

logically necessary, or logically valid, if it is true in all circumstances (worlds),

TW-necessary, if it is true in all worlds of Tarski’s world, a tautology, if it is true in all valuations of the atomic sentences with {TRUE,FALSE}.

Till Mossakowski Logic 5/ 13

(6)
(7)

The truth table method

A sentence is a tautology if and only if it evaluates to TRUE in all rows of its complete truth table.

Truth tables can be constructed with the program Boole.

Till Mossakowski Logic 7/ 13

(8)

Tautological equivalence and consequence

Two sentences P andQ are tautologically equivalent, if they evaluate to the same truth value in all valuations (rows of the truth table).

Q is a tautological consequenceof P1, . . . ,Pn if and only if every row that assigns TRUE to each ofP1, . . . ,Pn also assigns TRUEto Q.

IfQ is a tautological consequence of P1, . . . ,Pn, thenQ is also alogical consequence of P1, . . . ,Pn.

Some logical consequences are not tautological ones.

(9)

de Morgan’s laws and double negation

¬(P ∧Q)⇔(¬P∨ ¬Q)

¬(P ∨Q)⇔(¬P∧ ¬Q)

¬¬P ⇔P

Note: ¬ binds stronger than∧and∨. Bracktes are needed to override this.

Till Mossakowski Logic 9/ 13

(10)

Negation normal form

Substitution of equivalents: IfP andQ are logically

equivalent: P ⇔Q then the results of substituting one for the other in the context of a larger sentence are also logically equivalent: S(P)⇔S(Q)

A sentence is in negation normal form(NNF) if all occurrences of ¬apply directly to atomic sentences.

Any sentence built from atomic sentences using just∧,∨, and

¬ can beput into negation normal form by repeated application of the de Morgan laws and double negation.

(11)

Distributive laws

For any sentencesP,Q, and R:

Distribution of ∧over ∨:

P ∧(Q∨R)⇔(P ∧Q)∨(P ∧R).

Distribution of ∨over ∧:

P ∨(Q∧R)⇔(P ∨Q)∧(P ∨R).

Till Mossakowski Logic 11/ 13

(12)

Conjunctive and disjunctive normal form

A sentence is in conjunctive normal form(CNF) if it is a conjunction of one or more disjunctions of one or more literals.

Distribution of ∨over ∧allows you totransform any sentence in negation normal form into conjunctive normal form.

(13)

Disjunctive normal form

A sentence is in disjunctive normal form(DNF) if it is a disjunction of one or more conjunctions of one or more literals.

Distribution of ∧over ∨allows you totransform any sentence in negation normal form into disjunctive normal form.

Some sentences are in both CNF and DNF.

Till Mossakowski Logic 13/ 13

Referenzen

ÄHNLICHE DOKUMENTE

replace kann add1 nach innen verschieben.. Data constructor Typ constructor

Yet according to Wo-, she is not violating any logical obligation in failing to revise her beliefs, and according to Wr-, she does not even have a reason to revise them—at least, not

This information, in particular the detailed simultaneous knowledge of various time-varying social networks allows us to quantify how humans form social bonds, how they organise, how

My bathroom is a mess, he ruined my makeover photos and he plays the violin – badlyB. Read Bridget's complaints

3. Ziggy steals Bridget's phone and sends text messages... 4. Bridget is pleased when her old

My bathroom is a mess, he ruined my makeover photos and he plays the violin – badly. Read Bridget's complaints

1. Nick goes to a shop with no clothes on. Ziggy gets upset by Bridget's impersonation of her. Ziggy steals Bridget's phone and sends text messages. Bridget is pleased when her

The software repairs in this release are described in the README file included on the tape. Create a directory, cd into it and extract the software from the