









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These lecture notes provide an overview of Predicate Logic, covering the basics of predicate symbols, variables, constants, functional symbols, propositional connectives, quantifiers, and formulas. They are intended for students to review and use to solve Take-home Practice Final problems.
Typology: Study notes
1 / 17
This page cannot be seen from the preview
Don't miss anything!










For example: let
P(y), Q(x,c), R(z), P 1 (x, y, z) be atomic formulas, i.e.
P(x), Q(x,c), R(z), P 1 (x, y, z) ∈ F
Then we form some other formulas out of them as
follows:
(P(y) ∨ ¬Q( x, c) )∈ F
It is a formula with two free variables x, y.
∃x (P(y) ∨ ¬Q( x, c) ) ∈ F
∀y (P(y) ∨ ¬Q( x, c) ) ∈ F
∀y ∃x(P(y) ∨ ¬Q( x, c) ) ∈ F
etc
R(y, c 1 ) for y =1 and P(x, c 2 ) for x > 0 where c 1 and c 2 are constants representing numbers 1 and 0, respectively.
Translation of Mathematical
Statements to Logic
Consider a Mathematical Statement:
∀x ∈ N (x > 0 ∧ ∃y ∈ N (y = 1))
x ∈ N – we translate it as one argument predicate Q(x)
x > 0 – as two argument predicate P(x, c 1 ) , y = 1 – as another two argument predicate R(y, c 2 ) and get
∀Q(x) (P(x, c 1 ) ∧ ∃Q(y) R(y, c 2 ) )
↑ Logic formula with restricted domain quantifiers
But this is not yet a proper logic formula since we cannot have quantifiers ∀Q(x) , ∃Q(y) but only ∀x, ∃x.
∀Q(x), ∃Q(y) are called quantifiers with restricted domain
Restricted Domain Existential Quantifier
∃P(x) Q(x) ≡ ∃x(P(x) ∧ Q(x)) ↑ restricted ↑logic, not restricted
Example (mathematical formulas):
∃ x≠1 (x>0 ⇒ x + y > 5) - restricted
∃x ((x≠1 ) ∧ (x > 0 ⇒ x + y > 5)) - not restricted
↑ P(x, y, c)
English statement: Some students are good. Logic Translation (restricted domain): ∃S(x) G(x)
Predicates are : S(x) – x is a student G(x) – x is good TRANSLATION: ∃x(S(X) ∧ G(x))
Restricted Quantifiers and Quantifiers
Translation for universal quantifier
Restricted Logic (Non-restricted)
∀P(x) Q(x) Ξ ∀x (P(x) ⇒ Q(x))
Example (mathematical)
∀x ∈ N (x= 1 ∨ x< 0) restricted domain
Ξ ∀x (x ∈ N ⇒ ( x= 1 ∨ x< 0) ) – non-restricted
Mathematical statement: x + y = 5
To follow LOGIC formalization we re-write it as = ( + (x, y), 5)
and “translate it” to Predicate Language as P(f(x,y), c)
Given x = 2, x = 1, we get +(2,1) = 3 and the statement:
= (3,5) is FALSE (F)
Predicates always returns logical value F or T
We really need also function symbols (like +, etc..) to translate mathematical statements to logic, even if we could use only relations as functions are special relations
This is why in formal definition of the predicate language we often we have 2 sets of symbols
Translate: Some patients like all doctors
Predicates:
P(x) – x is a patient
D(x) – x is a doctor
L( x,y) – x likes y
∃P(x) ∀D(y) L( x,y)
There is a patient(x), such that for all doctors(y), x likes y
∃x(P(x) ∧ ∀y(D(y) ⇒ L( x,y)))
(by law of quantifiers to be studied later we can “pull out ∀y”)
∃x∀y(P(x) ∧(D(y) ⇒L( x,y)))