




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Friday Four Square! Today at 4:15PM, Outside Gates
What is First-Order Logic? ● First-order logic is a logical system for reasoning about properties of objects. ● Augments the logical connectives from propositional logic with ● predicates that describe properties of objects, and ● functions that map objects to one another, ● quantifiers that allow us to reason about multiple objects simultaneously.
Quantifiers ● A statement of the form ∀ x****. ψ asserts that for every choice of x in our domain, ψ is true. ● A statement of the form ∃ x****. ψ asserts that for some choice of x in our domain, ψ is true. ● The syntax ∀ x ∈ S****. φ ∃ x ∈ S****. φ is allowed for quantifying over sets.
Set Theory “The union of two sets is the set containing all elements of both sets.” ∀ S. ( Set ( S ) → ∀ T. ( Set ( T ) → ∀ x. ( x ∈ S ∪ T ↔ x ∈ S ∨ x ∈ T ) ) )
Set Theory “The intersection of two sets is the set containing all elements of both sets.” ∀ S. ( Set ( S ) → ∀ T. ( Set ( T ) → ∀ x. ( x ∈ S ∩ T ↔ x ∈ S ∧ x ∈ T ) ) )
Relations “ R is a symmetric relation over A .” ∀ a ∈ A. ∀ b ∈ A. ( a R b → b R a )
Relations “ R is an antisymmetric relation over A .” ∀ a ∈ A. ∀ b ∈ A. ( aRb ∧ bRa → a = b )
Negating Quantifiers ● We spent much of Monday's lecture discussing how to negate propositional constructs. ● How do we negate quantifiers?
An Extremely Important Table For any choice of x, P(x) For some choice of x, ¬P(x) When is this true? When is this false? For some choice of x, P(x) For any choice of x, ¬P(x) For any choice of x, ¬P(x) For some choice of x, P(x) For some choice of x, ¬P(x) For any choice of x, P(x) ∀x. P(x) ∃x. P(x) ∀x. ¬P(x) ∃x. ¬P(x)
Negating First-Order Statements ● Use the equivalences ¬∀ x****. φ ≡ ∃ x****. ¬ φ ¬∃ x****. φ ≡ ∀ x****. ¬ φ to negate quantifiers. ● Mechanically: ● Push the negation across the quantifier. ● Change the quantifier from ∀ to ∃ or vice-versa. ● Use techniques from propositional logic to negate connectives.
Analyzing Relations “ R is a binary relation over set A that is not reflexive” ¬∀ a ∈ A. aRa ∃ a ∈ A. ¬ aRa “Some a ∈ A is not related to itself by R .”
A Useful Equivalence ● The following equivalences are useful when negating statements in first-order logic: ¬( p ∧ q ) ≡ p → ¬ q ¬(p → q) ≡ p ∧ ¬q ● These identities are useful when negating statements involving quantifiers. ● ∧ is used in existentially-quantified statements. ● (^) → is used in universally-quantified statements.
Negating Quantifiers ● What is the negation of the following statement? ∃x****. ∀ y****. ( P ( x ) ∧ Q ( y )) ● We can obtain it as follows: ¬∃ x. ∀ y. ( P ( x ) ∧ Q ( y )) ∀x .¬∀ y. ( P ( x ) ∧ Q ( y )) ∀x. ∃ y. ¬( P ( x ) ∧ Q ( y )) ∀ x. ∃ y. ( P ( x ) → ¬ Q ( y ))