INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PROPOSITIONAL LOGIC

Size: px
Start display at page:

Download "INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PROPOSITIONAL LOGIC"

Transcription

1 1 CHAPTER 4. PROPOSITIONAL LOGIC 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PROPOSITIONAL LOGIC 1 Propositional Logic 1.1 Introduction George Boole, mathematician, logician and one of the fathers of the modern computer was born in the City of Lincoln in the East of England in From his father he inherited a love of science, and a young George was drawn into the worlds of physics, applied mathematics, and finally mathematics. George Boole was intensely religious and at one stage even contemplated becoming a clergyman of the Church of England. All of his life he viewed the human mind as God s most significant creation, and he set himself the task of understanding how the mind worked and in particular how it processed information. His ultimate ambition was to express the workings of the mind by means of mathematical symbols this was of course the beginning of a study which led eventually to our present day world of digital technology, electronics, and high-speed computers. Classical logic, which in the 19 th century was not regarded as a branch of mathematics, was the key to Boole s Figure 1: George Boole ( ) attempt to understand how the human mind processes information. Before Boole s time, algebraic symbols such as x always stood for unknown numbers, but Boole widened this interpretation to allow x stand for any well-defined class of objects. For example, x could represent the class of all sheep, and y could represent the class of all white objects. They xy represents the class of all white sheep. In particular, x 2 = xx represents the class of all sheep which are sheep, which is clearly just the class of all sheep! Thus in all cases this statement simplifies to x 2 = x, a simple equation which became the cornerstone of Boole s new system, nowadays called Boolean Algebra.

2 2 CHAPTER 4. PROPOSITIONAL LOGIC 2 He built up the rules to express elementary logical statements in symbolic form, which was a colossal leap forward in both logic and mathematics. In 1847 Boole published his first book, The Mathematical Analysis of Logic. As a result of this publication and on the recommendation of many of the leading British mathematicians of the day, Boole was appointed first Professor of Mathematics at the newly founded Queen s College Cork (now University College Cork) in Ireland in This was a daring move on behalf of the electors considering that he had neither a secondary education nor a university degree, but it turned out very successfully. Boole devoted the year 1849 to 1854n busily to his first taste of third level teaching but also to developing and expanding his work on logic. In 1854 he published An Investigation of the Laws of Thought which made extensive improvements on his earlier work on logic. The practical importance of this book and its deeper significance lay untapped until 1938 when the American engineer Claude Shannon at Massachusetts Institute of Technology (MIT) realised that Boole s algebra was precisely what was needed to describe electronic switching circuits and eventually high-speed computers. Thus the modern binary approach to mathematics, logic, electronics and computer science stems almost entirely from Boole s work in the 1850 s. Boole lived most of his life as a bachelor, but in 1855, at the age of nearly forty, he married a lady just half his age. She was Mary Everest, who came from a distinguished English family. Her uncle, Sir George Everest, was the Surveyor-General of India and the man after whom the world s highest mountain is named. George and Mary Boole appear to have had a blissfully happy marriage and they had five daughters - Mary Ellen (1856), Margaret (1858), Alicia (1860), Lucy (1862), and Ethel (1864). Alicia went on to become an eminent self-taught mathematician, Lucy become the first woman professor of chemistry in England, and Ethel (Voynich) wrote one of the world s bestselling novels, The Gadfly (1897). Many descendants of George Boole made important contributions to physics, medicine, sport and art. Boole s health was never robust and overwork and college controversy weakened him further. He died in 1864 at the tragically early age of 49 as a result of pneumonia caused by walking to a lecture in a December downpour and lecturing all day in wet clothes. He is buried in Blackrock in Cork and is commemorated by the magnificent Boole Library at University College Cork. George Boole s most enduring contribution to human knowledge was the realisation that mathematics is not confined to the traditional areas of arithmetic, Figure 2: George Boole s Grave, Blackrock, Cork. algebra, geometry and calculus, but that mathematics applies to everything - every class of objects, every thought that passes through mind or machine. Everywhere there is order, structure, data or information, there is mathematics. His discoveries opened the floodgates and made mathematics central to everything that involves organised thought but Boole did not live to see the fruits of his work. In 1862 he had met with Charles Babbage and inspected his analytical engine, the hardware of which was the forerunner of modern computer hardware. Between

3 3 CHAPTER 4. PROPOSITIONAL LOGIC 3 them Babbage and Boole had the basis of modern computer technology. If he had lived, and he and Babbage had worked together, the digital revolution might have come a long time before it did and history would have been very different. As it was, Boole s notion that mathematics consists essentially of the manipulation of symbols has had profound effects on the development of mathematics and its applications. Since those symbols do not necessarily have to have a meaning attached to them, they can be processed by minds and machines, which need only to be able to recognise them and process and manipulate them according to specified and prescriptive rules. This is one of the most profound insights ever achieved by a human being and is the essence of the genius of George Boole. We complete this introduction by stating that, in general, logic is about reasoning. It is about the validity of arguments, consistency among statements (propositions) and matters of truth and falsehood. Logic is only concerned with the form of arguments and the principles of valid deductions. The following are two examples of arguments: John is over 90 years old. So John is over 20. John is over 20 years old. John is over 90 years old. The first arguments are valid - the second is invalid. What do we mean when we say that a piece of reasoning is valid? We mean that the conclusion is true in every situation in which the premises are true. But the fact that the conclusion has been validly deduced says nothing about its actual truth. Whether it is true or not in a given case depends on the truth of the premises, and that is a matter for science and not for logic. What is of concern in logic is that true conclusions should be drawn from true premises by acceptable rules of reasoning. Or, to put it more strongly, that it is never the case that a false conclusion is drawn from true premises. An argument is valid if and only if there is NO logically possible situation where all the premises are true and the conclusion is false at the same time. Validity is not about the actual truth of falsehood of the premises or the conclusion of an argument. Validity is about the logical connection between the premises and the conclusion.

4 4 CHAPTER 4. PROPOSITIONAL LOGIC Propositions and Truth Tables To introduce logic we must recall the notion of a set. A set is a collection of entities. A x x A For this fundamental object we can say that x A or x / A, but not both. Definition A proposition, or statement, is a sentence which is either true of false, both not both. The truth value of the proposition will be denoted by true (T) or false (F). The following are all examples of propositions: i Mr. Jones is happy. ii Sam will go to the party. iii The capital of Ireland is Cork. iv For all n N, the integer F n defined by F n = 2 2n + 1 is prime. The truth value of these statements are not of concern to us only the fact that they can assume a true or false value. We can combine statements using various connectives, or connecting words, such as and and or, to form more complicated statements (compound statements). There are 5 connectives in logic and each one equates with its corresponding connective in sets. Let A, B, C,... denote propositions. Say we are concerned with the truth value of a particular compound statement. This will depend on the truth vale of each proposition and the connectives used. A tool to examine a compound statement for every arrangement of true and false is called a truth table. We begin with defining the basic 3 connectives of logic, using the corresponding connective in sets to help our understanding.

5 5 CHAPTER 4. PROPOSITIONAL LOGIC Conjunction, Disjunction and Negation The conjunction of A and B is denoted by A B. Both A and B must be true in order for A B to be true. A B A B T T T T F F F T F F F F The disjunction of A and B is denoted by A B. If either A is true or B is true or both A and B are true, then A B is true. A B A B T T T T F T F T T F F F The negation of A is denoted by A. The truth values of A are exactly opposite those of A.

6 6 CHAPTER 4. PROPOSITIONAL LOGIC 6 A A T F F T Remark Allowing the notion of a set correspond to a proposition the three basic connectives above correspond to the set connectives A B, A B and A. Say, for example, we consider the definition of the intersection of two sets: A B = {x : x A, x B} If truth value T corresponds to x A and truth value F corresponds to x / A, in order for an element x to belong to the intersection A B we must have x A and x B. All other arrangements do not allow x to be in A B. This corresponds to the first row and subsequent rows of the truth table for the conjunction A B. Example A truth table for the compound statement (A B) (A B) is constructed as follows: A B A B A B (A B) (A B) (A B) T T T T F F T F T F T T F T T F T T F F F F T F The truth values of the statement is dependent on the truth values of the individual propositions as well as the connectives used.

7 7 CHAPTER 4. PROPOSITIONAL LOGIC 7 Example A truth table for the compound statement (A B) ( A B) is constructed as follows: A B A B A A B (A B) ( A B) T T T F F T T F F F F F F T F T T T F F F T F F Example A truth table for the compound statement ( A B) (A B) is constructed as follows: A B A B A B A B (A B) ( A B) (A B) T T F F F T F F T F F T T F T T F T T F T F T T F F T T T F T T Exercise Establish the following equivalence using a truth table. (A B) (A B) = A Exercise Establish the following equivalence using a truth table. [ ] (A B) ( A B) = ( A B) ( B A)

8 8 CHAPTER 4. PROPOSITIONAL LOGIC Implication and Equivalence An implication is a proposition of the form if A then B or A implies B denoted by A B. The first proposition (or compound statement) A is called the hypothesis and the second proposition (or compound statement) B is the conclusion. A B A B T T T T F F F T T F F T Example We can easily illustrate the truth table for equivalence as follows: Let A = John lives in Borris. B = John lives in Co. Carlow. The implication A B is: If John lives in Borris, then John lives in Co. Carlow. It is reasonable to regard this statement as true in three of the four possible cases, and false in the other one. If John lives in Borris then John lives in Co. Carlow (row 1). If John does not live in Borris he may or may not live in Co. Carlow (row 3 and 4). However it is impossible for John to live in Borris and not live in Co. Carlow (row 2). Note Implication is not commutative i.e., A B B A For x R, let A be the statement x = 3 and let B be the statement x 2 = 9. The implication If x = 3, then x 2 = 9 is true. However the converse If x 2 = 9, then x = 3 is false, since the real number x = 3 also satisfies x 2 = 9. An equivalence is a proposition of the form A is equivalent to B or A if and only if B denoted by A B.

9 9 CHAPTER 4. PROPOSITIONAL LOGIC 9 A B A B T T T T F F F T F F F T If A and B have the same truth value, A B is true, otherwise false. Remark The precedence rules of logic are as follows: expressions in brackets first perform negations perform conjunctions disjunctions (from left to right) perform implication equivalence (form left to right). Also if a compound statement has n propositions, its truth table has 2 n rows. Example A truth table for the compound statement (A B) ( A B) is constructed as follows: A B A B A A B (A B) ( A B) T T T F F F T F T F F F F T T T T T F F F T F T

10 10 CHAPTER 4. PROPOSITIONAL LOGIC 10 Example A truth table for the compound statement (A B) ( A B) is constructed as follows: A B A B (A B) A B A B (A B) ( A B) T T T F F F F T T F F T F T T T F T F T T F T T F F F T T T T T Exercise Construct a truth table for the following (A B) ( A B) Exercise Construct a truth table for the following ( A B) (A B)

11 11 CHAPTER 4. PROPOSITIONAL LOGIC Laws of Logic Definition A tautology is a compound statement that is always true. Definition A contradiction is a compound statement that is always false. We denote a tautology by 1 and a contradiction by 0. Let A, B and C be propositions (or compound statements). We can easily verify the following laws of logic using truth tables: A B = B A, A B = B A, (A B) C = A (B C), (A B) C = A (B C), A (B C) = (A B) (A C), A (B C) = (A B) (A C), (A B) = A B, (A B) = A B A = A Also, we have the following A A = 1, A A = A, A A = 0, A A = A, A 0 = A, A 1 = 1, A 1 = A, A 0 = 0. We can use the laws of logic to establish an equivalence between statements. Example Using the laws of logic we can establish an equivalence as follows: (A B) ( A B) = (B A) (B A) = B (A A) = B 1 = B

12 12 CHAPTER 4. PROPOSITIONAL LOGIC 12 Example Again, using the laws of logic we can establish: [ ] [ ] A ( A B) (A B) = (A A) (A B) (A B) [ ] = 1 (A B) (A B) [ ] = A B (A B) [ ] = A B (A B) [ ] = A ( B A) ( B B) [ ] = A ( B A) 1 = A ( B A) = (A A) B = A B Exercise Establish the following equivalence using the laws of logic. Confirm your work using a truth table. (A B) (A B) = A Exercise Establish the following equivalence using the laws of logic. Confirm your work using a truth table. [ ] (A B) ( A B) = ( A B) ( B A] Remark We can state other laws of logic relating to the connectives implication and equivalence. A B = A B, (A B) = A B, A B = (A B) (B A), (A B) = (A B) (B A).

13 13 CHAPTER 4. PROPOSITIONAL LOGIC 13 Example Again, using the laws of logic we can establish: A (B A) = A (B A) = A ( B A) = ( A A) B = 1 B = 1. Example Finally, using the laws of logic we can establish: ( B A) (A B) = ( B A) (A B) = ( B A) ( A B) = (B A) ( A B) = ( B A) ( A B) = ( B A) ( A B) = ( A B B) ( A B A) = ( A 1) (B 1) = 1 1 = 1. Exercise Establish the following equivalences using the laws of logic. Confirm your work using a truth table. i A (A B) 0 ii B (B B) 1 iii (A B) ( A B) 1 iv (A B) ( A B) B [ ] v (A B) B A 1

14 14 CHAPTER 4. PROPOSITIONAL LOGIC Arguments Definition An argument is an assertion that a given set of propositions A 1, A 2,..., A n called premises, has as a consequence another proposition C, called the conclusion. We say A 1, A 2,..., A n C where the symbol reads yields. A = {A 1, A 2,..., A n } A(T orf ) T T A(F ) F T A(T ) F T What do we mean when we say that a piece of reasoning is valid? We mean that the conclusion is true in every situation in which the premises are true. But the fact that the conclusion has been validly deduced says nothing about its actual truth. Whether it is true or not in a given case depends on the truth of the premises, and that is a matter for science, not for logic. What is concern in logic is that true conclusions should be deduced from true premises by acceptable rules of reasoning. (Or it can never be the case that a false conclusion is deduced from true premises). For the argument A 1, A 2,..., A n C if we ensure that [A 1 A 2... A n ] C is a tautology we are ensuring that the argument is valid. Remark To consider this explanation in more detail consider the following arguments: Argument 1: John is over 90 years old. So John is over 20. Argument 2: John is over 20 years old. So John is over 90 years old.

15 15 CHAPTER 4. PROPOSITIONAL LOGIC 15 Intuitively, the conclusion of the first argument follows from the premise whereas the conclusion of the second argument does not follow from its premise. To explain the difference between the two arguments precisely in the first argument, if the premise is indeed true, then the conclusion cannot be false. On the other hand, even if the premise in the second argument is true, there is no guarantee that the conclusion must also be true. For example, John could be 30 years old. An argument is valid if and only if there is NO logically possible situation where all the premises are true and the conclusion is false at the same time. A(T ) F T The idea of validity provides a more precise explanation of what it is for a conclusion to follow from the premises. Applying this definition, we can see that the first argument above is valid, since there is no possible situation where John can be over 90 but not over 20. The second argument is not valid because there are plenty of possible situations where the premise is true but the conclusion is false. Consider a situation where John is 25, or one where he is 85. The fact that these situations are possible is enough to show that the argument is not valid or invalid. Now consider the following argument: Argument 3:All pigs can fly. Anything that can fly can swim. So all pigs can swim. Although the two premises of this argument are false, this is actually a valid argument. To evaluate its validity, ask yourself whether it is possible to come up with a situation where all the premises are true and the conclusion is false. (We are not asking whether there is a situation where the premises and the conclusion are all true). Of course, the answer is no. If pigs can indeed fly, and if anything that can fly can also swim, then it must be the case that all pigs can swim. The premises and the conclusion of a valid argument can all be false. A(F ) F T Hopefully you will now realize that validity is not about the actual truth of falsehood of the premises or the conclusion. Validity is about the logical connection between the premises and the conclusion. A valid argument is one where the truth of the premises guarantees the truth of the conclusion, but validity does not guarantee that the premises are in fact true. All that validity tells us is that if the premises are true, the conclusion must also be true. Finally, consider the following argument:

16 16 CHAPTER 4. PROPOSITIONAL LOGIC 16 Argument 4: All pigs are purple in color. Anything that is purple is an animal. So all pigs are animals. This is a valid argument there in NO logically possible situation where all the premises are true and the conclusion is false at the same time. It is possible for a valid argument to have a true conclusion even when all its premises are false. A(F ) T T So, again we say a valid argument is an argument whose conclusions follow from its premises, but it is an argument whose conclusions might not be true (as we have seen above) because its premises might not be true. A sound argument, on the other hand, is a valid argument whose premises are true. A sound argument therefore arrives at a true conclusion. Exercise Translate each of the following arguments to Propositional Logic The file is either a binary file or a text file. If it is a binary file, then my program won t accept it. My program will accept the file. Therefore, the file is a text file. If John likes logic, then he attended his classes or he studied the topic. If he did not study the topic, then he attended his classes. John did not attend his classes. Therefore, John does not like logic. Exercise Consider the following arguments. Formulate each argument within propositional logic and use a truth table to investigate their validity. If the violinist plays the concerto, then the crowds will come if the prices are not too high. If the violinist plays the concerto, the prices will not be too high. Therefore, if the violinist plays the concerto, crowds will come. If the President broke the law, then the people were not alert or the cabinet was competent. If the cabinet was not competent, then the people were alert. The cabinet was not competent. Therefore, the president did not break the law. If Fermat s Last Theorem is correct, then all elliptic curves are modular. If all elliptic curves are modular then the class number formula is correct. Therefore, if Fermat s Last Theorem is correct, then so is the class number formula.

17 17 CHAPTER 4. PROPOSITIONAL LOGIC Resolution in Propositional Logic We will use the resolution principle to investigate if a sequence of compound statements are inconsistent. That is, we can easily establish that a sequence of statements cannot be simultaneously true. In the context of an argument if we negate the conclusion of the argument and show, using resolution, that it is inconsistent with the premises of the argument, then the argument will be valid. This approach is very mechanical but is relying on an inconsistency (contradiction) being established. If an inconsistency cannot be established the argument is invalid. Remember to apply the resolution technique our compound statements must be in normal form Conjunctive Normal Form Definition A literal is just a proposition or the negation of a proposition. For example A is called a positive literal and B is called a negative literal. Definition A compound statement is in conjunctive normal form (C.N.F) if it is a conjunction of disjunction of literals; i.e., of the form A 1 A 2... A i... A n where A i is of the form λ 1 λ 2... λ j... λ m where each λ j is a literal. The following statement is in conjunctive normal form: (A B C) ( A B) Exercise Convert each of the following statements to conjunctive normal form: i A (B C) ii A (B C) [ ] iii A ( B C) D iv (A C) ( B C)

18 18 CHAPTER 4. PROPOSITIONAL LOGIC 18 Definition A clause is a finite disjunction of literals. Remark If a statement has been converted to C.N.F., we can suppress and. For example the statement (A B C) (D E) may now be represented as {A, B, C}, {D, E} The Resolution Principle Definition A resolvent of two clauses C 1 and C 2 containing the complementary pair of literals λ and λ respectively may be defined as res(c 1, C 2 ) = C 1 \{λ} C 2 \{ λ} For example {A, B, C} {C, D} {A, B, D} Now that we have all the definitions in place we formally state the resolution principle and apply to a simple argument. Theorem 1 (The Resolution Principle) A resolvent of two clauses C 1 and C 2 is a logical consequence of C 1 C 2. C 1 C 2 res(c 1, C 2 ) This theorem is simply saying that if the conjunction of two clauses are true then the resolvent of the two clauses must also be true.

19 19 CHAPTER 4. PROPOSITIONAL LOGIC 19 Example Consider the following argument: A B, B C A C Bringing all statements to C.N.F., remembering to negate the conclusion, we have A B = A B B C = B C Negating the conclusion (A C) = ( A C) = A C = A C Our clauses are { A, B}, { B, C}, {A}, { C} We can use the resolution principle to show that these statements cannot be simultaneously true i.e., they are inconsistent. We do so by constructing a resolution tree. { A, B} { B, C} {A} { C} { A, C} {C} We have applied the resolution principle to the above clauses. It has yielded a contradiction so we conclude the the statements are inconsistent. This further implies that the argument from which these statements have come is a valid argument.

20 20 CHAPTER 4. PROPOSITIONAL LOGIC 20 Remark This truth table will help confirm our findings. A B C A B B C A C *** T T T T T T F F T T F T F T T F T F T F T T F F T F F F T T T F F T T T T F F F F T F T F F T F F F T T T F F F F F F T T F T F The column of this truth table marked indicates the statement ( A B) ( B C) A C. It is clear that there is NO arrangement where this statement is true, i.e., the statement is inconsistent. To put this another way, the individual statements cannot be all true at he same time (they cannot be simultaneously true). Example Consider the following argument: A (A B), (A B) B A B Bringing all statements to C.N.F., remembering to negate the conclusion, we have A (A B) = A ( A B) = A B

21 21 CHAPTER 4. PROPOSITIONAL LOGIC 21 (A B) B = ( A B) B = ( A B) B = (A B) B = (A B) ( B B) = (A B) B Negating the conclusion (A B) = ( A B) = A B = A B Our clauses are { A, B}, {A, B}, { B}, {A}, {B} We can use the resolution principle to show that these statements cannot be simultaneously true i.e., they are inconsistent. We do so by constructing a resolution tree. { A, B} {A, B} {B} {B, B} We have applied the resolution principle to some of the above clauses. It has yielded a contradiction (without having to involve all clauses) so we conclude the the statements are inconsistent. This further implies that the argument from which these statements have come is a valid argument. This truth table will help confirm our findings.

22 22 CHAPTER 4. PROPOSITIONAL LOGIC 22 A B A B A B A B *** T T F F T T F T F F T F T F F T T F T F F F F T T T T F The column of this truth table marked indicates the statement ( A B) (A B) B A B. It is clear that there is NO arrangement where this statement is true, i.e., the statement is inconsistent. To put this another way, the individual statements cannot be all true at he same time (cannot be simultaneously true). Remark We pose the question - having negated the conclusion of the argument and shown, using the resolution principle, that it is inconsistent with the premises of the argument, why does this mean that the argument valid? For the argument A 1, A 2,..., A n C we have just shown that the statements A 1, A 2,..., A n, C are inconsistent. Let A = {A 1, A 2,..., A n }. If A 1, A 2,..., A n are true, then C must be false, hence A(T ) T T. If A 1, A 2,..., A n are false, then C may be true or false, hence A(F ) F T A(F ) T T For all arrangements our deduction is valid.

23 23 CHAPTER 4. PROPOSITIONAL LOGIC 23 Exercise Using the resolution principle investigate the validity of the following arguments A B, A B A (A B), A B A (B A), (B A) A A A A ( A B), ( A B) B A B 1.6 Formal Proofs in Propositional Logic We consider a more formal or syntactic treatment of proofs and deductions. Our objective is to prove logical forms from given logical forms using formal rules of deduction. The rules of deduction are like the rules of a game, such as chess. They permit certain logical moves. They must be adhered to in order to play the formal game of logic. The rules of deduction will ensure true conclusions will be deduced from true premises. Remark We will use the logical constant to replace the symbol 0. This constant has the false value. It is known by the latin name falsum. The rules of deduction are intended to represent in a formal way the intuitive or natural methods of reasoning used by humans. I ( introduction) A B A B E ( elimination) A B A E ( elimination) A B B

24 24 CHAPTER 4. PROPOSITIONAL LOGIC 24 I ( introduction) A A B I ( introduction) B A B E ( elimination) A B.. A B C C C If C is derived from A, and C is derived from B, then C may be derived from A B. The reason A and B are crossed out is that they are no longer needed - A B takes their place. If A and B are assumptions then they are said to be discharged. I ( introduction) A. C A C If C can be derived from the assumption A, then we can discharge the assumption and conclude that A C. For example, say we conclude that The cat drank the cream from the assumption The saucer is empty. Then it is reasonable to make the assertion If the saucer is empty, then the cat drank the cream. We do not hold on to the assumption The saucer is empty, since it is contained in the assertion. E ( elimination) A A C C If A holds, and A implies C, then C holds. This is the modus ponens rule of reasoning.

25 25 CHAPTER 4. PROPOSITIONAL LOGIC 25 C From a contradiction, any conclusion C can be drawn. RAA (Reductio Ad Absurdum) A. A This rule formalises the famous proof by contradiction method of arguing. If assuming that A is not the case leads to a contradiction, then we conclude that A is the case. Using the I rule and noting that A A we get a complementary form of this rule: A. A We will refer to this form of the rule as RAA also. Finally we have a final rule. Id (Identity) A A Any formula can be derived from itself. Remark The method of natural deduction was introduced by the German/Polish mathematician Gerhard Gentzen ( ) in a paper published in He intended to set up a formal system which comes as close as possible to actual reasoning.

26 26 CHAPTER 4. PROPOSITIONAL LOGIC 26 Let us consider how we use he above rules of deduction to establish the validity of an argument in a more efficient way. Recall the form of an argument A 1, A 2,..., A n C Note If the set of assumptions are empty we simply write C. Theorem 2 A B B A Proof The general strategy is to start with one or more assumptions and use the rules to make progress from there. 1. A B P remise 2. A by E 3. A B P remise 4. B by E 5. B A by I Notice that we can use an assumption as often as we like or need to. Theorem 3 A B B A Proof 1. A B Assumption 2. A by E 3. A B Assumption 4. B by E 5. B A by I 6. A B B A by I, discharging 1, 3.

27 27 CHAPTER 4. PROPOSITIONAL LOGIC 27 thing. Notice that discharging the assumption involves discharging all occurances of it as they are the same Theorem 4 A (B (A B)) Proof 1. A Assumption 2. B Assumption 3. A B by I 4. B (A B) by I, discharging A (B (A B)) by I, discharging 1. Remark If asked to deduce a formula of the form A B, then it is very often useful to make A an assumption, with the idea of discharging it later using I. Theorem 5 B A B Proof 1. A Assumption 2. B P remise 3. B by Id 4. A B by I, discharging 1. This theorem is important. It says that if a result, say B, has been established, then a further result is A B, where A is any logical form. Theorem 6 B (A B) Proof 1. A Assumption

28 28 CHAPTER 4. PROPOSITIONAL LOGIC B Assumption 3. B by Id 4. A B by I, discharging B (A B) by I, discharging 2. Looking at Theorem 4 and Theorem 5 we could pose the following question. Could it be that we can move an assumption across the symbol to get another valid result? We will consider this question later. Theorem 7 A B, B C A C Proof 1. A Assumption 2. B C P remise 3. C by E 4. A C by I, discharging 1. Note that we did not need to use A B, so effectively we have B C A C. Of course it is still the case that A B, B C A C. Theorem 8 (A (B C)) ((A B) (A C)) Proof 1. A Assumption 2. A B Assumption 3. B by E with 1, A (B C) Assumption 5. B C by E with 1, C by E with 3, A C by I, discharging 1.

29 29 CHAPTER 4. PROPOSITIONAL LOGIC (A B) (A C) by I, discharging (A (B C)) ((A B) (A C)) by I, discharging 4. Although this formal proof seems a little long - with more practice this will become less daunting - the alternative methods of establishing the validity of this argument are not as attractive. Exercise Prove the following ((A B) (B C)) (A C) Theorem 9 A, A Proof Recalling that A A 1. A Assumption 2. A Assumption 3. E with 1, 2. Theorem 10 A A B Proof 1. A Assumption 2. A Assumption 3. T heorem 9 4. B 5. A B by I, discharging 1. Exercise Prove each of the following i A (A )

30 30 CHAPTER 4. PROPOSITIONAL LOGIC 30 ii A ( A B) Theorem 11 ( B A) (A B) Proof We could try to use B A and A as assumptions and try to derive B, and then discharge the assumption to get the result. However this will not work. Consider the following approach. 1. B Assumption 2. B A Assumption 3. A by E with 1, A Assumption 5. by theorem 9 6. B by RAA discharging A B by I, discharging ( B A) (A B) by I, discharging 2. Theorem 12 (B A) ( A B) Proof 1. B Assumption 2. B A Assumption 3. A by E with 1, A Assumption 5. by theorem 9 6. B by RAA discharging A B by I, discharging (B A) ( A B) by I, discharging 2.

31 31 CHAPTER 4. PROPOSITIONAL LOGIC 31 Exercise Prove each of the following i (A ) A ii ( A B) ( B A) iii (A B) (B A) Theorem 13 A A Proof 1. A Assumption 2. A Assumption 3. by theorem 9 4. A by RAA discharging A A by I, discharging 2. Exercise Prove the following A A Exercise Write a formal proof for each of the following arguments from propositional logic A A B A B, A B A (A B), A B A (B A), (B A) A A A A (A B), (A B) B A B

32 32 CHAPTER 4. PROPOSITIONAL LOGIC 32 Contents 1 Propositional Logic Introduction Propositions and Truth Tables Conjunction, Disjunction and Negation Implication and Equivalence Laws of Logic Arguments Resolution in Propositional Logic Conjunctive Normal Form The Resolution Principle Formal Proofs in Propositional Logic

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC 1 CHAPTER 7. PREDICATE LOGIC 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC 1 Predicate Logic 1.1 Introduction There are various arguments which cannot be dealt

More information

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS All dogs have four legs. All tables have four legs. Therefore, all dogs are tables LOGIC Logic is a science of the necessary laws of thought, without which no employment

More information

1.1 Statements and Compound Statements

1.1 Statements and Compound Statements Chapter 1 Propositional Logic 1.1 Statements and Compound Statements A statement or proposition is an assertion which is either true or false, though you may not know which. That is, a statement is something

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Logic: Propositional Logic (Part I)

Logic: Propositional Logic (Part I) Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.

More information

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Topic 1: Propositional logic

Topic 1: Propositional logic Topic 1: Propositional logic Guy McCusker 1 1 University of Bath Logic! This lecture is about the simplest kind of mathematical logic: propositional calculus. We discuss propositions, which are statements

More information

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov Introduction Logic Inference Discrete Mathematics Andrei Bulatov Discrete Mathematics - Logic Inference 6-2 Previous Lecture Laws of logic Expressions for implication, biconditional, exclusive or Valid

More information

cis32-ai lecture # 18 mon-3-apr-2006

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook) Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or

More information

Chapter 1: The Logic of Compound Statements. January 7, 2008

Chapter 1: The Logic of Compound Statements. January 7, 2008 Chapter 1: The Logic of Compound Statements January 7, 2008 Outline 1 1.1 Logical Form and Logical Equivalence 2 1.2 Conditional Statements 3 1.3 Valid and Invalid Arguments Central notion of deductive

More information

Propositions and Proofs

Propositions and Proofs Chapter 2 Propositions and Proofs The goal of this chapter is to develop the two principal notions of logic, namely propositions and proofs There is no universal agreement about the proper foundations

More information

1 Propositional Logic

1 Propositional Logic CS 2800, Logic and Computation Propositional Logic Lectures Pete Manolios Version: 384 Spring 2011 1 Propositional Logic The study of logic was initiated by the ancient Greeks, who were concerned with

More information

The statement calculus and logic

The statement calculus and logic Chapter 2 Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isn t, it ain t. That s logic. Lewis Carroll You will have encountered several languages

More information

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

MATH10040: Chapter 0 Mathematics, Logic and Reasoning MATH10040: Chapter 0 Mathematics, Logic and Reasoning 1. What is Mathematics? There is no definitive answer to this question. 1 Indeed, the answer given by a 21st-century mathematician would differ greatly

More information

Part Two: The Basic Components of the SOFL Specification Language

Part Two: The Basic Components of the SOFL Specification Language Part Two: The Basic Components of the SOFL Specification Language SOFL logic Module Condition Data Flow Diagrams Process specification Function definition and specification Process decomposition Other

More information

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic. Ch. 1.1 Logic Logic 1 Def. A Proposition is a statement that is either true or false. Example 1: Which of the following are propositions? Statement Proposition (yes or no) UHD is a University 1 + 3 = 0

More information

FORMAL PROOFS DONU ARAPURA

FORMAL PROOFS DONU ARAPURA FORMAL PROOFS DONU ARAPURA This is a supplement for M385 on formal proofs in propositional logic. Rather than following the presentation of Rubin, I want to use a slightly different set of rules which

More information

Truth-Functional Logic

Truth-Functional Logic Truth-Functional Logic Syntax Every atomic sentence (A, B, C, ) is a sentence and are sentences With ϕ a sentence, the negation ϕ is a sentence With ϕ and ψ sentences, the conjunction ϕ ψ is a sentence

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

Propositional Logic. Spring Propositional Logic Spring / 32

Propositional Logic. Spring Propositional Logic Spring / 32 Propositional Logic Spring 2016 Propositional Logic Spring 2016 1 / 32 Introduction Learning Outcomes for this Presentation Learning Outcomes... At the conclusion of this session, we will Define the elements

More information

Section 1.1: Logical Form and Logical Equivalence

Section 1.1: Logical Form and Logical Equivalence Section 1.1: Logical Form and Logical Equivalence An argument is a sequence of statements aimed at demonstrating the truth of an assertion. The assertion at the end of an argument is called the conclusion,

More information

Natural Deduction for Propositional Logic

Natural Deduction for Propositional Logic Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic

More information

Logic. Propositional Logic: Syntax. Wffs

Logic. Propositional Logic: Syntax. Wffs Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional Logic. Fall () Propositional Logic Fall / 30 Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically

More information

Intermediate Logic. Natural Deduction for TFL

Intermediate Logic. Natural Deduction for TFL Intermediate Logic Lecture Two Natural Deduction for TFL Rob Trueman rob.trueman@york.ac.uk University of York The Trouble with Truth Tables Natural Deduction for TFL The Trouble with Truth Tables The

More information

Warm-Up Problem. Is the following true or false? 1/35

Warm-Up Problem. Is the following true or false? 1/35 Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,

More information

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

2. The Logic of Compound Statements Summary. Aaron Tan August 2017 2. The Logic of Compound Statements Summary Aaron Tan 21 25 August 2017 1 2. The Logic of Compound Statements 2.1 Logical Form and Logical Equivalence Statements; Compound Statements; Statement Form (Propositional

More information

COMP 2600: Formal Methods for Software Engineeing

COMP 2600: Formal Methods for Software Engineeing COMP 2600: Formal Methods for Software Engineeing Dirk Pattinson Semester 2, 2013 What do we mean by FORMAL? Oxford Dictionary in accordance with convention or etiquette or denoting a style of writing

More information

Formal Logic. Critical Thinking

Formal Logic. Critical Thinking ormal Logic Critical hinking Recap: ormal Logic If I win the lottery, then I am poor. I win the lottery. Hence, I am poor. his argument has the following abstract structure or form: If P then Q. P. Hence,

More information

Chapter 4, Logic using Propositional Calculus Handout

Chapter 4, Logic using Propositional Calculus Handout ECS 20 Chapter 4, Logic using Propositional Calculus Handout 0. Introduction to Discrete Mathematics. 0.1. Discrete = Individually separate and distinct as opposed to continuous and capable of infinitesimal

More information

(p == train arrives late) (q == there are taxis) (r == If p and not q, then r. Not r. p. Therefore, q. Propositional Logic

(p == train arrives late) (q == there are taxis) (r == If p and not q, then r. Not r. p. Therefore, q. Propositional Logic Propositional Logic The aim of logic in computer science is to develop languages to model the situations we encounter as computer science professionals Want to do that in such a way that we can reason

More information

8. Reductio ad absurdum

8. Reductio ad absurdum 8. Reductio ad absurdum 8.1 A historical example In his book, The Two New Sciences, 10 Galileo Galilea (1564-1642) gives several arguments meant to demonstrate that there can be no such thing as actual

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Manual of Logical Style

Manual of Logical Style Manual of Logical Style Dr. Holmes January 9, 2015 Contents 1 Introduction 2 2 Conjunction 3 2.1 Proving a conjunction...................... 3 2.2 Using a conjunction........................ 3 3 Implication

More information

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Description Logics. Foundations of Propositional Logic.   franconi. Enrico Franconi (1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge

More information

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true. Symbolic Logic 3 Testing deductive validity with truth tables For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true. So, given that truth tables

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic

More information

SE 212: Logic and Computation. se212 Nancy Day

SE 212: Logic and Computation.   se212 Nancy Day E 212, Fall 2018, University of Waterloo, Module 2, Page 1 SE 212: Logic and Computation Module 2: Propositional Logic http://www.student.cs.uwaterloo.ca/ se212 se212@uwaterloo.ca Nancy Day E 212, Fall

More information

PL: Truth Trees. Handout Truth Trees: The Setup

PL: Truth Trees. Handout Truth Trees: The Setup Handout 4 PL: Truth Trees Truth tables provide a mechanical method for determining whether a proposition, set of propositions, or argument has a particular logical property. For example, we can show that

More information

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Propositional Logic Arguments (5A) Young W. Lim 11/8/16 Propositional Logic (5A) Young W. Lim 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

More information

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC 1 CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC Here, you ll learn: what it means for a logic system to be finished some strategies for constructing proofs Congratulations! Our system of

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Logic and Inferences

Logic and Inferences Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional

More information

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic. Propositional Logic Winter 2012 Propositional Logic: Section 1.1 Proposition A proposition is a declarative sentence that is either true or false. Which ones of the following sentences are propositions?

More information

Propositional Logic Review

Propositional Logic Review Propositional Logic Review UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane The task of describing a logical system comes in three parts: Grammar Describing what counts as a formula Semantics Defining

More information

15414/614 Optional Lecture 1: Propositional Logic

15414/614 Optional Lecture 1: Propositional Logic 15414/614 Optional Lecture 1: Propositional Logic Qinsi Wang Logic is the study of information encoded in the form of logical sentences. We use the language of Logic to state observations, to define concepts,

More information

4 Derivations in the Propositional Calculus

4 Derivations in the Propositional Calculus 4 Derivations in the Propositional Calculus 1. Arguments Expressed in the Propositional Calculus We have seen that we can symbolize a wide variety of statement forms using formulas of the propositional

More information

Language of Propositional Logic

Language of Propositional Logic Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called

More information

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS Copyright Cengage Learning. All rights reserved. SECTION 2.1 Logical Form and Logical Equivalence Copyright Cengage Learning. All rights reserved. Logical Form

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship.

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship. LOGIC In mathematical and everyday English language, we frequently use logic to express our thoughts verbally and in writing. We also use logic in numerous other areas such as computer coding, probability,

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013 Propositional Logic Argument Forms Ioan Despi despi@turing.une.edu.au University of New England July 19, 2013 Outline Ioan Despi Discrete Mathematics 2 of 1 Order of Precedence Ioan Despi Discrete Mathematics

More information

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC 1 Motivation and History The origins of the classical propositional logic, classical propositional calculus, as it was, and still often is called,

More information

3 The Semantics of the Propositional Calculus

3 The Semantics of the Propositional Calculus 3 The Semantics of the Propositional Calculus 1. Interpretations Formulas of the propositional calculus express statement forms. In chapter two, we gave informal descriptions of the meanings of the logical

More information

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

More information

Where are my glasses?

Where are my glasses? Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

More information

Inference in Propositional Logic

Inference in Propositional Logic Inference in Propositional Logic Deepak Kumar November 2017 Propositional Logic A language for symbolic reasoning Proposition a statement that is either True or False. E.g. Bryn Mawr College is located

More information

CITS2211 Discrete Structures Proofs

CITS2211 Discrete Structures Proofs CITS2211 Discrete Structures Proofs Unit coordinator: Rachel Cardell-Oliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics

More information

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Propositional Logic Arguments (5A) Young W. Lim 11/30/16 Propositional Logic (5A) Young W. Lim 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

More information

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

Proof strategies, or, a manual of logical style

Proof strategies, or, a manual of logical style Proof strategies, or, a manual of logical style Dr Holmes September 27, 2017 This is yet another version of the manual of logical style I have been working on for many years This semester, instead of posting

More information

HANDOUT AND SET THEORY. Ariyadi Wijaya

HANDOUT AND SET THEORY. Ariyadi Wijaya HANDOUT LOGIC AND SET THEORY Ariyadi Wijaya Mathematics Education Department Faculty of Mathematics and Natural Science Yogyakarta State University 2009 1 Mathematics Education Department Faculty of Mathematics

More information

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

More information

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

More information

Formal (natural) deduction in propositional logic

Formal (natural) deduction in propositional logic Formal (natural) deduction in propositional logic Lila Kari University of Waterloo Formal (natural) deduction in propositional logic CS245, Logic and Computation 1 / 67 I know what you re thinking about,

More information

Logical Agent & Propositional Logic

Logical Agent & Propositional Logic Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation

More information

8. Reductio ad absurdum

8. Reductio ad absurdum 8. Reductio ad absurdum 8.1 A historical example In his book, The Two New Sciences, Galileo Galilea (1564-1642) gives several arguments meant to demonstrate that there can be no such thing as actual infinities

More information

Glossary of Logical Terms

Glossary of Logical Terms Math 304 Spring 2007 Glossary of Logical Terms The following glossary briefly describes some of the major technical logical terms used in this course. The glossary should be read through at the beginning

More information

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

The Limit of Humanly Knowable Mathematical Truth

The Limit of Humanly Knowable Mathematical Truth The Limit of Humanly Knowable Mathematical Truth Gödel s Incompleteness Theorems, and Artificial Intelligence Santa Rosa Junior College December 12, 2015 Another title for this talk could be... An Argument

More information

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic CHAPER 1 MAHEMAICAL LOGIC 1.1 undamentals of Mathematical Logic Logic is commonly known as the science of reasoning. Some of the reasons to study logic are the following: At the hardware level the design

More information

A statement is a sentence that is definitely either true or false but not both.

A statement is a sentence that is definitely either true or false but not both. 5 Logic In this part of the course we consider logic. Logic is used in many places in computer science including digital circuit design, relational databases, automata theory and computability, and artificial

More information

Two hours. Note that the last two pages contain inference rules for natural deduction UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

Two hours. Note that the last two pages contain inference rules for natural deduction UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE COMP 0 Two hours Note that the last two pages contain inference rules for natural deduction UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Mathematical Techniques for Computer Science Date: Friday

More information

Logic for Computer Science - Week 4 Natural Deduction

Logic for Computer Science - Week 4 Natural Deduction Logic for Computer Science - Week 4 Natural Deduction 1 Introduction In the previous lecture we have discussed some important notions about the semantics of propositional logic. 1. the truth value of a

More information

Section 1.2: Propositional Logic

Section 1.2: Propositional Logic Section 1.2: Propositional Logic January 17, 2017 Abstract Now we re going to use the tools of formal logic to reach logical conclusions ( prove theorems ) based on wffs formed by some given statements.

More information

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte Handout on Logic, Axiomatic Methods, and Proofs MATH 3181 001 Spring 1999 David C. Royster UNC Charlotte January 18, 1999 Chapter 1 Logic and the Axiomatic Method 1.1 Introduction Mathematicians use a

More information

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives Logic Logic is study of abstract reasoning, specifically, concerned with whether reasoning is correct. Logic focuses on relationship among statements as opposed to the content of any particular statement.

More information

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876

More information

First Order Logic: Syntax and Semantics

First Order Logic: Syntax and Semantics irst Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Logic Recap You should already know the basics of irst Order Logic (OL) It s a prerequisite of this course!

More information

CSC Discrete Math I, Spring Propositional Logic

CSC Discrete Math I, Spring Propositional Logic CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)

More information

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1) CS100: DISCREE SRUCURES Lecture 5: Logic (Ch1) Lecture Overview 2 Statement Logical Connectives Conjunction Disjunction Propositions Conditional Bio-conditional Converse Inverse Contrapositive Laws of

More information

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson Natural Deduction Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. An example 1. Validity by truth table 2. Validity by proof 2. What s a proof 1. Proof checker 3. Rules of

More information

Propositional Logic Arguments (5A) Young W. Lim 11/29/16

Propositional Logic Arguments (5A) Young W. Lim 11/29/16 Propositional Logic (5A) Young W. Lim 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

More information

Logic for Computer Science - Week 5 Natural Deduction

Logic for Computer Science - Week 5 Natural Deduction Logic for Computer Science - Week 5 Natural Deduction Ștefan Ciobâcă November 30, 2017 1 An Alternative View of Implication and Double Implication So far, we have understood as a shorthand of However,

More information

Manual of Logical Style (fresh version 2018)

Manual of Logical Style (fresh version 2018) Manual of Logical Style (fresh version 2018) Randall Holmes 9/5/2018 1 Introduction This is a fresh version of a document I have been working on with my classes at various levels for years. The idea that

More information

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion)

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion) Arguments and Proofs For the next section of this course, we will study PROOFS. A proof can be thought of as the formal representation of a process of reasoning. Proofs are comparable to arguments, since

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

Definition 2. Conjunction of p and q

Definition 2. Conjunction of p and q Proposition Propositional Logic CPSC 2070 Discrete Structures Rosen (6 th Ed.) 1.1, 1.2 A proposition is a statement that is either true or false, but not both. Clemson will defeat Georgia in football

More information

Logic for Computer Science Handout Week 8 DERIVED RULE MODUS TOLLENS DERIVED RULE RAA DERIVED RULE TND

Logic for Computer Science Handout Week 8 DERIVED RULE MODUS TOLLENS DERIVED RULE RAA DERIVED RULE TND Logic for Computer Science Handout Week 8 DERIVED RULE MODUS TOLLENS We have last week completed the introduction of a calculus, which is sound and complete. That is, we can syntactically establish the

More information

Computation and Logic Definitions

Computation and Logic Definitions Computation and Logic Definitions True and False Also called Boolean truth values, True and False represent the two values or states an atom can assume. We can use any two distinct objects to represent

More information

The Logic of Compound Statements cont.

The Logic of Compound Statements cont. The Logic of Compound Statements cont. CSE 215, Computer Science 1, Fall 2011 Stony Brook University http://www.cs.stonybrook.edu/~cse215 Refresh from last time: Logical Equivalences Commutativity of :

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information