Propositional Logic– Arguments (5A) - Wikimedia · PDF filePropositional Logic (5A)...

31
Propositional Logic– Arguments (5A) Young W. Lim 10/11/16

Transcript of Propositional Logic– Arguments (5A) - Wikimedia · PDF filePropositional Logic (5A)...

  • Propositional Logic Arguments (5A)

    Young W. Lim10/11/16

  • Copyright (c) 2016 Young W. Lim.

    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

    Please send corrections (or suggestions) to [email protected].

    This document was produced by using LibreOffice

    mailto:[email protected]

  • Propositional Logic (5A)Arguments 3 Young Won Lim10/11/16

    Based on

    Contemporary Artificial Intelligence, R.E. Neapolitan & X. Jiang

    Logic and Its Applications,Burkey & Foxley

  • Propositional Logic (5A)Arguments 4 Young Won Lim10/11/16

    Arguments

    An argument consists of a set of propositions :The premises propositionsThe conclusion proposition

    List of premises followed by the conclusion

    A1

    A2

    A

    n

    -------- B

  • Propositional Logic (5A)Arguments 5 Young Won Lim10/11/16

    Entail

    The premises is said to entail the conclusion If in every model in which all the premises are true,

    the conclusion is also true

    List of premises followed by the conclusion

    A1

    A2

    A

    n

    -------- B

    wheneverall the premises are true

    the conclusion must be truefor the entailment

  • Propositional Logic (5A)Arguments 6 Young Won Lim10/11/16

    A Model

    A mode or possible world:

    Every atomic proposition is assigned a value T or F

    The set of all these assignments constitutes A model or a possible world

    All possible worlds (assignments) are permissiable

  • Propositional Logic (5A)Arguments 7 Young Won Lim10/11/16

    Entailment Notation

    Suppose we have an argumentwhose premises are A

    1, A

    2, , A

    n

    whose conclusion is B

    Then

    A1, A

    2, , A

    n B if and only if

    A1 A

    2 A

    n B (logical implication)

    logical implication: if A1 A

    2 A

    n B is tautology

    The premises is said to entail the conclusion If in every model in which

    all the premises are true, the conclusion is also true

    (always true)

  • Propositional Logic (5A)Arguments 8 Young Won Lim10/11/16

    Entailment and Logical Implication

    A

    1, A

    2, , A

    n B

    A1 A

    2 A

    n B

    A1 A

    2 A

    n B is a tautology

    (logical implication)

    If all the premises are true, then the conclusion must be true

    T T T TT T T FF X X X

  • Propositional Logic (5A)Arguments 9 Young Won Lim10/11/16

    Sound Argument and Fallacy

    A sound argument

    A1, A

    2, , A

    n B

    A fallacy

    A1, A

    2, , A

    n B

    If the premises entails the conclusion

    If the premises does not entail the conclusion

  • Propositional Logic (5A)Arguments 10 Young Won Lim10/11/16

    Entailment Examples

    A, (A B) B

    A, (A B) B

    A (A B) B

    A, B A

    A, B A

    A B A

  • Propositional Logic (5A)Arguments 11 Young Won Lim10/11/16

    Entailment Examples and Truth Tables

    A B AB AB AT T T TT F F TF T F TF F F T

    AB A

    A B AB A(AB) A(AB)BT T T T TT F F F TF T T F TF F T F T

    A(AB) B

    The premises is said to entail the conclusion If in every model in which

    all the premises are true, the conclusion is also true

    any of the premises are false, still premises conclusion is true (FT and FF always T)

    Tautology

  • Propositional Logic (5A)Arguments 12 Young Won Lim10/11/16

    Deduction System

    Propositional logic

    Given propositions (statements) : T or FDeductive inference of T or F of other propositions

    Deductive Inference A process by which the truth of the conclusion is shown to necessarily follow from the truth of the premises

  • Propositional Logic (5A)Arguments 13 Young Won Lim10/11/16

    Deduction System

    Deduction System : a set of inference rules

    Inference rules are used to reason deductively

    Sound Deduction System : if it derives only sound arguments

    Each of the inference rules is sound

    Complete Deduction System : It can drive every sound argument

    Must contain deduction theorem rule

  • Propositional Logic (5A)Arguments 14 Young Won Lim10/11/16

    Inference Rules

    Combination Rule A, B A B Simplification Rule A B AAddition Rule A A BModus Pones A, A B B Modus Tolens B, A B A Hypothetical Syllogism A B, B C A CDisjunctive Syllogism A B, A BRule of Cases A B, A B BEquivalence Elimination A B A B Equivalence Introduction A B, B A A BInconsistency Rule A, A B AND Commutivity Rule A B B AOR Commutivity Rule A B B ADeduction Theorem If A

    1, A

    2, , A

    n,B C then A

    1, A

    2, , A

    n, BC

  • Propositional Logic (5A)Arguments 15 Young Won Lim10/11/16

    Deduction Theorem

    A1, A

    2, , A

    n, B C

    A1, A

    2, , A

    n, BC

    A1A

    2A

    nB C

    A1A

    2A

    n BC

    A,B C A BC

    B C BC

    The premises is said to entail the conclusion If in every model in which

    all the premises are true, the conclusion is also true

    A1, A

    2, , A

    n B if and only if

    A1 A

    2 A

    n B

    (A1 A

    2 A

    n B is a tautology)

    If A is T, then BC is always T (for the tautology)Even if A,B is T, then BC is always TAnd if A,B is T, then B is TBy modus ponens in the RHS, A,B is T, then C is true

  • Propositional Logic (5A)Arguments 16 Young Won Lim10/11/16

    Deduction Theorem

    ,A B iff ABwhere : a set of formulas,

    if the formula B is deducible from a set of assumptions, together with the assumption A, then the formula AB is deducible from alone.

    Conversely, if we can deduce AB from , and if in addition we assume A, then B can be deduced.

    http://planetmath.org/deductiontheorem

    ,A B

    AB

    AB

    ,A B

  • Propositional Logic (5A)Arguments 17 Young Won Lim10/11/16

    Deduction Theorem

    The deduction theorem conforms with our intuitive understanding of how mathematical proofs work:

    if we want to prove the statement A implies B, then by assuming A, if we can prove B, we have established A implies B.

    http://planetmath.org/deductiontheorem

  • Propositional Logic (5A)Arguments 18 Young Won Lim10/11/16

    Deduction Theorem

    The converse statement of the deduction theorem turns out to be a trivial consequence of modus ponens:

    if AB, then certainly ,A ABSince ,A A, we get, via modus ponens, ,A B as a result.

    ,A AB,A A,A B

    http://planetmath.org/deductiontheorem

    A, A B B

  • Propositional Logic (5A)Arguments 19 Young Won Lim10/11/16

    Deduction Theorem

    Deduction theorem is needed to derive arguments that has no premises

    An argument without premises is simply a tautology

    A Ano premises appear before the symbolan argument without premisesTautology if it is sound

  • Propositional Logic (5A)Arguments 20 Young Won Lim10/11/16

    Argument Example

    1. Q2. P Q3. P R S4. R T5. U 6. U T7. P Q, P Q P8. R S P R S, P R S9. T U, U T T10. R T, R T R11. S R S, R S

  • Propositional Logic (5A)Arguments 21 Young Won Lim10/11/16

    Argument without premises

    A assume AA A X X YA A A A A A A A A

    discharge AA assume AA A X X YA A X Y Y XA A A A A A A A A

    discharge AA A X Y, X Y Y

    A A A , A A A A A A A

  • Propositional Logic (5A)Arguments 22 Young Won Lim10/11/16

    Argument without premises

    A A assume AA A A A AA A A A A A

    discharge AA A assume AA A A A AA A A A AA A A A A A

    discharge AA A A A

  • Propositional Logic (5A)Arguments 23 Young Won Lim10/11/16

    To prove a sound argument

    Prove using truth tablesWhether an argument is sound or fallacy

    1. time complexity (2^n)2. not the way which humans do

    Prove using inference rules To reason deductively

  • Propositional Logic (5A)Arguments 24 Young Won Lim10/11/16

    Double Turnstile

    1. semantic consequence:a set of sentences on the lefta single sentence on the rightto denote that if every sentence on the left is true, the sentence on the right must be true, e.g. . This usage is closely related to the single-barred turnstile symbol which denotes syntactic consequence.

    2. satisfaction: a model (or truth-structure) on the left a set of sentences on the rightto denote that the structure is a model for (or satisfies) the set of sentences, e.g. A .

    3. a tautology: to say that the expression is a semantic consequence of the empty set.

    https://en.wikipedia.org/wiki/Double_turnstile

  • Propositional Logic (5A)Arguments 25 Young Won Lim10/11/16

    Syntactic Consequences

    A formula A is a syntactic consequence within some formal system FS of a set of formulas if there is a formal proof in FS of A from the set .

    FS A Syntactic consequence does not depend on any interpretation of the formal system.

    A formal proof or derivation is a finite sequence of sentences (called wwf),

    each of which is an axiom, an assumption, or follows from the preceding sentences in th