What is a predicate?
A “predicate” is a statement involving variables over a specified “domain” (set).
Example
What is a predicate? A predicate is a statement involving variables - - PowerPoint PPT Presentation
What is a predicate? A predicate is a statement involving variables over a specified domain (set). Example Domain (set) Predicate Integers ( Z ) S ( x ): x is a perfect square Reals ( R ) G ( x , y ): x > y Computers A ( c ): c
Example
Example
Example
◮ (∃p, ∃c)[S(p, c)]
There is a person sitting on a chair.
◮ (∃c, ∃p)[S(p, c)]
There is a chair with someone sitting on it.
◮ Alternatively: (∃c, p)[S(p, c)] or (∃p, c)[S(p, c)]
◮ (∀p, ∀c)[S(p, c)]
All people are sitting on all chairs.
◮ (∀c, ∀p)[S(p, c)]
All chairs have all people sitting on them.
◮ Alternatively: (∀c, p)[S(p, c)] or (∀p, c)[S(p, c)]
Example
Example
Example
(∃s ∈ S, ∃c ∈ C)[A(s, c) ∧ ¬(∃t ∈ S, ∃d ∈ C)[(t = s) ∧ A(t, d)]] (∃s ∈ S, ∃c ∈ C)[A(s, c) ∧ (∀t ∈ S, ∀d ∈ C)¬[(t = s) ∧ A(t, d)]] (∃s, ∃c ∈ C)[A(s, c) ∧ (∀t ∈ S, ∀d ∈ C)[(t = s) ∧ ¬A(t, d)]] (∃s ∈ S, ∃c ∈ C)[A(s, c) ∧ (∀t ∈ S, ∀d ∈ C)[A(t, d) → (t = s)]]
(∀s, t ∈ S, ∀c, d ∈ C)[(A(s, c) ∧ A(t, d)) → (s = t)]
(∃s, t ∈ S, ∃c, d ∈ C)[A(s, c) ∧ A(t, d) ∧ (s = t)]