revision on propositional logic propositions logical
play

Revision on propositional logic: Propositions. Logical Connectives. - PowerPoint PPT Presentation

Revision on propositional logic: Propositions. Logical Connectives. Truth values and truth tables. Propositional formulae. Tautologies. Logical equivalence. Logical consequence. Logical correctness of propositional arguments. Valentin Goranko


  1. Revision on propositional logic: Propositions. Logical Connectives. Truth values and truth tables. Propositional formulae. Tautologies. Logical equivalence. Logical consequence. Logical correctness of propositional arguments. Valentin Goranko DTU Informatics August 2010 V Goranko

  2. Propositions and propositional logical connectives Proposition: statement which can be assigned a (unique) truth value : true or false. Propositional logical connectives: • negation: not , denoted by ¬ ; • conjunction: and , denoted by ∧ (or, sometimes by &); • disjunction: or , denoted by ∨ ; • implication: if . . . then . . . , denoted by → ; • biconditional: . . . if and only if . . . , denoted by ↔ . Examples of composite propositions: • “It is not the case that two plus two equals five.” • “Two plus two equals five and/or the sun is hot.” • “If two plus two equals five then the sun is hot.” • “Two plus two equals five if and only if the sun is hot.” “ Mary is not clever or, if Mary likes logic then Mary is clever and Mary is not lazy. ” V Goranko

  3. The propositional connectives as truth value functions Each propositional connective acts on the truth values of the component propositions in a precise way: • ¬ A is true if and only if A is false. • A ∧ B is true if and only if both A and B are true. • A ∨ B is true if and only if either of A or B (possibly both) is true. • A → B is true if and only if A is false or B is true, i.e. if the truth of A implies the truth of B . • A ↔ B is true if and only if A and B have the same truth-values. V Goranko

  4. Truth tables These rules can be summarized in the following truth tables, where T stands for ‘true’ and stands for ’false’: ¬ p p T F F T p q p ∧ q p ∨ q p → q p ↔ q T T T T T T T F F T F F F T F T T F F F F F T T V Goranko

  5. Computing the truth value of a proposition Suppose that “ Mary is clever. ”: T ; “ Mary is lazy. ”: F ; “ Mary likes logic. ”: T To compute the truth value of the composite proposition: “ Mary is not clever or, if Mary likes logic then Mary is clever and Mary is not lazy. ” we first write it in a symbolic form, by introducing symbolic names for the atomic propositions occurring in it: A: “ Mary is clever. ” B: “ Mary is lazy. ” C: “ Mary likes logic. ” V Goranko

  6. Then, the proposition can be written symbolically as: ( ¬ A ) ∨ ( C → ( A ∧ ¬ B )) . Now, we compute its truth value step by step, applying the truth-tables of the respective logical connectives: ( ¬ T ) ∨ ( T → ( T ∧ ¬ F )) = F ∨ ( T → ( T ∧ T )) = F ∨ ( T → T ) = F ∨ T = T . V Goranko

  7. Propositional formulae Propositional constants: ⊤ which represents a true proposition, and ⊥ which represents a false proposition. Propositional variables: variables that range over propositions. Usually denoted by p , q , r , possibly with indices. Inductive definition of propositional formulae: 1. Every propositional constant and every propositional variable is a propositional formula. 2. If A is a propositional formula then ¬ A is a propositional formula. 3. If A , B are propositional formulae then ( A ∨ B ), ( A ∧ B ) , ( A → B ), ( A ↔ B ) are propositional formulae. Examples: ⊤ , ¬⊤ , p , ¬ p , ¬¬ p , ( p ∨ ¬ q ) , ( p 1 ∧ ¬ ( p 2 → ¬ p 1 )) Outermost pairs of parentheses will often be omitted. V Goranko

  8. Construction trees, subformulae, main connectives Construction tree: a tree with nodes labelled with propositional constants, variables, and propositional connectives, such that: 1. Every leaf is labelled by a propositional constant or variable. 2. Propositional constants and variables label only leaves. 3. Every node labelled with ¬ has exactly one successor node. 4. Every node labelled with any of ∧ , ∨ , → , ↔ has exactly two successor nodes - left and right successor. Every construction tree defines a formula C , built starting from the leaves and going towards the root, by applying at every node the formula construction rule corresponding to the label at that node. The formulae constructed in the process are the subformulae of C . The propositional connective labelling the root of the construction tree of a formula C is the main connective of C . V Goranko

  9. Truth tables of propositional formulae Example: ( p ∨ ¬ ( q ∧ ¬ r )) → ¬¬ r ¬ ( q ∧ ¬ r ) p ∨ ¬ ( q ∧ ¬ r ) ( p ∨ ¬ ( q ∧ ¬ r )) → ¬¬ r ¬ r ¬¬ r q ∧ ¬ r p q r T T T F T F T T T T T F T F T F T F T F T F T F T T T T F F T F F T T F F T T F T F T T T F T F T F T F F T F F T F F F V Goranko

  10. Simplified truth tables p q r ( p ∨ ¬ ( q ∧ ¬ r )) → ¬ ¬ r T T T T T T T F F T T T F T T T F T T F T T T F F F T F T F T T T T F F F T T T F T T F F T T T F F T F F F T F F T T F T T T F F T T T F T F T F F F F T T T F T F T F F F T F F F V Goranko

  11. Tautologies Tautology (or, propositionally valid formula): a formula that obtains truth value T for every assignment of truth values to the occurring variables. Notation: | = A . Examples: | = p ∨ ¬ p , | = ¬ ( p ∧ ¬ p ), | = (( p ∧ ( p → q )) → q ) Testing tautologies with truth-tables: p q p → q p ∧ ( p → q ) ( p ∧ ( p → q )) → q T T T T T T F F F T F T T F T F F T F T V Goranko

  12. Contradictions, satisfiable formulae Contradiction is a formula that always takes truth value F . Examples: p ∧ ¬ p , ¬ (( p ∧ q ) → p ) Thus, the negation of a tautology is a contradiction and the negation of a contradiction is a tautology. A formula is satisfiable if it is not a contradiction. Example: p , p ∧ ¬ q , etc. V Goranko

  13. Logical equivalence of propositional formulae Propositional formulae A and B are logically equivalent, denoted A ≡ B , if they obtain the same truth value under any truth valuation (of the variables occurring in them). Examples: ¬ ( p ∧ q ) ≡ ¬ p ∨ ¬ q ¬ ( p ∧ q ) ¬ ∨ ¬ p q p q T T F T T T F T F F T T F T T F F F T T T F F T T F F T T F T F T F F T F F F T F T T F p ∧ ( p ∨ q ) ≡ p ∧ p ≡ p p q p ∧ ( p ∨ q ) p ∧ p T T T T T T T T T T T F T T T T F T T T F T F F F T T F F F F F F F F F F F F F V Goranko

  14. Some basic properties of logical equivalence ◮ A ≡ B iff | = A ↔ B . ◮ ≡ is an equivalence relation. ◮ Moreover, ≡ is a congruence with respect to the propositional connectives, i.e.: ⊲ if A ≡ B then ¬ A ≡ ¬ B , and ⊲ if A 1 ≡ B 1 and A 2 ≡ B 2 then ( A 1 • A 2 ) ≡ ( B 1 • B 2 ), where • ∈ {∧ , ∨ , → , ↔} . Theorem for equivalent replacement: Let A , B , C be any propositional formulae p be a propositional variable. If A ≡ B then C ( A / p ) ≡ C ( B / p ). V Goranko

  15. Some important logical equivalences • Idempotency: p ∧ p ≡ p ; p ∨ p ≡ p . • Commutativity: p ∧ q ≡ q ∧ p ; p ∨ q ≡ q ∨ p . • Associativity: ( p ∧ ( q ∧ r )) ≡ (( p ∧ q ) ∧ r ); ( p ∨ ( q ∨ r )) ≡ (( p ∨ q ) ∨ r ) . Note that this property allows us to omit the parentheses in multiple conjunctions and disjunctions. • Absorption: p ∧ ( p ∨ q ) ≡ p ; p ∨ ( p ∧ q ) ≡ p . • Distributivity: p ∧ ( q ∨ r ) ≡ ( p ∧ q ) ∨ ( p ∧ r ); p ∨ ( q ∧ r ) ≡ ( p ∨ q ) ∧ ( p ∨ r ) . V Goranko

  16. Other useful logical equivalences • A ∨ ¬ A ≡ ⊤ ; A ∧ ¬ A ≡ ⊥ ; • A ∧ ⊤ ≡ A ; A ∧ ⊥ ≡ ⊥ ; • A ∨ ⊤ ≡ ⊤ ; A ∨ ⊥ ≡ A . • A → B ≡ ¬ A ∨ B . • A ↔ B ≡ ( A → B ) ∧ ( B → A ). • A → B ≡ ¬ B → ¬ A . V Goranko

  17. Propositional logical consequence A propositional formula C is a logical consequence from the propositional formulae A 1 , . . . , A n , denoted A 1 , . . . , A n | = C , if C is true whenever all A 1 , . . . , A n are true, i.e., every assignment of truth-values to the variables occurring in A 1 , . . . , A n , C which renders the formulae A 1 , . . . , A n true, renders the formula C true, too. If A 1 , . . . , A n | = C , we also say that C follows logically from A 1 , . . . , A n , and that A 1 , . . . , A n logically imply C . Logical consequence is reducible to validity: A 1 , . . . , A n | = C iff A 1 ∧ . . . ∧ A n | = C iff | = ( A 1 ∧ . . . ∧ A n ) → C . V Goranko

  18. Testing propositional consequence with truth tables ◮ p , p → q | = q p q p p → q q T T T T T T F T F F F T F T T F F F T F ◮ p → r , q → r | = ( p ∨ q ) → r p q r p → r q → r p ∨ q ( p ∨ q ) → r T T T T T T T T T F F F T F T F T T T T T T F F F T T F F T T T T T T F T F T F T F F F T T T F T F F F T T F T V Goranko

  19. Valid rules of propositional inference A rule of propositional inference (for short, inference rule) is a scheme: P 1 , . . . , P n , C where P 1 , . . . , P n , C are propositional formulae. The formulae P 1 , . . . , P n are called premises of the inference rule, and C is its conclusion. An inference rule is valid if its conclusion logically follows from the premises. A propositional inference is an instance of a rule, where propositions are uniformly replaced by the propositional variables. A propositional inference is logically correct (or, valid) if it is an instance of a valid inference rule. V Goranko

Recommend


More recommend