Propositional formula 1. Propositional Logic Propositional formulas ! ! Propositional formulas are assertions – they express how things are. They can be true or false, depending on the situation. Propositional formulas: •x<10 •x<10 → x2<100 •(x=10 ∧ y=12) ! (z=4 ∨ z=5) •It is raining or snowing. The lecture Jouko Väänänen: Propositional logic 1 Propositional formula ! ! ! Last viewed 2 Propositional operations For a precise treatment, natural language is replaced by a formal language. Propositional formulas are built up from proposition symbols p0, p1,… by means of propositional operations that we learn about in this lecture. (We use also p,q,r,… for proposition symbols.) Proposition symbols are the atomic propositional formulas; they cannot be broken into parts. Jouko Väänänen: Propositional logic Not propositional formulas •x+10 •sin(x) •I promise that he comes. •Stop that! Last viewed •The propositional operations are: ¬ ”not” •Conjunction ∧ ”and” •Disjunction ∨ ”or” •Implication → ”if ... then...” •Equivalence ”if and only if” •Parentheses (,) are used for clarity. Jouko Väänänen: Propositional logic 3 Propositional formulas •Negation Last viewed 4 Convention about parantheses The propositional formulas are of the form pn ! ¬A (A∧B) ! (A∨B) ! (A→B) (A B) Parentheses are left out unless necessary for unambiguous reading. A∧B∧C means either ((A∧B)∧C) or (A∧(B∧C)) Similarly A∨B∨C where A and B are again propositional formulas. Jouko Väänänen: Propositional logic Last viewed 5 Jouko Väänänen: Propositional logic Last viewed 6 Examples Proposition symbols explained " p0∨p1 " (p1∨p2)→p3 ! " ¬(p1∨p2) ! " p0∧(p1∨p2) " ¬(p3 → (p2→p1)) " (p0∧p2∧p5)∨(¬p1∧¬p3∧¬p4)∨ (¬p1∧¬p4∧p5)∨(p0∧¬p3∧p4) " (p0∨¬p∨p2)∧(p1∨¬p5∨¬p6)∧ (¬p1∨¬p4∨p5)∧(p0∨p3∨p4) Jouko Väänänen: Propositional logic Last viewed ! ! ! ! Last viewed ! ! ! ! ! ! ! ! ! Last viewed 10 Implication explained A∨B: A or B or both. I am in Rome or I have lost my way. 4<x or y<3. The train is at a station or the train is moving. A and B are called disjuncts. ! ! ! ! ! ! Jouko Väänänen: Propositional logic 8 A∧B: Both A and B. It rains and it blows. 4<10 and 7<3. The door is closed and the train is moving. A and B are called conjuncts. Jouko Väänänen: Propositional logic 9 Disjunction explained ! Last viewed Conjunction explained Negation: ¬A is the denial of A ¬It rains: It is not the case that it rains; it does not rain. ¬4>10: 4 is not greater than 10. ¬The door is closed: The door is not closed. Jouko Väänänen: Propositional logic Denote basic states of affairs which can be true or false " It is raining " The lamp is lit " 4<10 " x<10 " The door is closed " The train is moving " The switch is on " I am in Rome Jouko Väänänen: Propositional logic 7 Negation explained Denoted p0, p1,… Last viewed 11 A→B: If A then B. If it rains then the streets are wet. If x<3 then x<10. If the train is moving then the door is closed. A= the antecedent of A→B B= the consequent of A→B Jouko Väänänen: Propositional logic Last viewed 12 An example of implication Equivalence explained ! p0 ”The train is moving” ! ! p1 ”The door is closed” ! ! ! p0→p1 ”If the train is moving, then the door is closed” Note that p0→p1 makes no claim about situations in which the train is not moving. Jouko Väänänen: Propositional logic Last viewed ! ! Jouko Väänänen: Propositional logic 13 Avoiding ambiguity ! ! ! ! Note that p0→p1→p2 would be ambiguous. This can be prevented by proper use of parentheses, e.g. p0→(p1→p2) or ! Other ambiguous formulas are A∧B∨C, A∨¬B∧C, A→B∧C, A∨B→C. Unambiguous are for example (A∧B)∨C, (¬A∨B)∧C, A! ¬(B∧C), ¬A∨(B→C). We consider also A∧B∧C and A∨B∨C unambiguous. Jouko Väänänen: Propositional logic Last viewed 14 Main connective (p0→p1)→p2. ! A䊽B: A if and only if B. The lamp is lit if and only if the switch is on. x<10 if and only if x+5<15. The door is locked if and only if the train is moving. Last viewed The main connective is a useful technical notion related to formulas. The main connective of ¬A is negation ¬ A∧B is conjunction ∧ A∨B is disjunction ∨ A→B is implication → A B is equivalence Example: the main connective of (A∨¬B)!(C∨D) is implication. ! Jouko Väänänen: Propositional logic 15 Main connective Last viewed 16 Subformula Another useful technical notion related to formulas is that of a subformula. ! The Logical analysis of a formula usually starts by identifying the main connective. subformulas of ¬A are ¬A and the subformulas of A A∧B are A∧B and the subformulas of A and B A∨B are A∨B and the subformulas of A and B A→B are A→B and the subformulas of A and B A䊽B are A B and the subformulas of A and B Example: The subformulas of (p0∨¬p1)→(p2∧p1) are: (p0∨¬p1)→(p2∧p1), p0∨¬p1, p2∧p1, p0, ¬p1, p2, p1. Jouko Väänänen: Propositional logic Last viewed 17 Jouko Väänänen: Propositional logic Last viewed 18 Immediate subformula ! ! ! The importance of subformulas Special among subformulas are immediate subformulas. The only immediate subformula of ¬A is A The immediate subformulas of A∧B are A, B A∨B are A, B A→B are A, B A B are A, B ! ! All fundamental methods in logic are based on analyzing formulas in terms of their immediate subformulas. We learn several of them: " " " Example: The immediate subformulas of (p0∨¬p1)→ Evaluating truth Natural deduction Semantic tree (p2∧p1) are: (p0∨¬p1) and (p2∧p1). Jouko Väänänen: Propositional logic Last viewed 19 Jouko Väänänen: Propositional logic Last viewed 20
© Copyright 2026 Paperzz