Discrete Mathematics : Predicate Logic

Contents

What is a propositional function or predicate?

A propositional function or predicate is a sentence that contains one or more variables.

A predicate is neither true nor false.

A predicate becomes a proposition when the variables are substituted with specific values.

The domain of a predicate variable is the set of all values that may be substituted for the variable.

Examples:

Symbol Predicate Domain Propositions
$p(x)$ $x > 5$ $x \in \mathbb{R}$ $p(6), p(-3.6), p(0), \ldots$
$p(x, y)$ $x+y$ is odd $x \in \mathbb{Z}, y \in \mathbb{Z}$ $p(4,5), p(-4,-4), \ldots$
$p(x, y)$ $x^2 + y^2 = 4$ $x \in \mathbb{R}, y \in \mathbb{R}$ $p(-1.7,8.9), p(-\sqrt{3},-1), \ldots$

What is a truth set?

Definition: A truth set of a predicate is the set of all values of the predicate that makes the predicate true

If $p(x)$ is a predicate and $x$ has domain $D$, then the truth set of $p(x)$ is the set of all elements of $D$ that makes $p(x)$ true when the values are substituted for $x$.
Truth set of $p(x) = \{ x \in D ~|~ p(x) \}$

Examples:

Symbol Predicate Domain Truth set
$p(x)$ $x > 5$ $x \in \mathbb{R}$ $\{ p(6), p(13.6), p(5.001), \ldots \}$
$p(x, y)$ $x+y$ is odd $x \in \mathbb{Z}, y \in \mathbb{Z}$ $\{ p(4,5), p(-4,-3), \ldots \}$
$p(x, y)$ $x^2 + y^2 = 4$ $x \in \mathbb{R}, y \in \mathbb{R}$ $\{ p(-2,2), p(-\sqrt{3},-1), \ldots \}$

Predicates to propositions

There are two methods to obtain propositions from predicates
  1. Assign specific values to variables
  2. Add quantifiers

What are quantifiers?

Quantifiers are words that refer to quantities such as "all" or "some" and they tell for how many elements a given predicate is true

Two types of quantifiers:

  1. Universal quantifier $(\forall)$
  2. Existential quantifier $(\exists)$

Universal quantifier $(\forall)$

Definition: Let $p(x)$ be a predicate and $D$ be the domain of $x$. A universal statement is a statement of the form
$\forall x \in D, p(x)$

Forms:

It is true if $p(x)$ is true for each $x$ in $D$; It is false if $p(x)$ is false for at least one $x$ in $D$

A counterexample to the universal statement is the value of $x$ for which $p(x)$ is false

Universal statements Domain Truth value Method
$\forall x \in D, x^2 \ge x$ $D = \{ 1,2,3 \}$ True Method of exhaustion
$\forall x \in \mathbb{R}, x^2 \ge x$ $\mathbb{R}$ False Counterexample
$x = 0.1$

Note that method of exhaustion cannot be used to prove universal statements for infinite sets

Existential quantifier $(\exists)$

Definition: Let $p(x)$ be a predicate and $D$ be the domain of $x$. An existential statement is a statement of the form
$\exists x \in D, p(x)$

Forms:

It is true if $p(x)$ is true for at least one $x$ in $D$;
It is false if $p(x)$ is false for all $x$ in $D$

A counterproof to the existential statement is the proof to show that $p(x)$ is true is for no $x$

Universal statements Domain Truth value Method
$\exists x \in D, x^2 \ge x$ $D = \{ 1,2,3 \}$ True Method of exhaust.
$\exists x \in \mathbb{R}, x^2 \ge x$ $\mathbb{R}$ True Example
$\exists x \in \mathbb{Z}, x + 1 \le x$ $\mathbb{Z}$ False How?

Formal and informal languages

Formal language statement = Mathematical statement using mathematical symbols and variables.
Example: $\forall x \in \mathbb{R}, x^2 \ge 0$

Informal language statement = English statement equivalent to a mathematical statement.
Examples:

Universal conditional statement $(\forall, \rightarrow)$

A universal conditional statement is of the form
$\forall x, \text{ if } p(x) \text{ then } q(x)$

Examples:

Similarly, we can define existential conditional statement $(\exists, \rightarrow)$

Implicit quantification $(\Rightarrow, \Leftrightarrow)$

Definition: Let $p(x)$ and $q(x)$ be predicates and $D$ be the common domain of $x$.
Then implicit quantification symbols $\Rightarrow, \Leftrightarrow$ are defined as:
$p(x) \Rightarrow q(x) \equiv \forall x, p(x) \rightarrow q(x)$
$p(x) \Leftrightarrow q(x) \equiv \forall x, p(x) \leftrightarrow q(x)$

Examples:

Problem: Consider the following predicates.
$q(n)$: $n$ is a factor of 8; $r(n)$: $n$ is a factor of 4; and $s(n)$: $n < 5$ and $n \ne 3$. Domain of $n$ is $\mathbb{Z}^{+}$ (i.e., positive integers). What are the relationships between $q(n)$, $r(n)$, and $s(n)$ using symbols $\Rightarrow$ and $\Leftrightarrow$?

Solution:

Negation of quantified statements $(\sim)$

Definition: Universal statement and existential statement are negations of each other.

$\sim (\forall x \in D, p(x)) \equiv \exists x \in D, \sim p(x)$
$\sim (\exists x \in D, p(x)) \equiv \forall x \in D, \sim p(x)$

Examples:

Negation of universal conditional statements

Definition:
$\sim (\forall x, p(x) \rightarrow q(x)) \equiv \exists x, (p(x) \land \sim q(x))$

Examples:

Relation between quantifiers $(\forall, \exists)$ and $(\land, \lor)$

Universal statements are generalizations of and statements
Existential statements are generalizations of or statements

If $p(x)$ is a predicate and $D = \{x_1, x_2, \ldots, x_n\}$ is the domain of $x$, then
$\forall x \in D, p(x) \equiv p(x_1) \land p(x_2) \land \cdots \land p(x_n)$
$\exists x \in D, p(x) \equiv p(x_1) \lor p(x_2) \lor \cdots \lor p(x_n)$

Vacuous truth of universal statements

Problem: Is this statement true?
"All the balls in the bowl are blue"

Solution:

Definition: A statement of the form
$\forall x \in D$, if $p(x)$ then $q(x)$
is vacuously true or true by default, if and only if $p(x)$ is false for all $x$ in $D$

Universal conditional statements $(\forall x, p(x) \rightarrow q(x))$

Definitions:

Identities:

Formulas:

Definitions:

Examples:

Statements with multiple quantifiers

Problem: What is the interpretation for the following statement?
"There is a person supervising every detail of the production process."

Solution: Ambiguous interpretations:

  1. There is one single person who supervises all the details of the production process.
    $\exists$ person $p$ such that $\forall$ detail $d$, $p$ supervises $d$
  2. For any particular production detail, there is a person who supervises that detail, but there might be different supervisors for different details.
    $\forall$ detail $d$, $\exists$ person $p$ such that $p$ supervises $d$

Interpretations

  1. Statement form:
    $\forall x \in D, \exists y \in E$ such that $P(x, y)$
    Interpretation: Allow someone else to pick whatever element $x$ in $D$ they wish. Then, you must find an element $y$ in $E$ that "works" for that particular $x$.
  2. Statement form:
    $\exists x \in D$ such that $\forall y \in E, P(x, y)$
    Interpretation: Your job is to find one particular $x$ in $D$ that will "work" no matter what $y$ in $E$ anyone might choose to challenge you with.

Example: Tarski world

Tarski world

Write the truth value and provide reasons:

Example: College cafeteria

College cafeteria

Write the informal statements and truth values of the statements and provide reasons.

Translating from informal to formal language

Problems:
  1. Every nonzero real number has a reciprocal.
  2. There is a real number with no reciprocal.
  3. There is a smallest positive integer.
  4. There is no smallest positive real number.

Solutions:

  1. $\forall$ nonzero real numbers $u$, $\exists$ a real number $v$ such that $uv = 1$.
  2. $\exists$ a real number $c$ such that $\forall$ real numbers $d$, $cd \ne 1$.
  3. $\exists$ a positive integer $m$ such that $\forall$ positive integers $n$, $m \le n$.
  4. $\forall$ positive real numbers $x$, $\exists$ a positive real number $y$ such that $y < x$.

Negations of multiply-quantified statements

Definitions:

Example: Tarski world

Tarski world

Problems: Write negations, the truth value of negations and provide reasons.

Order of quantifiers

The order of quantifiers are important when multiple quantifiers are involved

Example 1

Example 2

In Tarski world:

Example 3

Formal logical notation

Definitions:

Tarski world

Predicates

Examples

Write the formal statement and derive the formal negation.

Arguments with Quantified Statements

Universal instantiation

If some property is true of everything in a set, then it is true of any particular thing in the set.

Example:

Rule of inference: Universal modus ponens

Definition: It has the form:

$\forall x$, if $P(x)$ then $Q(x)$
$P(a)$ for a particular $a$
$\therefore Q(a)$

Example:

Rule of inference: Universal modus tollens

Definition: It has the form:
$\forall x$, if $P(x)$ then $Q(x)$
$\sim Q(a)$ for a particular $a$
$\therefore$ $\sim P(a)$

Example:

Fallacy: Converse and inverse errors

Definitions:

Examples of converse error

Using diagrams to test validity

Example 1

All human beings are mortal.
Zeus is not mortal.
$\therefore$ Zeus is not human.$\triangleright$ Valid (Modus tollens)

Venn diagram Zeus example 1 Venn diagram Zeus example 2

Example 2

All human beings are mortal.
Felix is mortal.
$\therefore$ Felix is a human being.$\triangleright$ Invalid (Converse error)

Venn diagram Felix example 1
Venn diagram Felix example 2

Example 3

No polynomial functions have horizontal asymptotes.
This function has a horizontal asymptote.
$\therefore$ This function is not a polynomial function.$\triangleright$ Valid

Venn diagram polynomial example

Form:
$P(x):$ $x$ is a polynomial function
$Q(x):$ $x$ does not have a horizontal asymptote
$\forall x$, if $P(x)$ then $Q(x)$
$\sim Q(a)$ for a particular $a$
$\therefore$ $\sim P(a)$$\triangleright$ Modus tollens