02Traditional Logic I The Importance of Being Formal Martin Henz - - PowerPoint PPT Presentation

02 traditional logic i
SMART_READER_LITE
LIVE PREVIEW

02Traditional Logic I The Importance of Being Formal Martin Henz - - PowerPoint PPT Presentation

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions 02Traditional Logic I The Importance of Being Formal Martin Henz January 22, 2014 Generated on Wednesday 22 nd January, 2014, 09:51 The Importance of Being


slide-1
SLIDE 1

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

02—Traditional Logic I

The Importance of Being Formal

Martin Henz

January 22, 2014

Generated on Wednesday 22nd January, 2014, 09:51 The Importance of Being Formal 02—Traditional Logic I

slide-2
SLIDE 2

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

1

Review: Agenda and Hallmarks

2

Traditional Logic

3

Manipulating Terms and Propositions

The Importance of Being Formal 02—Traditional Logic I

slide-3
SLIDE 3

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

1

Review: Agenda and Hallmarks

2

Traditional Logic

3

Manipulating Terms and Propositions

The Importance of Being Formal 02—Traditional Logic I

slide-4
SLIDE 4

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

The Importance of Being Formal

First Agenda Find out in detail how formal systems work Goal Thorough understanding of formal logic as an example par excellence for formal methods Approach Study a series of logics: traditional, propositional, predicate logic

The Importance of Being Formal 02—Traditional Logic I

slide-5
SLIDE 5

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

The Importance of Being Formal

Second Agenda Explore fundamental boundaries of formal reasoning Goal Appreciate Undecidability and G¨

  • del’s incompleteness results

Approach Study predicate logic deep enough to understand his formal arguments

The Importance of Being Formal 02—Traditional Logic I

slide-6
SLIDE 6

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

The Importance of Being Formal

Third Agenda Explore formal methods across fields Approach Students write essays and present their findings Goal Overview of formal methods and their limitations in our civilization

The Importance of Being Formal 02—Traditional Logic I

slide-7
SLIDE 7

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions

Hallmarks of Formal Methods

Discreteness Naming Abstraction (classification) Reification Self-reference Form vs content Syntax vs semantics

The Importance of Being Formal 02—Traditional Logic I

slide-8
SLIDE 8

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

1

Review: Agenda and Hallmarks

2

Traditional Logic Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

3

Manipulating Terms and Propositions

The Importance of Being Formal 02—Traditional Logic I

slide-9
SLIDE 9

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Traditional Logic

Origins Greek philosopher Aristotle (384–322 BCE) wrote treatise Prior Analytics; considered the earliest study in formal logic; widely accepted as the definite approach to deductive reasoning until the 19thcentury. Goal Formalize relationships between sets; allow reasoning about set membership

The Importance of Being Formal 02—Traditional Logic I

slide-10
SLIDE 10

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 1

All humans are mortal. All Greeks are humans. Therefore, all Greeks are mortal. Makes “sense”, right? Why?

The Importance of Being Formal 02—Traditional Logic I

slide-11
SLIDE 11

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 2

All cats are predators. Some animals are cats. Therefore, all animals are predators. Does not make sense! Why not?

The Importance of Being Formal 02—Traditional Logic I

slide-12
SLIDE 12

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 3

All slack track systems are caterpillar systems. All Christie suspension systems are slack track systems. Therefore, all Christie suspension systems are caterpillar systems. Makes sense, even if you do not know anything about suspension systems. Form, not content In logic, we are interested in the form of valid arguments, irrespective of any particular domain of discourse.

The Importance of Being Formal 02—Traditional Logic I

slide-13
SLIDE 13

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Categorical Terms

Terms refer to sets Term animals refers to the set of animals, term brave refers to the set of brave persons, etc Term The set Term contains all terms under consideration Examples animals ∈ Term brave ∈ Term

The Importance of Being Formal 02—Traditional Logic I

slide-14
SLIDE 14

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Models

Meaning A model M fixes what elements we are interested in, and what we mean by each term Fix universe For a particular M, the universe UM contains all elements that we are interested in. Meaning of terms For a particular M and a particular term t, the meaning of t in M, denoted tM, is a particular subset of UM.

The Importance of Being Formal 02—Traditional Logic I

slide-15
SLIDE 15

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 1A

For our examples, we have Term = {cats, humans, Greeks, . . .}. First meaning M UM: the set of all living beings, catM the set of all cats, humansM the set of all humans, . . .

The Importance of Being Formal 02—Traditional Logic I

slide-16
SLIDE 16

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 1B

Consider the same Term = {cats, humans, Greeks, . . .}. Second meaning M′ UM′: A set of 100 playing cards, depicting living beings, catM′: all cards that show cats, humansM′: all cards that show humans, . . .

The Importance of Being Formal 02—Traditional Logic I

slide-17
SLIDE 17

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 2A

Consider the following set of terms: Term = {even, odd, belowfour} First meaning M1 UM1 = {0, 1, 2, 3, . . .}, evenM1 = {0, 2, 4, . . .},

  • ddM1 = {1, 3, 5, . . .}, and

belowfourM1 = {0, 1, 2, 3}.

The Importance of Being Formal 02—Traditional Logic I

slide-18
SLIDE 18

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Example 2B

Consider the same Term = {even, odd, belowfour} Second meaning M2 UM2 = {a, b, c, . . . , z}, evenM2 = {a, e, i, o, u},

  • ddM2 = {b, c, d, . . .}, and

belowfourM2 = ∅.

The Importance of Being Formal 02—Traditional Logic I

slide-19
SLIDE 19

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Categorical Propositions

All cats are predators expresses a relationship between the terms cats (subject) and predators (object). Intended meaning Every thing that is included in the class represented by cats is also included in the class represented by predators.

The Importance of Being Formal 02—Traditional Logic I

slide-20
SLIDE 20

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Four Kinds of Categorical Propositions

Quantity universal particular Quality affirmative All t1 are t2 Some t1 are t2 negative No t1 are t2 Some t1 are not t2 Example Some cats are not brave is a particular, negative proposition.

The Importance of Being Formal 02—Traditional Logic I

slide-21
SLIDE 21

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Meaning of Universal Affirmative Propositions

In a particular model M, All Greeks are mortal means that GreeksM is a subset of mortalM

The Importance of Being Formal 02—Traditional Logic I

slide-22
SLIDE 22

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Meaning of Universal Negative Propositions

In a particular model M, No Greeks are cats means that the intersection of GreeksM and catsM is empty.

The Importance of Being Formal 02—Traditional Logic I

slide-23
SLIDE 23

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Meaning of Particular Affirmative Propositions

In a particular model M, Some humans are Greeks means that the intersection of humansM and GreeksM is not empty.

The Importance of Being Formal 02—Traditional Logic I

slide-24
SLIDE 24

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Meaning of Particular Negative Propositions

In model M, Some Greeks are not vegetarians means the difference of GreeksM and vegetariansM is not empty.

The Importance of Being Formal 02—Traditional Logic I

slide-25
SLIDE 25

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Axioms

Axioms are propositions that are assumed to hold. Axiom (HM) The proposition All humans are mortal holds. Axiom (GH) The proposition All Greeks are humans holds.

The Importance of Being Formal 02—Traditional Logic I

slide-26
SLIDE 26

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Graphical Notation

All humans are mortal [HumansMortality]

The Importance of Being Formal 02—Traditional Logic I

slide-27
SLIDE 27

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Lemmas

Lemmas are affirmations that follow from all known facts. Proof obligation A lemma must be followed by a proof that demonstrates how it follows from known facts.

The Importance of Being Formal 02—Traditional Logic I

slide-28
SLIDE 28

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Trivial Example of Proof

Lemma The proposition All humans are mortal holds. Proof. All humans are mortal [HM]

The Importance of Being Formal 02—Traditional Logic I

slide-29
SLIDE 29

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Unusual Models

We can choose any model for our terms, also “unusual” ones. Example UM = {0, 1}, humansM = {0}, mortalM = {1} Here All humans are mortal does not hold.

The Importance of Being Formal 02—Traditional Logic I

slide-30
SLIDE 30

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Origins and Goals Categorical Terms Categorical Propositions and their Meaning Axioms, Lemmas and Proofs

Asserting Axioms

Purpose of axioms By asserting an axiom A, we are focusing our attention to only those models M for which AM = T. Consequence The lemmas that we prove while utilizing an axiom only hold in the models in which the axiom holds. Validity A proposition is called valid, if it holds in all models.

The Importance of Being Formal 02—Traditional Logic I

slide-31
SLIDE 31

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

1

Review: Agenda and Hallmarks

2

Traditional Logic

3

Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

The Importance of Being Formal 02—Traditional Logic I

slide-32
SLIDE 32

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Complement

We allow ourselves to put non in front of a term. Meaning of complement In a model M, the meaning of non t is the complement of the meaning of t More formally In a model M, (non t)M = UM/tM

The Importance of Being Formal 02—Traditional Logic I

slide-33
SLIDE 33

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Double Complement

Axiom (NonNon) For any term t, the term non non t is considered equal to t. · · · t · · · · · · non non t · · · [NNI] · · · non non t · · · · · · t · · · [NNE]

The Importance of Being Formal 02—Traditional Logic I

slide-34
SLIDE 34

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Rule Schema

· · · t · · · · · · non non t · · · [NNI] is a rule schema. An instance is: Some t1 are t2 Some non non t1 are t2

The Importance of Being Formal 02—Traditional Logic I

slide-35
SLIDE 35

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Definitions

We allow ourselves to state definitions that may be convenient. Definitions are similar to axioms; they fix the properties of a particular item for the purpose of a discussion. Definition (ImmDef) The term immortal is considered equal to the term non mortal.

The Importance of Being Formal 02—Traditional Logic I

slide-36
SLIDE 36

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Writing a Proof Graphically

Lemma The proposition All humans are non immortal holds. Proof. All humans are mortal [HM] All humans are non non mortal [NNI] All humans are non immortal [ImmDef]

The Importance of Being Formal 02—Traditional Logic I

slide-37
SLIDE 37

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Writing a Text-based Proof

Lemma The proposition All humans are non immortal holds. Proof. 1 All humans are mortal HM 2 All humans are non non mortal NNI 1 3 All humans are non immortal ImmDef 2

The Importance of Being Formal 02—Traditional Logic I

slide-38
SLIDE 38

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Conversion switches subject and object

Definition (ConvDef) For all terms t1 and t2, we define convert(All t1 are t2) = All t2 are t1 convert(Some t1 are t2) = Some t2 are t1 convert(No t1 are t2) = No t2 are t1 convert(Some t1 are not t2) = Some t2 are not t1

The Importance of Being Formal 02—Traditional Logic I

slide-39
SLIDE 39

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Which Conversions Hold?

If All Greeks are humans holds in a model, then does All humans are Greeks hold?

The Importance of Being Formal 02—Traditional Logic I

slide-40
SLIDE 40

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Valid Conversions

Axiom (ConvE1) If, for some terms t1 and t2, the proposition convert(Some t1 are t2) holds, then the proposition Some t1 are t2 also holds.

The Importance of Being Formal 02—Traditional Logic I

slide-41
SLIDE 41

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Valid Conversions

Axiom (ConvE2) If, for some terms t1 and t2, the proposition convert(No t1 are t2) holds, then the proposition No t1 are t2 also holds.

The Importance of Being Formal 02—Traditional Logic I

slide-42
SLIDE 42

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

In Graphical Notation

In graphical notation, two rules correspond to the two cases. convert(Some t1 are t2) Some t1 are t2 [ConvE1] convert(No t1 are t2) No t1 are t2 [ConvE2]

The Importance of Being Formal 02—Traditional Logic I

slide-43
SLIDE 43

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Example

Axiom (AC) The proposition Some animals are cats holds. Lemma The proposition Some cats are animals holds.

The Importance of Being Formal 02—Traditional Logic I

slide-44
SLIDE 44

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Proof

Some animals are cats [AC] convert(Some cats are animals) [ConvDef] Some cats are animals [ConvE1]

The Importance of Being Formal 02—Traditional Logic I

slide-45
SLIDE 45

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Example (text-based proof)

Proof. 1 Some animals are cats AC 2 convert(Some cats are animals) ConvDef 1 3 Some cats are animals ConvE1 2

The Importance of Being Formal 02—Traditional Logic I

slide-46
SLIDE 46

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Contraposition switches and complements

Definition (ContrDef) For all terms t1 and t2, we define contrapose(All t1 are t2) = All non t2 are non t1 contrapose(Some t1 are t2) = Some non t2 are non t1 contrapose(No t1 are t2) = No non t2 are non t1 contrapose(Some t1 are not t2) = Some non t2 are not non t1

The Importance of Being Formal 02—Traditional Logic I

slide-47
SLIDE 47

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

For which propositions is contraposition valid?

contrapose(All t1 are t2) All t1 are t2 [ContrE1] contrapose(Some t1 are not t2) Some t1 are not t2 [ContrE2]

The Importance of Being Formal 02—Traditional Logic I

slide-48
SLIDE 48

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Obversion switches quality and complements object

Definition (ObvDef) For all terms t1 and t2, we define

  • bvert(All t1 are t2)

= No t1 are non t2

  • bvert(Some t1 are t2)

= Some t1 are not non t2

  • bvert(No t1 are t2)

= All t1 are non t2

  • bvert(Some t1 are not t2)

= Some t1 are non t2

The Importance of Being Formal 02—Traditional Logic I

slide-49
SLIDE 49

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Examples

Obversion switches quality and complements object Example 1

  • bvert(All Greeks are humans)

= No Greeks are non humans Example 2

  • bvert(Some animals are cats)

= Some animals are not non cats

The Importance of Being Formal 02—Traditional Logic I

slide-50
SLIDE 50

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Validity of Obversion

Obversion is valid for all kinds of propositions. Axiom (ObvE) If, for some proposition p

  • bvert(p)

holds, then the proposition p also holds.

  • bvert(p)

p [ObvE]

The Importance of Being Formal 02—Traditional Logic I

slide-51
SLIDE 51

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Example

Axiom (SHV) The proposition Some humans are vegans holds. Lemma (NNVeg) The proposition Some humans are not non vegans holds.

The Importance of Being Formal 02—Traditional Logic I

slide-52
SLIDE 52

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Proof

Some humans are vegans [SHV] Some humans are non non vegans [NNI]

  • bvert(Some humans are not non vegans)

[ObvDef] Some humans are not non vegans [Ob

The Importance of Being Formal 02—Traditional Logic I

slide-53
SLIDE 53

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Proof (text-based)

Proof. 1 Some humans are vegans SHV 2 Some humans are non non vegans NNI 1 3

  • bvert(Some humans are not

non vegans) ObvDef 2 4 Some humans are not non vegans ObvE 3

The Importance of Being Formal 02—Traditional Logic I

slide-54
SLIDE 54

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Another Lemma

Lemma (SomeNon) For all terms t1 and t2, if the proposition Some non t1 are non t2 holds, then the proposition Some non t2 are not t1 also holds. A lemma of the form “If p1 then p2” is valid, if in every model in which the proposition p1 holds, the proposition p2 also holds.

The Importance of Being Formal 02—Traditional Logic I

slide-55
SLIDE 55

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

Proof

Lemma (SomeNon) For all terms t1 and t2, if the proposition Some non t1 are non t2 holds, then the proposition Some non t2 are not t1 also holds. Proof. 1 Some non t1 are non t2 premise 2 convert(Some non t2 are non t1) ConvDef 1 3 Some non t2 are non t1 ConvE1 2 4

  • bvert(Some non t2 are not t1)

ObvDef 3 5 Some non t2 are not t1 ObvE 4

The Importance of Being Formal 02—Traditional Logic I

slide-56
SLIDE 56

Review: Agenda and Hallmarks Traditional Logic Manipulating Terms and Propositions Complement Conversion Contraposition Obversion Combinations

“iff” means “if and only if”

Lemma (AllNonNon) For any terms t1 and t2, the proposition All non t1 are non t2 holds iff the proposition All t2 are t1 holds. All non t1 are non t2 All t2 are t1 All t2 are t1 All non t1 are non t2

The Importance of Being Formal 02—Traditional Logic I