Proposi'onal Logic Proofs Proof Method #1: Truth Table Example

Total Page:16

File Type:pdf, Size:1020Kb

Proposi'onal Logic Proofs Proof Method #1: Truth Table Example 9/9/14 Proposi'onal Logic Proofs • An argument is a sequence of proposi'ons: Inference Rules ² Premises (Axioms) are the first n proposi'ons (Rosen, Section 1.5) ² Conclusion is the final proposi'on. p p ... p q TOPICS • An argument is valid if is a ( 1 ∧ 2 ∧ ∧ n ) → tautology, given that pi are the premises • Logic Proofs (axioms) and q is the conclusion. ² via Truth Tables € ² via Inference Rules 2 Proof Method #1: Truth Table Example Proof By Truth Table s = ((p v q) ∧ (¬p v r)) → (q v r) n If the conclusion is true in the truth table whenever the premises are true, it is p q r ¬p p v q ¬p v r q v r (p v q)∧ (¬p v r) s proved 0 0 0 1 0 1 0 0 1 n Warning: when the premises are false, the 0 0 1 1 0 1 1 0 1 conclusion my be true or false 0 1 0 1 1 1 1 1 1 n Problem: given n propositions, the truth 0 1 1 1 1 1 1 1 1 n table has 2 rows 1 0 0 0 1 0 0 0 1 n Proof by truth table quickly becomes 1 0 1 0 1 1 1 1 1 infeasible 1 1 0 0 1 0 1 0 1 1 1 1 0 1 1 1 1 1 3 4 1 9/9/14 Proof Method #2: Rules of Inference Inference proper'es n A rule of inference is a pre-proved relaon: n Inference rules are truth preserving any 'me the leJ hand side (LHS) is true, the n If the LHS is true, so is the RHS right hand side (RHS) is also true. n Applied to true statements n Axioms or statements proved from axioms n Therefore, if we can match a premise to the n Inference is syntac'c LHS (By suBs'tu'ng proposi'ons), we can n SuBs'tute proposi'ons assert the (suBs'tuted) RHS n if p replaces q once, it replaces q everywhere n If p replaces q, it only replaces q n Apply rule 5 6 Example Rule of Inference Rules of Inference Modus Ponens p p → q (p∧(p → q)) → q ∴ q p q p → q p∧(p → q) (p∧(p → q)) → q € 0 0 1 0 1 0 1 1 € 0 1 € € € 1 0€ 0 € 0 1 1 1 1 1 1 7 8 2 9/9/14 Logical Equivalences Modus Ponens n If p, and p implies q, then q Example: p = it is sunny, q = it is hot p → q, it is hot whenever it is sunny “Given the above, if it is sunny, it must be hot”. 9 10 Modus Tollens Hypothe'cal Syllogism n If not q and p implies q, then not p n If p implies q, and q implies r, then Example: p implies r p = it is sunny, q = it is hot Example: p → q, it is hot whenever it is sunny p = it is sunny, q = it is hot, r = it is dry “Given the above, if it is not hot, it p → q, it is hot when it is sunny cannot be sunny.” q → r, it is dry when it is hot “Given the above, it must be dry when it is sunny” 11 12 3 9/9/14 Disjuncve Syllogism Resolu'on n If p or q, and not p, then q n If p or q, and not p or r, then q or r Example: Example: p = it is sunny, q = it is hot p = it is sunny, q = it is hot, r = it is dry p ∨ q, it is hot or sunny p ∨ q, it is sunny or hot “Given the above, if it not sunny, but it ¬p ∨ r, it is not hot or dry is hot or sunny, then it is hot” “Given the above, if it is sunny or hot, but not sunny or dry, it must be hot or dry” Not obvious! 13 14 Addi'on Simplificaon n If p then p or q n If p and q, then p Example: Example: p = it is sunny, q = it is hot p = it is sunny, q = it is hot p ∨ q, it is hot or sunny p ∧ q, it is hot and sunny “Given the above, if it is sunny, it must “Given the above, if it is hot and sunny, be hot or sunny” it must be hot” Of course! Of course! 15 16 4 9/9/14 A Simple Proof Conjuncon Given X, X→Y, Y →Z, ¬Z ∨ W, prove W n If p and q, then p and q Example: Step Reason p = it is sunny, q = it is hot 1. x → y Premise 2. y → z Premise p ∧ q, it is hot and sunny 3. x → z Hypothetical Syllogism (1, 2) “Given the above, if it is sunny and it is 4. x Premise hot, it must be hot and sunny” 5. z Modus Ponens (3, 4) Of course! 6. ¬z∨w Premise 7. w Disjunctive Syllogism (5, 6) 17 18 A Simple Proof Setup the proof “In order to sign up for CS161, I must complete STEP 2) Extract axioms and conclusion. CS160 and either M155 or M160. I have not completed M155 But I have completed CS161. n Axioms: Prove that I have completed M160.” n A → B ∧ (C ∨ D) STEP 1) Assign proposi'ons to each statement. n A n A : CS161 n ¬C n B : CS160 n Conclusion: n C : M155 n D n D : M160 19 20 5 9/9/14 Now do the Proof Another Example STEP 3) Use inference rules to prove conclusion. Step Reason Given: Conclude: 1. A → B ∧ (C ∨ D) Premise p → q ¬q → s 2. A Premise ¬p → r 3. B ∧ (C ∨ D) Modus Ponens (1, 2) r → s 4. C ∨ D Simplification 5. ¬C Premise 6. D Disjunctive Syllogism (4, 5) 21 22 Proof using Rules of Inference and Proof of Another Example Logical Equivalences Step Reason Prove: ¬(p∨(¬p∧q)) ≡ (¬p∧¬q) 1. p → q Premise ¬(p∨(¬p∧q)) ≡ ¬p ∧ ¬(¬p∧q) n By 2nd DeMorgan’s 2. ¬q → ¬p Implication law (1) ≡ ¬p ∧(¬(¬p)∨¬q) n By 1st DeMorgan’s ≡ ¬p∧(p∨¬q) n By double negation 3. p r Premise ¬ → ≡ (¬p∧p) ∨ (¬p∧¬q) n By 2nd distributive 4. ¬q → r Hypothetical syllogism (2, 3) ≡ F ∨ (¬p∧¬q) n By definition of ∧ ≡ (¬p∧¬q) ∨ F n By commutative law 5. Premise r → s ≡ (¬p∧¬q) n By definition of ∨ 6. ¬q → s Hypothetical syllogism (4, 5) 23 24 6 9/9/14 Example of a Fallacy Example of a fallacy q n If q, and p implies q, then p (q∧(p → q)) → p p → q Example: ∴ p p = it is sunny, q = it is hot p q p → q q∧(p → q) (q∧(p → q)) → p p → q, if it is sunny, then it is hot 0 0 1 0 1 “Given the above, just because it is 0 1 1 1 0 hot, does NOT necessarily mean it is € € € 1 0 0 0 1 sunny. 1 1 1 1 1 This is not a tautology, therefore the argument is not valid 25 26 7 .
Recommended publications
  • Classifying Material Implications Over Minimal Logic
    Classifying Material Implications over Minimal Logic Hannes Diener and Maarten McKubre-Jordens March 28, 2018 Abstract The so-called paradoxes of material implication have motivated the development of many non- classical logics over the years [2–5, 11]. In this note, we investigate some of these paradoxes and classify them, over minimal logic. We provide proofs of equivalence and semantic models separating the paradoxes where appropriate. A number of equivalent groups arise, all of which collapse with unrestricted use of double negation elimination. Interestingly, the principle ex falso quodlibet, and several weaker principles, turn out to be distinguishable, giving perhaps supporting motivation for adopting minimal logic as the ambient logic for reasoning in the possible presence of inconsistency. Keywords: reverse mathematics; minimal logic; ex falso quodlibet; implication; paraconsistent logic; Peirce’s principle. 1 Introduction The project of constructive reverse mathematics [6] has given rise to a wide literature where various the- orems of mathematics and principles of logic have been classified over intuitionistic logic. What is less well-known is that the subtle difference that arises when the principle of explosion, ex falso quodlibet, is dropped from intuitionistic logic (thus giving (Johansson’s) minimal logic) enables the distinction of many more principles. The focus of the present paper are a range of principles known collectively (but not exhaustively) as the paradoxes of material implication; paradoxes because they illustrate that the usual interpretation of formal statements of the form “. → . .” as informal statements of the form “if. then. ” produces counter-intuitive results. Some of these principles were hinted at in [9]. Here we present a carefully worked-out chart, classifying a number of such principles over minimal logic.
    [Show full text]
  • Chrysippus's Dog As a Case Study in Non-Linguistic Cognition
    Chrysippus’s Dog as a Case Study in Non-Linguistic Cognition Michael Rescorla Abstract: I critique an ancient argument for the possibility of non-linguistic deductive inference. The argument, attributed to Chrysippus, describes a dog whose behavior supposedly reflects disjunctive syllogistic reasoning. Drawing on contemporary robotics, I urge that we can equally well explain the dog’s behavior by citing probabilistic reasoning over cognitive maps. I then critique various experimentally-based arguments from scientific psychology that echo Chrysippus’s anecdotal presentation. §1. Language and thought Do non-linguistic creatures think? Debate over this question tends to calcify into two extreme doctrines. The first, espoused by Descartes, regards language as necessary for cognition. Modern proponents include Brandom (1994, pp. 145-157), Davidson (1984, pp. 155-170), McDowell (1996), and Sellars (1963, pp. 177-189). Cartesians may grant that ascribing cognitive activity to non-linguistic creatures is instrumentally useful, but they regard such ascriptions as strictly speaking false. The second extreme doctrine, espoused by Gassendi, Hume, and Locke, maintains that linguistic and non-linguistic cognition are fundamentally the same. Modern proponents include Fodor (2003), Peacocke (1997), Stalnaker (1984), and many others. Proponents may grant that non- linguistic creatures entertain a narrower range of thoughts than us, but they deny any principled difference in kind.1 2 An intermediate position holds that non-linguistic creatures display cognitive activity of a fundamentally different kind than human thought. Hobbes and Leibniz favored this intermediate position. Modern advocates include Bermudez (2003), Carruthers (2002, 2004), Dummett (1993, pp. 147-149), Malcolm (1972), and Putnam (1992, pp. 28-30).
    [Show full text]
  • On Basic Probability Logic Inequalities †
    mathematics Article On Basic Probability Logic Inequalities † Marija Boriˇci´cJoksimovi´c Faculty of Organizational Sciences, University of Belgrade, Jove Ili´ca154, 11000 Belgrade, Serbia; [email protected] † The conclusions given in this paper were partially presented at the European Summer Meetings of the Association for Symbolic Logic, Logic Colloquium 2012, held in Manchester on 12–18 July 2012. Abstract: We give some simple examples of applying some of the well-known elementary probability theory inequalities and properties in the field of logical argumentation. A probabilistic version of the hypothetical syllogism inference rule is as follows: if propositions A, B, C, A ! B, and B ! C have probabilities a, b, c, r, and s, respectively, then for probability p of A ! C, we have f (a, b, c, r, s) ≤ p ≤ g(a, b, c, r, s), for some functions f and g of given parameters. In this paper, after a short overview of known rules related to conjunction and disjunction, we proposed some probabilized forms of the hypothetical syllogism inference rule, with the best possible bounds for the probability of conclusion, covering simultaneously the probabilistic versions of both modus ponens and modus tollens rules, as already considered by Suppes, Hailperin, and Wagner. Keywords: inequality; probability logic; inference rule MSC: 03B48; 03B05; 60E15; 26D20; 60A05 1. Introduction The main part of probabilization of logical inference rules is defining the correspond- Citation: Boriˇci´cJoksimovi´c,M. On ing best possible bounds for probabilities of propositions. Some of them, connected with Basic Probability Logic Inequalities. conjunction and disjunction, can be obtained immediately from the well-known Boole’s Mathematics 2021, 9, 1409.
    [Show full text]
  • 7.1 Rules of Implication I
    Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic. The method consists of using sets of Rules of Inference (valid argument forms) to derive either a conclusion or a series of intermediate conclusions that link the premises of an argument with the stated conclusion. The First Four Rules of Inference: ◦ Modus Ponens (MP): p q p q ◦ Modus Tollens (MT): p q ~q ~p ◦ Pure Hypothetical Syllogism (HS): p q q r p r ◦ Disjunctive Syllogism (DS): p v q ~p q Common strategies for constructing a proof involving the first four rules: ◦ Always begin by attempting to find the conclusion in the premises. If the conclusion is not present in its entirely in the premises, look at the main operator of the conclusion. This will provide a clue as to how the conclusion should be derived. ◦ If the conclusion contains a letter that appears in the consequent of a conditional statement in the premises, consider obtaining that letter via modus ponens. ◦ If the conclusion contains a negated letter and that letter appears in the antecedent of a conditional statement in the premises, consider obtaining the negated letter via modus tollens. ◦ If the conclusion is a conditional statement, consider obtaining it via pure hypothetical syllogism. ◦ If the conclusion contains a letter that appears in a disjunctive statement in the premises, consider obtaining that letter via disjunctive syllogism. Four Additional Rules of Inference: ◦ Constructive Dilemma (CD): (p q) • (r s) p v r q v s ◦ Simplification (Simp): p • q p ◦ Conjunction (Conj): p q p • q ◦ Addition (Add): p p v q Common Misapplications Common strategies involving the additional rules of inference: ◦ If the conclusion contains a letter that appears in a conjunctive statement in the premises, consider obtaining that letter via simplification.
    [Show full text]
  • Propositional Logic (PDF)
    Mathematics for Computer Science Proving Validity 6.042J/18.062J Instead of truth tables, The Logic of can try to prove valid formulas symbolically using Propositions axioms and deduction rules Albert R Meyer February 14, 2014 propositional logic.1 Albert R Meyer February 14, 2014 propositional logic.2 Proving Validity Algebra for Equivalence The text describes a for example, bunch of algebraic rules to the distributive law prove that propositional P AND (Q OR R) ≡ formulas are equivalent (P AND Q) OR (P AND R) Albert R Meyer February 14, 2014 propositional logic.3 Albert R Meyer February 14, 2014 propositional logic.4 1 Algebra for Equivalence Algebra for Equivalence for example, The set of rules for ≡ in DeMorgan’s law the text are complete: ≡ NOT(P AND Q) ≡ if two formulas are , these rules can prove it. NOT(P) OR NOT(Q) Albert R Meyer February 14, 2014 propositional logic.5 Albert R Meyer February 14, 2014 propositional logic.6 A Proof System A Proof System Another approach is to Lukasiewicz’ proof system is a start with some valid particularly elegant example of this idea. formulas (axioms) and deduce more valid formulas using proof rules Albert R Meyer February 14, 2014 propositional logic.7 Albert R Meyer February 14, 2014 propositional logic.8 2 A Proof System Lukasiewicz’ Proof System Lukasiewicz’ proof system is a Axioms: particularly elegant example of 1) (¬P → P) → P this idea. It covers formulas 2) P → (¬P → Q) whose only logical operators are 3) (P → Q) → ((Q → R) → (P → R)) IMPLIES (→) and NOT. The only rule: modus ponens Albert R Meyer February 14, 2014 propositional logic.9 Albert R Meyer February 14, 2014 propositional logic.10 Lukasiewicz’ Proof System Lukasiewicz’ Proof System Prove formulas by starting with Prove formulas by starting with axioms and repeatedly applying axioms and repeatedly applying the inference rule.
    [Show full text]
  • Sets, Propositional Logic, Predicates, and Quantifiers
    COMP 182 Algorithmic Thinking Sets, Propositional Logic, Luay Nakhleh Computer Science Predicates, and Quantifiers Rice University !1 Reading Material ❖ Chapter 1, Sections 1, 4, 5 ❖ Chapter 2, Sections 1, 2 !2 ❖ Mathematics is about statements that are either true or false. ❖ Such statements are called propositions. ❖ We use logic to describe them, and proof techniques to prove whether they are true or false. !3 Propositions ❖ 5>7 ❖ The square root of 2 is irrational. ❖ A graph is bipartite if and only if it doesn’t have a cycle of odd length. ❖ For n>1, the sum of the numbers 1,2,3,…,n is n2. !4 Propositions? ❖ E=mc2 ❖ The sun rises from the East every day. ❖ All species on Earth evolved from a common ancestor. ❖ God does not exist. ❖ Everyone eventually dies. !5 ❖ And some of you might already be wondering: “If I wanted to study mathematics, I would have majored in Math. I came here to study computer science.” !6 ❖ Computer Science is mathematics, but we almost exclusively focus on aspects of mathematics that relate to computation (that can be implemented in software and/or hardware). !7 ❖Logic is the language of computer science and, mathematics is the computer scientist’s most essential toolbox. !8 Examples of “CS-relevant” Math ❖ Algorithm A correctly solves problem P. ❖ Algorithm A has a worst-case running time of O(n3). ❖ Problem P has no solution. ❖ Using comparison between two elements as the basic operation, we cannot sort a list of n elements in less than O(n log n) time. ❖ Problem A is NP-Complete.
    [Show full text]
  • Chapter 9: Answers and Comments Step 1 Exercises 1. Simplification. 2. Absorption. 3. See Textbook. 4. Modus Tollens. 5. Modus P
    Chapter 9: Answers and Comments Step 1 Exercises 1. Simplification. 2. Absorption. 3. See textbook. 4. Modus Tollens. 5. Modus Ponens. 6. Simplification. 7. X -- A very common student mistake; can't use Simplification unless the major con- nective of the premise is a conjunction. 8. Disjunctive Syllogism. 9. X -- Fallacy of Denying the Antecedent. 10. X 11. Constructive Dilemma. 12. See textbook. 13. Hypothetical Syllogism. 14. Hypothetical Syllogism. 15. Conjunction. 16. See textbook. 17. Addition. 18. Modus Ponens. 19. X -- Fallacy of Affirming the Consequent. 20. Disjunctive Syllogism. 21. X -- not HS, the (D v G) does not match (D v C). This is deliberate to make sure you don't just focus on generalities, and make sure the entire form fits. 22. Constructive Dilemma. 23. See textbook. 24. Simplification. 25. Modus Ponens. 26. Modus Tollens. 27. See textbook. 28. Disjunctive Syllogism. 29. Modus Ponens. 30. Disjunctive Syllogism. Step 2 Exercises #1 1 Z A 2. (Z v B) C / Z C 3. Z (1)Simp. 4. Z v B (3) Add. 5. C (2)(4)MP 6. Z C (3)(5) Conj. For line 4 it is easy to get locked into line 2 and strategy 1. But they do not work. #2 1. K (B v I) 2. K 3. ~B 4. I (~T N) 5. N T / ~N 6. B v I (1)(2) MP 7. I (6)(3) DS 8. ~T N (4)(7) MP 9. ~T (8) Simp. 10. ~N (5)(9) MT #3 See textbook. #4 1. H I 2. I J 3.
    [Show full text]
  • Argument Forms and Fallacies
    6.6 Common Argument Forms and Fallacies 1. Common Valid Argument Forms: In the previous section (6.4), we learned how to determine whether or not an argument is valid using truth tables. There are certain forms of valid and invalid argument that are extremely common. If we memorize some of these common argument forms, it will save us time because we will be able to immediately recognize whether or not certain arguments are valid or invalid without having to draw out a truth table. Let’s begin: 1. Disjunctive Syllogism: The following argument is valid: “The coin is either in my right hand or my left hand. It’s not in my right hand. So, it must be in my left hand.” Let “R”=”The coin is in my right hand” and let “L”=”The coin is in my left hand”. The argument in symbolic form is this: R ˅ L ~R __________________________________________________ L Any argument with the form just stated is valid. This form of argument is called a disjunctive syllogism. Basically, the argument gives you two options and says that, since one option is FALSE, the other option must be TRUE. 2. Pure Hypothetical Syllogism: The following argument is valid: “If you hit the ball in on this turn, you’ll get a hole in one; and if you get a hole in one you’ll win the game. So, if you hit the ball in on this turn, you’ll win the game.” Let “B”=”You hit the ball in on this turn”, “H”=”You get a hole in one”, and “W”=”you win the game”.
    [Show full text]
  • From Fuzzy Sets to Crisp Truth Tables1 Charles C. Ragin
    From Fuzzy Sets to Crisp Truth Tables1 Charles C. Ragin Department of Sociology University of Arizona Tucson, AZ 85721 USA [email protected] Version: April 2005 1. Overview One limitation of the truth table approach is that it is designed for causal conditions are simple presence/absence dichotomies (i.e., Boolean or "crisp" sets). Many of the causal conditions that interest social scientists, however, vary by level or degree. For example, while it is clear that some countries are democracies and some are not, there are many in-between cases. These countries are not fully in the set of democracies, nor are they fully excluded from this set. Fortunately, there is a well-developed mathematical system for addressing partial membership in sets, fuzzy-set theory. Section 2 of this paper provides a brief introduction to the fuzzy-set approach, building on Ragin (2000). Fuzzy sets are especially powerful because they allow researchers to calibrate partial membership in sets using values in the interval between 0 (nonmembership) and 1 (full membership) without abandoning core set theoretic principles, for example, the subset relation. Ragin (2000) demonstrates that the subset relation is central to the analysis of multiple conjunctural causation, where several different combinations of conditions are sufficient for the same outcome. While fuzzy sets solve the problem of trying to force-fit cases into one of two categories (membership versus nonmembership in a set), they are not well suited for conventional truth table analysis. With fuzzy sets, there is no simple way to sort cases according to the combinations of causal conditions they display because each case's array of membership scores may be unique.
    [Show full text]
  • 12 Propositional Logic
    CHAPTER 12 ✦ ✦ ✦ ✦ Propositional Logic In this chapter, we introduce propositional logic, an algebra whose original purpose, dating back to Aristotle, was to model reasoning. In more recent times, this algebra, like many algebras, has proved useful as a design tool. For example, Chapter 13 shows how propositional logic can be used in computer circuit design. A third use of logic is as a data model for programming languages and systems, such as the language Prolog. Many systems for reasoning by computer, including theorem provers, program verifiers, and applications in the field of artificial intelligence, have been implemented in logic-based programming languages. These languages generally use “predicate logic,” a more powerful form of logic that extends the capabilities of propositional logic. We shall meet predicate logic in Chapter 14. ✦ ✦ ✦ ✦ 12.1 What This Chapter Is About Section 12.2 gives an intuitive explanation of what propositional logic is, and why it is useful. The next section, 12,3, introduces an algebra for logical expressions with Boolean-valued operands and with logical operators such as AND, OR, and NOT that Boolean algebra operate on Boolean (true/false) values. This algebra is often called Boolean algebra after George Boole, the logician who first framed logic as an algebra. We then learn the following ideas. ✦ Truth tables are a useful way to represent the meaning of an expression in logic (Section 12.4). ✦ We can convert a truth table to a logical expression for the same logical function (Section 12.5). ✦ The Karnaugh map is a useful tabular technique for simplifying logical expres- sions (Section 12.6).
    [Show full text]
  • Lecture 1: Propositional Logic
    Lecture 1: Propositional Logic Syntax Semantics Truth tables Implications and Equivalences Valid and Invalid arguments Normal forms Davis-Putnam Algorithm 1 Atomic propositions and logical connectives An atomic proposition is a statement or assertion that must be true or false. Examples of atomic propositions are: “5 is a prime” and “program terminates”. Propositional formulas are constructed from atomic propositions by using logical connectives. Connectives false true not and or conditional (implies) biconditional (equivalent) A typical propositional formula is The truth value of a propositional formula can be calculated from the truth values of the atomic propositions it contains. 2 Well-formed propositional formulas The well-formed formulas of propositional logic are obtained by using the construction rules below: An atomic proposition is a well-formed formula. If is a well-formed formula, then so is . If and are well-formed formulas, then so are , , , and . If is a well-formed formula, then so is . Alternatively, can use Backus-Naur Form (BNF) : formula ::= Atomic Proposition formula formula formula formula formula formula formula formula formula formula 3 Truth functions The truth of a propositional formula is a function of the truth values of the atomic propositions it contains. A truth assignment is a mapping that associates a truth value with each of the atomic propositions . Let be a truth assignment for . If we identify with false and with true, we can easily determine the truth value of under . The other logical connectives can be handled in a similar manner. Truth functions are sometimes called Boolean functions. 4 Truth tables for basic logical connectives A truth table shows whether a propositional formula is true or false for each possible truth assignment.
    [Show full text]
  • Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.3) TOPICS
    Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.3) TOPICS • Propositional Logic • Logical Operations • Equivalences • Predicate Logic Logic? What is logic? Logic is a truth-preserving system of inference Truth-preserving: System: a set of If the initial mechanistic statements are transformations, based true, the inferred on syntax alone statements will be true Inference: the process of deriving (inferring) new statements from old statements Proposi0onal Logic n A proposion is a statement that is either true or false n Examples: n This class is CS122 (true) n Today is Sunday (false) n It is currently raining in Singapore (???) n Every proposi0on is true or false, but its truth value (true or false) may be unknown Proposi0onal Logic (II) n A proposi0onal statement is one of: n A simple proposi0on n denoted by a capital leJer, e.g. ‘A’. n A negaon of a proposi0onal statement n e.g. ¬A : “not A” n Two proposi0onal statements joined by a connecve n e.g. A ∧ B : “A and B” n e.g. A ∨ B : “A or B” n If a connec0ve joins complex statements, parenthesis are added n e.g. A ∧ (B∨C) Truth Tables n The truth value of a compound proposi0onal statement is determined by its truth table n Truth tables define the truth value of a connec0ve for every possible truth value of its terms Logical negaon n Negaon of proposi0on A is ¬A n A: It is snowing. n ¬A: It is not snowing n A: Newton knew Einstein. n ¬A: Newton did not know Einstein.
    [Show full text]