Introduction to Predicate Logic

Propositional Logic is very helpful for studying propositions, but it has some limitations, it cannot express precisely the meaning of complex statements in mathematics, and it only studies propositions with known truth values.

Predicate logic instead sort of turns it into like a function, so you are able to to actually set up a given scenario for a large number of different inputs if you would like, and then evaluate more complex statements this way

Take for example:

  • All men are mortal
  • Socrates is a man

The natural conclusion here of course, is that Socrates is too mortal because he is a man. Now we cannot express this given a propositional logic, but using predicate logic we actually can:

P(x): if x is a man, then x is mortal for example I think would be right

For math imagine the statement: x squared is equal to four

This is not in fact a proposition because we do not know it’s truth value, instead the proposition has an unknown truth value based on the value of x. We cannot define this with propositional logic, but we can using predicate logic:

P(x): x squared is four

Then something like P(1) has a truth value of false, and then P(2) has a truth value of true.


What are predicates?

Outlines:

  • Predicates
  • Predicates for multiple variables
  • Logical Operations

Definition of a predicate: they are generalizations of propositions, they behave as functions who’s values are T or F depending on their variables. Predicates actually become propositions as soon as their variables are given real concrete values.

So if you have the statement of x squared is equal to 4

  • The variable x, is the subject of the statement, it is the thing that gets set to a value
  • Then you have the statement squared is equal to 4, and this is the actual predicate, and is the property that the subject of the statement has

You can formalize these two ideas with P(x) where you have x as the subject and the P() be the predicate statement, with this you can then change the value of x and then P (the propositional function) then gets an actual truth value and becomes a proposition

A predicate can also have multiple variables take for example the definition of a injective function:

  • P(x, y) = ∀x,y∈R | if f(x) = f(y), then x = y

This is to say that the output of a function f(x) only has one possible input for each possible output. In this case we have the propositional function P which is defined by the entire statement after |, and then the two subjects x, y obviously they are denoted quantifiers for the reason that this is used to describe the injectivity of a function across an entire domain

Pasted image 20261030203928.png

Logical operations actually also apply to predicate logic, and this is because once a given predicate is evaluated it becomes a proposition, so it becomes the same thing really, it just has a greater reach of explanation than simple propositional logic


Quantification

Outlines:

  • Definition of quantifier
  • Existential quantifier
  • Uniqueness quantifier

Quantification expresses the extent to which a predicate is true over a range of elements. They are basically the ideas of “all” and “some”

The two most important quantifiers are:

  • The Universal Quantifier: ∀
  • The Existential Quantifier: ∃

The former is the idea that for all given elements some predicate applies, or something of the sort at the very least. It pretty much just means all in this range. Then you have the ladder, which is basically the negation of the first, it means there exists at least one, or at least one, meaning that there is at the very least a single element in the given range that the predicate applies to.

Some interesting things to note as the lecture goes on, for the universal quantifier ∀, if it is referring to a finite universe of discourse, then it basically is the same as the conjunction as all elements within of that given universe, so basically: ∀xP(x) ↔ P(n1) ∧ P(n2) ∧ ... ∧ P(nk).

Pasted image 20261030205251.png

In tandem then this obviously is negated for the existential quantifier: ∃, where if you have a finite universe of discourse, you are referring to a disjunction of all of the elements within said universe: ∃xP(x) ↔ P(n1) ∨ P(n2) ∨ ... ∨ P(nk).

Pasted image 20261030205358.png

Uniqueness Quantifier:

Uniqueness Quantifier is basically a special case of the existential quantifier, and it basically says: “There exists a unique value x in the universe of discourse such that P(x) is true”

This uses the notation: ∃!xP(x) which is read as “There exists a unique x”

Pasted image 20261030205807.png

It basically seems to refer to the special case of the existential quantifier where it basically says that there is exactly one case where the given predicate is true, and you really do not need it as the regular existential quantifier would equal out to the same thing, but it is more precise and gives more information.


Nested Quantifiers:

Outlines:

  • Nested Quantifiers
  • Binding Variables
  • Logical Operations
  • Order of operators
  • Precedence of quantifiers

Nested Quantifiers so in order to express statements with multiple variables, we use nested quantifiers. A decent example of this is the surjectivity definition of a function:

  • ∀y∈R | ∃x∈R such that y = f(x)

In this case ∃ is the nested quantifier because you basically have to find a quantifier truth value for the outer quantifier. In essence you combine the two for all y as an element of R, there exists at least one x in the set of R such that y = f(x)

Pasted image 20261030210436.png

Binding Variables a variable is set to be bound if it is within the scope of a quantifier, like the above example, and a variable is then called to be free if it is not bound by a quantifier or by particular values:

Pasted image 20261030210539.png

Logical Statements can also be applied to quantified statements, and this basically changes nothing in how they would, the x value just applies to at least a single example or to all examples, that is really all that matters. The quantifiers also all have a higher priority than that of the different logical operations.

As for order, when nested quantifiers are of the SAME type, then the order does NOT matter. However if the two nested quantifiers are of DIFFERENT types, then the order DOES matter.

Pasted image 20261030210806.png

Book Reading:

Read the following pages to consolidate your knowledge of the following topics: the definition of predicates; quantifiers; logical operators; nested quantifiers.

Once you’ve finished the readings, please attempt the following exercises from Rosen (2012): 

  • pp.53 exercises 1, 4, 5 , 7, 16, 
  • pp.54 exercises 21, 25 and 27,
  • pp.56 exercises 43, 45, And 53,
  • pp.64 exercises 1, 2 and 3.

Koshy, pp.32–35.

Once you’ve finished the reading, please attempt the following exercises from Koshy (2004):

  • pp.36–37 exercises 1, 2, 3, 21, 22.