Discrete Mathematics Predicates And Quantifiers

Transcription

Page 1 of 6Discrete MathematicsPredicates and QuantifiersPredica esPropositional logic is not enough to express the meaning of all statements in mathematicsand natural language.Examples:Is1 True or FalseIsis a great tennis player True or False?Predicate LogicVariables: , , , etc.Predicates: 𝑃 , 𝑄 , etc.Quantifiers: Universal and Existential.Connectives from propositional logic carry over to predicate logic.A predicate 𝑃variables.is a declarative sentence whose truth value depends on one or more𝑃is also said to be the value of the propositional function 𝑃 at .𝑃becomes a proposition when a value ofis assigned from the domain π‘ˆ.Examples (Propositional Functions):1. Let 𝑃be1. Determine the truth value ofa. 𝑃 22. Let 𝑅b. 𝑃, ,bea. 𝑅 2, 1, 52 𝑃 1Find these truth valuesb. 𝑅, 3, 2020, I. Perepelitsa

Page 2 of 6QuantifiersWe need quantifiers to e press the meaning of English ords including all and someAll students in this class are computer science majorsThere is a math major student in this classThe two most important quantifiers are:Universal Quantifier, For all s mbol Existential Quantifier There e ists s mbol We write as in 𝑃and 𝑃 . 𝑃asserts 𝑃is true for every in the domain.If,asserts 𝑃 𝑃If, ,,, ,, then 𝑃𝑃is true for some, then 𝑃 𝑃. 𝑃in the domain.𝑃 𝑃. 𝑃Examples:1. Let 𝑃with the domain of all positive real numbers.Find the truth value of 𝑃 .2. Let 𝑃ith the domain of all real numbersFind the truth value of 𝑃 .The truth value of 𝑃and 𝑃𝑃and on the domain π‘ˆ.depends BOTH on the propositional functionQuantifiersStatement 𝑃 𝑃When True?𝑃is true for every .There is an x for which 𝑃is true.When False?There is an x for which𝑃is false.𝑃is false for every . 2020, I. Perepelitsa

Page 3 of 6Example: Suppose the domain of the propositional function 𝑃 :consists of1, 2, 3 . Write out each of the following propositions using conjunction or disjunction anddetermine its truth value.1. 𝑃2. 𝑃An element for which 𝑃is false is called a counterexample of 𝑃Precedence of QuantifiersThe quantifiers and have higher precedence than all the logical operatorsE ample 𝑃different 𝑄means 𝑃 𝑄 𝑃 𝑄means somethingNegating QuantifiersDe Morgan laws for quantifiers (the rules for negating quantifiers) are: 𝑃 𝑃 𝑃 𝑃Example: Express each of these statements using quantifiers. Then form a negation of thestatement, so that no negation is left of a quantifier. Next, express the negation in simpleEnglish.1.Some old dogs can learn new tricks. 2020, I. Perepelitsa

Page 4 of 62.Every bird can fly.3. 2020, I. Perepelitsa

Page 5 of 6Translating from English into Logical ExpressionsExamples: Translate the statements into the logical symbols. Let be in set of all studentsin this class.1. Someone in your class can speak Hindi.2. Everyone in your class is friendly.3. There is a student in your class who was not born in California.π»β€œπ‘’π‘Žπ‘˜ 𝐻𝑖 𝑑𝑖”, πΉβ€œπ‘– 𝑓 𝑖𝑒 𝑑𝑙 , ” πΆβ€œπ‘Ž 𝑏𝑖 πΆπ‘Žπ‘™π‘–π‘“π‘–π‘Ž. ”Example: Translate the follo ing sentence into predicate logic and give its negationEver student in this class has taken a course in JavaSol ionFirst decide on the domain USol ion If U is all students in this class define a propositional function J xdenoting has taken a course in Java and translate asSol ion But if U is all people also define a propositional function Sis a student in this class and translate asdenoting 2020, I. Perepelitsa

Page 6 of 6E ample Translate the follo ing sentence into predicate logicSome student in this class has taken a course in JavaSol ionFirst decide on the domain USol ionIf U is all students in this class translate asSol ionBut if U is all people then translate as 2020, I. Perepelitsa

Discrete Mathematics Predicates and Quantifiers Predica es Propositional logic is not enough to express the meaning of all statements in mathematics and natural language. Examples: Is Γ² T P1 Γ³ True or False . Γ²Ever student in this class has taken a course in Java Γ³ So