1 The Foundations. 1.1 Logic. A proposition is a declarative sentence that is either true or false, but not both.
|
|
- Erica Williamson
- 6 years ago
- Views:
Transcription
1 he oundations. Logic Propositions are building blocks of logic. A proposition is a declarative sentence that is either true or false, but not both. Example. Declarative sentences.. Ottawa is the capital Canada. 2. oronto is the capital Canada = =. 5. George Bush is the president. All 5 sentences are declarative, so all are propositions. Sentences and 3 are true, the rest are false. Why? Remark: Correctness may depend on time, system, place, etc. Example 2. Non-declarative sentences not propositions!. What is your name? 2. Stand up! 3. 2+x=2. 4. x+y=z. Sentences and 2 are not declarative; for 3 and 4, a definitive judgement cannot be made. So, none of them are propositions. Propositions are denoted by letters like p, q, r, s,. If a proposition is true, the truth value of this proposition is denoted by or by ; if the proposition is not true, then it is denoted by or by (zero). he area of logic that deals with propositions is called propositional calculus/logic. Propositions, constructed by combining one or more existing propositions using logical operators, are called compound proposition.
2 Definition Let p be a proposition. he statement It is not the case that p is another proposition, called the negation of p. he negation of p is denoted by p. he proposition p is read not p. Example 3. ind the negation of the proposition oday is riday. and express it in simple English. Solution: he negation is It is not the case that today is riday. Or simply oday is not riday. Remark: Strictly speaking, sentences involving variable times such as those in Example 3 are not propositions, unless a fixed time and further a fixed position/place is assumed. A truth table displays the relationships between the truth values of propositions. ABLE he ruth able for the Negation of a Proposition. p p he negation p of a proposition p can also be considered the result of the operation of the negation operator on a proposition p. he logical operators that are used to form new propositions from two or more existing propositions are called connectives. 2
3 Definition 2 Let p and q be a proposition. he proposition p and q, denoted by p ^ q, is the proposition that is true when both p and q are true and is false otherwise. he proposition p ^ q is called the conjunction of p and q. ABLE 2 he ruth able for the Conjunction of two Propositions. p q p ^ q Example 4. ind the conjunction of the proposition p and q where p is the proposition oday is riday. And q is the proposition It is raining today. Solution: p ^ q is the proposition oday is riday and it is raining today. Definition 3 Let p and q be propositions. he proposition p or q, denoted by p v q, is the proposition that is false when both p and q are false and is true otherwise. he proposition p v q is called the disjunction of p or q. ABLE 3 he ruth able for the Disjunction of two Propositions. p q p v q 3
4 Example5. ind the disjunction of the proposition p and q where p is the proposition oday is riday. And q is the proposition It is raining today. Solution: p v q is the proposition oday is riday or it is raining today. Definition 4 Let p and q be propositions. he exclusive or of p and q, denoted by p q, is the proposition that is true when exactly one of p and q is true and is false otherwise. ABLE 4 he ruth able for the Exclusive Or of two Propositions. p q p q Implications ABLE 5 he ruth able for the Implication p q. p q p q Definition 5 Let p and q be propositions. he implication p q is the proposition that is only false when p is true and q is false, and true otherwise. In this implication p is called the hypothesis (or premise) and q is called the conclusion (or consequence). An implication is sometimes called a conditional statement. If p is false, then p q is always true. If a politician is not elected, you cannot say, he has broken his campaign pledge and he is an untruthful person. You can say it only if he is elected but broke his campaign pledge. Remark: he way we have defined implications is more general than the meaning attached to language. he implication 4
5 If today is riday, then 2+3=6. Is false only if today is riday, is true all the other days, even though 2+3=6 is false. here are many different ways to express implication p q : if p, then q p implies q if p, q p only if q p is sufficient for q, a sufficient condition for q is p q if p q whenever p q when p q is necessary for p a necessary condition for p is q q follows from p q unless p or comprehension, the truth value of a conditional statement can be compared to a contract or a promise. Remark: p only if q q p, if q then p. Note that p only if q says p cannot be true when q is not true. q unless not p = p q. Check the truth value. However the if-then construction used in many programming languages is different from that used in logic. In the statement if p, then S, S is executed if p is true, but S is not executed if p is false. Example 6. What is the value of the variable x after the statement If 2+2=4 then x:=x+ If x= before this statement is encountered? Solution:.. int x=;. printf( the value before: %d\n, x); if (2+2==4) then x=x+; printf( the value after: %d\n, x);.. 5
6 CONVERSE, CONRAPOSIIVE AND INVERSE here are some related implications that can be formed from p q. he proposition q p is called the converse of p q. he contrapositive of p q is the proposition q p. he proposition p q is called the inverse of p q. Evidently the contrapositive, q p, of an implication p q has the same truth value as p q and therefore they are equivalent. Example 7. What are the contrapositive, the converse and the inverse of the implication he home team wins whenever it is raining.? Solution: q whenever p is equivalent to the implication p q If p, then q.. So p is It is raining. And q is he home team wins. So the contrapositive, q p: If home team does not win, then it is not raining. he converse, q p: If home team wins, then it is raining. he inverse, p q: If it is not raining, then the home team does not win. Definition 6 Let p and q be propositions. he biconditional p q is the proposition that is true when p and q have the same truth values, and is false otherwise. Clearly p q is equivalent to (p q) (q p), in verbal expression p if and only if q, p is necessary and sufficient for q, if p then q, conversely 6
7 ABLE 6 he ruth able for the Biconditional p q. p q p q Example 8. Let p be the statement You can take the flight and q the statement You buy a ticket. hen p q is the statement You can take the flight if and only if you buy a ticket. Remark: precision in essential in math and logic, but it may not be the case in language. he oundations PRECEDENCE O LOGICAL OPERAORS Using logical operators, compound operators can be constructed. So the precedence of logical operators does matters. ABLE 7 Precedence of Logical Operators. Operator Precedence herefore p q=( p) q, p q r=(p q) r and p q r = (p q) r. 7
8 RANSLAING ENGLISH SENENCES here are many reasons to translate English/human language sentences into expressions involving propositional variables and logical connectives. In particular, English/human language is often ambiguous. ranslating sentences into logical expressions removes the ambiguity. Example 9. How can the English sentence You can access the Internet from campus only if you are a computer science major or you are not a freshmen. into a logical expression? Solution: we have y only if x and this is actually y is sufficient to x and again this means if y then x. Notice that here x is a compound. Let a be You can access the Internet from campus., c be You are a computer science major and f be You are a freshmen. hen the sentence is a only if c or f, in another word if a then c or f and this is a (c f ). Example. How can the English sentence You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 6 years old. into a logical expression? Solution: this is obviously y if x. So it is equal to if x then y. However the x here is again a compound. Rewriting you are under 4 feet tall unless you are older than 6 years old as you are under 4 feet tall with the exception that you are older than 6 years, and this is you are under 4 feet tall and it is not the case that you are older than 6 years everything is quite clear. cannot ride can ride Set of people under 4 feet tall People not over 6 years people over 6 years 8
9 Let r be You can ride the roller coaster., s be you are under 4 feet tall (s for short), o be you are older than 6 years. hen the sentence is (s o ) r. In another word, You can ride the roller coaster if you are not under 4 feet tall or you are older than 6 years old. he rest cannot ride(short and not old cannot ride). Solution2: all(not short) or old can ride and this is ( s o ) r. So the negation of ( s o ) r is cannot ride only if it is not the case that tall(not short) or old and this means ( s o ) r. Now looking at the truth table s o s o ( s o ) s o we see that ( s o )= s o. hus the original sentence in logical expression is : (s o) r, in words short and not old cannot ride. SYSEM SPECIICAIONS ranslating sentences in natural language into logical expressions is an essential part of specifying both hardware and software systems. Purpose is to take requirements in natural languages and to produce precise and unambiguous (clear) specifications that can be used as the basis for system development. Example. Express the specification he automated reply cannot be sent when the file system is full. using logical connectives. Solution: this is again y if x and this is if x then y. 9
10 System specifications should not contain conflicting requirements. Otherwise there would be no way to develop a system that satisfies all the specifications. Consequently, propositional expressions representing these specifications need to be consistent. hat is, there must be an assignment of truth values to the variables in the expressions that makes all the expressions true. Example 2. Determine whether these system specifications are consistent: he diagnostic message is stored in the buffer or it is retransmitted. he diagnostic message is not stored in the buffer. If the diagnostic message is not stored in the buffer, then it is retransmitted. Solution: to check the consistency express them using logical expressions and check the truth table if all three propositions can be true for the variable propositions. Let s: he diagnostic message is stored in the buffer. r: he diagnostic message is retransmitted. hen the specifications are: s r, s, s r. Checking the truth table s r s r s s r we see that the assignment of the variables s= and r= makes all three expressions true. So the system is consistent. Example 3. Do the system specifications in Example 2 remain consistent if the specification he diagnostic message is not retransmitted. is added? Solution: adding one implication to the truth table of Example 2 and looking at the truth values we see that the system specifications are inconsistent.
11 BOOLEAN SEARCHES Logical connectives are used extensively in searches of large collections of information, such as indexes of Web pages. Since these searches use the techniques from propositional logic, they are called Boolean searches. In Boolean searches AND is used to records match both terms, OR is used to match one or both of search terms, NO is used to exclude a particular term. Example 4. Webpage searching. ind universities in New Mexico. Solution: using twice AND can solve the problem. LOGIC AND BI OPERAIONS Computers represent information using bits. A bit has two possible values: and. A bit can also be used to represent a truth value: true or false. A variable is called a Boolean variable if its value is either true or false. A boolean variable can be represented using a bit. Computer bit operations corresponds logical connectives. ABLE 8 able for the Bit Operators OR, AND, and XOR. x y x y x y x y Definition 7 A bit string is a sequence of zero or more bits. he length of this string is the number of bits in the string. Example 7. is a bit string of length nine.
12 Example 8. ind bitwise OR, bitwise AND, and bitwise XOR of the bit strings and. Solution: ========== bitwise OR bitwise AND bitwise XOR LOGIC PUZZLES Puzzles that can be solved using logical reasoning are called logic puzzles. Example 5. An island has two kinds of habitants, knights, who always tell the truth, and their opposites, knaves, who always lie. You encounter two people A and B. What are A and B if A says B is knight and B says he two of us are opposite types? Solution: If A is true then according to A s statement B is knight, B should be true too, this means A B. If B is true then A B should be true and this means B A B. able for Logic puzzles A B A B B A B If A is false then A said B is knight, B should be false too, this means A B. If B is false, then what he said A B should be false too and this means B (A B). 2
13 able for Logic puzzles 2 A B A B B (A B) rom the tables we see that able 2 is consistent and this means A and B are both knaves. 3
Discrete Mathematical Structures. Chapter 1 The Foundation: Logic
Discrete Mathematical Structures Chapter 1 he oundation: Logic 1 Lecture Overview 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Quantifiers l l l l l Statement Logical Connectives Conjunction
More informationChapter 1, Part I: Propositional Logic. With Question/Answer Animations
Chapter 1, Part I: Propositional Logic With Question/Answer Animations Chapter Summary Propositional Logic The Language of Propositions Applications Logical Equivalences Predicate Logic The Language of
More informationChapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.
Chapter 1 Chapter Summary Propositional Logic The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.3) Predicate Logic The Language of Quantifiers (1.4) Logical Equivalences (1.4)
More informationCS100: 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 informationPropositional Logic 1
Propositional Logic 1 Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth Tables 2 Propositions A proposition is
More informationAn Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04
An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04 1 A Taste of Logic Logic puzzles (1) Knights and Knaves Knights: always tell the truth Knaves: always lie You encounter two people A and B. A says:
More informationChapter 1, Part I: Propositional Logic. With Question/Answer Animations
Chapter 1, Part I: Propositional Logic With Question/Answer Animations Chapter Summary! Propositional Logic! The Language of Propositions! Applications! Logical Equivalences! Predicate Logic! The Language
More informationMath.3336: Discrete Mathematics. Applications of Propositional Logic
Math.3336: Discrete Mathematics Applications of Propositional Logic Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu
More informationDefinition 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 information2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic
CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares
More informationThe Foundations: Logic and Proofs. Part I
The Foundations: Logic and Proofs Part I Chapter Summary Propositional Logic n The Language of Propositions n Applications n Logical Equivalences Predicate Logic n The Language of Quantifiers n Logical
More informationCHAPTER 1 - LOGIC OF COMPOUND STATEMENTS
CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS 1.1 - Logical Form and Logical Equivalence Definition. A statement or proposition is a sentence that is either true or false, but not both. ex. 1 + 2 = 3 IS a statement
More informationChapter 1, Section 1.1 Propositional Logic
Discrete Structures Chapter 1, Section 1.1 Propositional Logic These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 6 th ed., by Kenneth H. Rosen, published
More informationHW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall
CSE 20 HW1 graded review form? HW2 released DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Translate sentences from English to propositional logic using appropriate
More informationPropositional Logic. Propositional Equivalences. Agenda. Yutaka HATA, IEEE Fellow. Ch1.1 Propositional Logic. Ch1.2 Propositional Equivalences
Discrete Mathematic Chapter 1: Logic and Proof 1.1 Propositional Logic 1.2 Propositional Equivalences Yutaka HAA, IEEE ellow University of Hyogo, JAPAN his material was made by Dr. Patrick Chan School
More informationSec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional
Section 1.1 Sec$on Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional ruth ables 2 Proposi$ons A proposition is a declarative
More informationCSE 240 Logic and Discrete Mathematics
CSE 240 Logic and Discrete Mathematics Instructor: odd Sproull Department of Computer Science and Engineering Washington University in St. Louis 1Extensible - CSE 240 Logic Networking and Discrete Platform
More informationDiscrete Structures of Computer Science Propositional Logic I
Discrete Structures of Computer Science Propositional Logic I Gazihan Alankuş (Based on original slides by Brahim Hnich) July 26, 2012 1 Use of Logic 2 Statements 3 Logic Connectives 4 Truth Tables Use
More informationIntroduction Propositional Logic. Discrete Mathematics Andrei Bulatov
Introduction Propositional Logic Discrete Mathematics Andrei Bulatov Discrete Mathematics Propositional Logic 2-2 What is Logic? Computer science is a mere continuation of logic by other means Georg Gottlob
More informationCSC 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 informationAnnouncements CompSci 102 Discrete Math for Computer Science
Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most
More informationProposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators
Proposition/Statement Boolean Logic CS 231 Dianna Xu A proposition is either true or false but not both he sky is blue Lisa is a Math major x == y Not propositions: Are you Bob? x := 7 1 2 Boolean variables
More informationChapter 2: The Logic of Compound Statements
Chapter 2: he Logic of Compound Statements irst: Aristotle (Gr. 384-322 BC) Collection of rules for deductive reasoning to be used in every branch of knowledge Next: Gottfried Leibniz (German, 17th century)
More informationChapter 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 informationNote: 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 informationCompound Propositions
Discrete Structures Compound Propositions Producing new propositions from existing propositions. Logical Operators or Connectives 1. Not 2. And 3. Or 4. Exclusive or 5. Implication 6. Biconditional Truth
More informationDiscrete Mathematics and Applications COT3100
Discrete Mathematics and Applications CO3100 Dr. Ungor Sources: Slides are based on Dr. G. Bebis material. uesday, January 7, 2014 oundations of Logic: Overview Propositional logic: (Sections 1.1-1.3)
More informationLecture 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 informationCS 220: Discrete Structures and their Applications. Propositional Logic Sections in zybooks
CS 220: Discrete Structures and their Applications Propositional Logic Sections 1.1-1.2 in zybooks Logic in computer science Used in many areas of computer science: ü Booleans and Boolean expressions in
More informationLOGIC & PROPOSITIONAL EQUIVALENCE
KS091201 MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) LOGIC & PROPOSITIONAL EQUIVALENCE Discrete Math Team 2 -- KS091201 MD W-02 Outline Logic Proposition Propositional Variables Logical Operators Presedence
More informationToday s Topic: Propositional Logic
Today s Topic: Propositional Logic What is a proposition? Logical connectives and truth tables Translating between English and propositional logic Logic is the basis of all mathematical and analytical
More informationLOGIC 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 informationsoftware design & management Gachon University Chulyun Kim
Gachon University Chulyun Kim 2 Outline Propositional Logic Propositional Equivalences Predicates and Quantifiers Nested Quantifiers Rules of Inference Introduction to Proofs 3 1.1 Propositional Logic
More informationPropositional 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 informationExample. 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 informationDISCRETE MATHEMATICS BA202
TOPIC 1 BASIC LOGIC This topic deals with propositional logic, logical connectives and truth tables and validity. Predicate logic, universal and existential quantification are discussed 1.1 PROPOSITION
More informationDiscrete Structures for Computer Science
Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #2: Propositional Logic Based on materials developed by Dr. Adam Lee Today s Topic: Propositional
More informationEECS 1028 M: Discrete Mathematics for Engineers
EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 26 Why Study Logic?
More informationWhy Learning Logic? Logic. Propositional Logic. Compound Propositions
Logic Objectives Propositions and compound propositions Negation, conjunction, disjunction, and exclusive or Implication and biconditional Logic equivalence and satisfiability Application of propositional
More informationWhat is Logic? Introduction to Logic. Simple Statements. Which one is statement?
What is Logic? Introduction to Logic Peter Lo Logic is the study of reasoning It is specifically concerned with whether reasoning is correct Logic is also known as Propositional Calculus CS218 Peter Lo
More informationDiscrete Mathematics and Its Applications
Discrete Mathematics and Its Applications Lecture 1: Proposition logic MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 12, 2017 Outline 1 Propositions 2 Connectives
More informationMAT2345 Discrete Math
Fall 2013 General Syllabus Schedule (note exam dates) Homework, Worksheets, Quizzes, and possibly Programs & Reports Academic Integrity Do Your Own Work Course Web Site: www.eiu.edu/~mathcs Course Overview
More informationDiscrete Mathematics and Its Applications
Discrete Mathematics and Its Applications Lecture 1: The Foundations: Logic and Proofs (1.3-1.5) MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 19, 2017 Outline 1 Logical
More informationPROPOSITIONAL CALCULUS
PROPOSITIONAL CALCULUS A proposition is a complete declarative sentence that is either TRUE (truth value T or 1) or FALSE (truth value F or 0), but not both. These are not propositions! Connectives and
More informationDISCRETE STRUCTURES WEEK5 LECTURE1
DISCRETE STRUCTURES WEEK5 LECTURE1 Let s get started with... Logic! Spring 2010 CPCS 222 - Discrete Structures 2 Logic Crucial for mathematical reasoning Important for program design Used for designing
More informationPropositions. Frequently, we will use the word statement instead of proposition.
Propositional Logic Propositions A proposition is a declaration of fact that is either true or false, but not both. Examples and non-examples: One plus two equals four (proposition) Mozart is the greatest
More informationGEOMETRY. Chapter 2: LOGIC. Name: Teacher: Pd:
GEOMERY Chapter 2: LOGIC Name: eacher: Pd: able of Contents DAY 1: SWBA: Identify, write and analyze the different types of logical statements. Pgs: 2-8 Homework: Pgs 6 8 (EVEN ONLY) DAY 2: SWBA: Write
More informationLogic. Def. A Proposition is a statement that is either true or false.
Logic Logic 1 Def. A Proposition is a statement that is either true or false. Examples: Which of the following are propositions? Statement Proposition (yes or no) If yes, then determine if it is true or
More informationPropositional Languages
Propositional Logic Propositional Languages A propositional signature is a set/sequence of primitive symbols, called proposition constants. Given a propositional signature, a propositional sentence is
More informationOverview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions
Note 01 Propositional Logic 1 / 10-1 Overview 1. Introduction to Propositional Logic 2. Operations on Propositions 3. Truth Tables 4. Translating Sentences into Logical Expressions 5. Preview: Propositional
More information3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations
Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element
More informationCSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker
CSCE 222 Discrete Structures for Computing Propositional Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Propositions A proposition is a declarative sentence that is either true or false
More informationLogic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007
COT3100: Propositional Equivalences 1 Logic and Proofs Jan 2007 COT3100: Propositional Equivalences 2 1 Translating from Natural Languages EXAMPLE. Translate the following sentence into a logical expression:
More informationBoolean Logic. CS 231 Dianna Xu
Boolean Logic CS 231 Dianna Xu 1 Proposition/Statement A proposition is either true or false but not both The sky is blue Lisa is a Math major x == y Not propositions: Are you Bob? x := 7 2 Boolean variables
More informationFormal 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 informationARTIFICIAL INTELLIGENCE
ARTIFICIAL INTELLIGENCE LECTURE # 03 Artificial Intelligence 2012 Lecture 03 Delivered By Zahid Iqbal 1 Review of Last Lecture Artificial Intelligence 2012 Lecture 03 Delivered By Zahid Iqbal 2 Today s
More information1.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 informationAI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic
AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic Propositional logic Logical connectives Rules for wffs Truth tables for the connectives Using Truth Tables to evaluate
More informationA 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 informationTHE 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 informationCSE 20: Discrete Mathematics
Spring 2018 Last Time Welcome / Introduction to Propositional Logic Card Puzzle / Bar Puzzle Same Problem Same Logic Same Answer Logic is a science of the necessary laws of thought (Kant, 1785) Logic allow
More informationDiscrete Mathematics
Discrete Mathematics Discrete mathematics is devoted to the study of discrete or distinct unconnected objects. Classical mathematics deals with functions on real numbers. Real numbers form a continuous
More informationLogic Overview, I. and T T T T F F F T F F F F
Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical
More informationSection 3.1. Statements and Logical Connectives. Copyright 2013, 2010, 2007, Pearson, Education, Inc.
Section 3.1 Statements and Logical Connectives What You Will Learn Statements, quantifiers, and compound statements Statements involving the words not, and, or, if then, and if and only if 3.1-2 HISORY
More informationLogic 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 informationCSE 20 DISCRETE MATH. Fall
CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Describe and use algorithms for integer operations based on their expansions Relate algorithms for integer
More informationPropositional Logic: Semantics
Propositional Logic: Semantics Alice Gao Lecture 4, September 19, 2017 Semantics 1/56 Announcements Semantics 2/56 The roadmap of propositional logic Semantics 3/56 FCC spectrum auction an application
More informationAMTH140 Lecture 8. Symbolic Logic
AMTH140 Lecture 8 Slide 1 Symbolic Logic March 10, 2006 Reading: Lecture Notes 6.2, 6.3; Epp 1.1, 1.2 Logical Connectives Let p and q denote propositions, then: 1. p q is conjunction of p and q, meaning
More informationCHAPTER 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 informationThese are all examples of declarative compound sentences.
Opening Exploration 1. Determine whether each claim given below is true or false. A. Right now, I am in math class and English class. B. Right now, I am in math class or English class. C. I am 14 years
More information2. 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 information1 Propositional Logic
1 Propositional Logic Required reading: Foundations of Computation. Sections 1.1 and 1.2. 1. Introduction to Logic a. Logical consequences. If you know all humans are mortal, and you know that you are
More informationUNIT-I: Propositional Logic
1. Introduction to Logic: UNIT-I: Propositional Logic Logic: logic comprises a (formal) language for making statements about objects and reasoning about properties of these objects. Statements in a logical
More informationTRUTH TABLES LOGIC (CONTINUED) Philosophical Methods
TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods Here s some Vocabulary we will be talking about in this PowerPoint. Atomic Sentences: Statements which express one proposition Connectives: These are
More informationECOM Discrete Mathematics
ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional
More informationLesson 15: Solution Sets of Two or More Equations (or Inequalities) Joined by And or Or
Solution Sets of Two or More Equations (or Inequalities) Joined by And or Or Classwork 1. Determine whether each claim given below is true or false. a. Right now, I am in math class and English class.
More informationLogical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional
Logical Operators Conjunction Disjunction Negation Exclusive Or Implication Biconditional 1 Statement meaning p q p implies q if p, then q if p, q when p, q whenever p, q q if p q when p q whenever p p
More informationLogic and Proof. Aiichiro Nakano
Logic and Proof Aiichiro Nakano Collaboratory for Advanced Computing & Simulations Department of Computer Science Department of Physics & Astronomy Department of Chemical Engineering & Materials Science
More informationMathematical Logic Part One
Mathematical Logic Part One Question: How do we formalize the definitions and reasoning we use in our proofs? Where We're Going Propositional Logic (oday) Basic logical connectives. ruth tables. Logical
More informationA Statement; Logical Operations
A Statement; Logical Operations Mathematical logic is a branch of mathematics that deals with the formal principles, methods and criteria of validity of reasoning and knowledge. Logic is concerned with
More informationSection 3.1 Statements, Negations, and Quantified Statements
Section 3.1 Statements, Negations, and Quantified Statements Objectives 1. Identify English sentences that are statements. 2. Express statements using symbols. 3. Form the negation of a statement 4. Express
More informationSection 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 informationChapter 5: Section 5-1 Mathematical Logic
Chapter 5: Section 5-1 Mathematical Logic D. S. Malik Creighton University, Omaha, NE D. S. Malik Creighton University, Omaha, NE Chapter () 5: Section 5-1 Mathematical Logic 1 / 29 Mathematical Logic
More informationNumbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:
3.4 THE CONDITIONAL & BICONDITIONAL Definition. Any statement that can be put in the form If p, then q, where p and q are basic statements, is called a conditional statement and is written symbolically
More informationThe 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 information2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?
Logic: Truth Tables CS160 Rosen Chapter 1 Logic? 1 What is logic? Logic is a truth-preserving system of inference Truth-preserving: If the initial statements are true, the inferred statements will be true
More informationPropositional logic ( ): Review from Mat 1348
CSI 2101 / Winter 2008: Discrete Structures. Propositional logic ( 1.1-1.2): Review from Mat 1348 Dr. Nejib Zaguia - Winter 2008 1 Propositional logic: Review Mathematical Logic is a tool for working with
More informationSection 1.3. Let I be a set. When I is used in the following context,
Section 1.3. Let I be a set. When I is used in the following context, {B i } i I, we call I the index set. The set {B i } i I is the family of sets of the form B i where i I. One could also use set builder
More informationThe 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 informationBox. Turn in your e xam to Kathy Stackhouse in Chem 303 by noon on Thursday, March 30.
Phil 201 Exam #6 Score Name Instructions: Open book, open notes. Do all your work on these pages. When doing derivations in this exam, you may use any of the simple, complex, or derived rules of truth-functional
More informationUnit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9
Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Typeset September 23, 2005 1 Statements or propositions Defn: A statement is an assertion
More informationProofs. Joe Patten August 10, 2018
Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital
More informationAnnouncements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication
Announcements CS311H: Discrete Mathematics Propositional Logic II Instructor: Işıl Dillig First homework assignment out today! Due in one week, i.e., before lecture next Wed 09/13 Remember: Due before
More informationMATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG
MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG Suggested Problems for Logic and Proof The following problems are from Discrete Mathematics and Its Applications by Kenneth H. Rosen. 1. Which of these
More informationProving logical equivalencies (1.3)
EECS 203 Spring 2016 Lecture 2 Page 1 of 6 Proving logical equivalencies (1.3) One thing we d like to do is prove that two logical statements are the same, or prove that they aren t. Vocabulary time In
More informationn logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)
Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional
More informationFoundation of proofs. Jim Hefferon.
Foundation of proofs Jim Hefferon http://joshua.smcvt.edu/proofs The need to prove In Mathematics we prove things To a person with a mathematical turn of mind, the base angles of an isoceles triangle are
More information1.1 Language and Logic
c Oksana Shatalov, Fall 2017 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,
More information1.1 Language and Logic
c Oksana Shatalov, Spring 2018 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,
More informationTHE 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