evan's notes
cal 3discreteodeenv systems

On this page

  • Walkthrough
  • Read the final column as a classification
  • Let the subject vary
  • Bind the variable with a quantifier
  • Classifying propositional formulas
  • Why truth tables become expensive
  • Valid arguments and syllogisms
  • Modus ponens
  • Two more valid forms
  • Predicates and universes of discourse
  • Quantifiers, scope, and bound variables
  • Translating “all humans are mortal”
  • Free and bound variables
  • Negating quantified statements
  • Example with nested quantifiers
  • Why the universe matters
  • Restricted quantifiers

Discrete Structures

§6 Tautologies, Predicates, and Quantifiers

Evan Luo · Sep 24, 2026

Discrete Structures

§6 Tautologies, Predicates, and Quantifiers

Evan Luo3 days ago

9 min read

A truth table can tell us more than the value of one formula. Its final column tells us whether the formula can ever be true, whether it can ever be false, and whether an argument is valid. Predicates and quantifiers extend the same true-or-false language to statements about objects in a chosen universe.

Walkthrough

Read the final column as a classification

Start with the completed final column of a truth table.

  • If it contains only 111s, the formula is a tautology.
  • If it contains only 000s, the formula is a contradiction.
  • If it contains both values, the formula is a contingency.

This is useful because validity can also be phrased as a classification problem. Join an argument's premises with ∧\land∧, make that conjunction imply the conclusion, and ask whether the result is a tautology. If it is, there is no truth assignment where all the premises are true and the conclusion is false.

Let the subject vary

A proposition such as “Socrates is mortal” has a truth value. The phrase “is mortal” is different: it becomes true or false only after a subject is supplied. Write

M(x)=“x is mortal.”M(x)=\text{“}x\text{ is mortal.”} M(x)=“x is mortal.”

The symbol xxx is a variable, and MMM is a predicate. Once we choose a subject, M(x)M(x)M(x) becomes a proposition. For example, M(Socrates)M(\text{Socrates})M(Socrates) is true in the intended interpretation.

Bind the variable with a quantifier

A quantifier says how many objects must make a predicate true:

∀x P(x)or∃x P(x).\forall x\,P(x) \qquad\text{or}\qquad \exists x\,P(x). ∀xP(x)or∃xP(x).

The first means “every xxx has property PPP.” The second means “at least one xxx has property PPP.” A universal statement needs every case, so one counterexample disproves it. An existential statement needs only one successful case, called a witness.

Negation swaps these two jobs:

¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x).\neg\forall x\,P(x)\equiv\exists x\,\neg P(x), \qquad \neg\exists x\,P(x)\equiv\forall x\,\neg P(x). ¬∀xP(x)≡∃x¬P(x),¬∃xP(x)≡∀x¬P(x).

In words, “not everyone” means “someone not,” while “there is nobody” means “everyone not.”

Classifying propositional formulas

A propositional formula is satisfiable when at least one truth assignment makes it true. It is falsifiable when at least one assignment makes it false. These properties give three important classes:

Formula classSatisfiable?Falsifiable?Final truth-table column
tautologyyesnoonly 111s
contingencyyesyesboth 000 and 111
contradictionnoyesonly 000s

The following table checks one formula from each class. The implication p⇒qp\Rightarrow qp⇒q is false only when p=1p=1p=1 and q=0q=0q=0.

pppqqq¬p\neg p¬pp∨¬pp\lor\neg pp∨¬pp∧¬pp\land\neg pp∧¬pp⇒qp\Rightarrow qp⇒q
001101
011101
100100
110101

The final columns now classify the formulas:

p∨¬p is a tautology,p∧¬p is a contradiction,p⇒q is a contingency.p\lor\neg p\text{ is a tautology}, \qquad p\land\neg p\text{ is a contradiction}, \qquad p\Rightarrow q\text{ is a contingency}. p∨¬p is a tautology,p∧¬p is a contradiction,p⇒q is a contingency.

Formula classes overlap in one place

Satisfiable and falsifiable formulasTwo overlapping sets classify formulas. Tautologies are satisfiable but not falsifiable, contingencies are both, and contradictions are falsifiable but not satisfiable.
Satisfiable
Falsifiable
Tautologies
p∨¬p
Contingencies
p⇒q
Contradictions
p∧¬p
A contingency has at least one true row and at least one false row. The two non-overlapping regions contain the formulas whose final column never changes.

Why truth tables become expensive

A formula with nnn distinct propositional variables has 2n2^n2n possible truth assignments, so its complete truth table has 2n2^n2n rows. The number of columns depends on how many intermediate expressions we choose to display.

Checking every row is a valid decision procedure, but its cost grows exponentially with nnn. The Boolean satisfiability problem, usually called SAT, asks whether a formula has at least one satisfying assignment. SAT is NP-complete: a polynomial-time algorithm for every SAT instance would prove P=NPP=NPP=NP, while a proof that no such algorithm exists would prove P≠NPP\ne NPP=NP. Logical identities can classify many particular formulas without listing every row, but they do not give a known polynomial-time method for every SAT instance.

Valid arguments and syllogisms

An argument has premises P1,…,PkP_1,\ldots,P_kP1​,…,Pk​ and a conclusion CCC. It is valid when

(P1∧⋯∧Pk)⇒C(P_1\land\cdots\land P_k)\Rightarrow C (P1​∧⋯∧Pk​)⇒C

is a tautology. Validity does not say that the premises are actually true. It says that there is no case where all of them are true and the conclusion is false.

Modus ponens

Modus ponens has the form

p⇒qpq.\frac{p\Rightarrow q\qquad p}{q}. qp⇒qp​.

Its associated formula is

((p⇒q)∧p)⇒q.((p\Rightarrow q)\land p)\Rightarrow q. ((p⇒q)∧p)⇒q.

Logical identities reduce it to true:

((p⇒q)∧p)⇒q≡¬((¬p∨q)∧p)∨q≡(¬(¬p∨q)∨¬p)∨q≡¬(¬p∨q)∨(¬p∨q)≡1.\begin{aligned} ((p\Rightarrow q)\land p)\Rightarrow q &\equiv \neg((\neg p\lor q)\land p)\lor q\\ &\equiv \bigl(\neg(\neg p\lor q)\lor\neg p\bigr)\lor q\\ &\equiv \neg(\neg p\lor q)\lor(\neg p\lor q)\\ &\equiv 1. \end{aligned} ((p⇒q)∧p)⇒q​≡¬((¬p∨q)∧p)∨q≡(¬(¬p∨q)∨¬p)∨q≡¬(¬p∨q)∨(¬p∨q)≡1.​

The last line has the form ¬A∨A\neg A\lor A¬A∨A, so the argument is valid.

Two more valid forms

NamePremisesConclusion
hypothetical syllogismp⇒qp\Rightarrow qp⇒q, q⇒rq\Rightarrow rq⇒rp⇒rp\Rightarrow rp⇒r
modus tollensp⇒qp\Rightarrow qp⇒q, ¬q\neg q¬q¬p\neg p¬p

The second form reasons backward through an implication correctly: if ppp would force qqq, but qqq is false, then ppp cannot be true. This is not the same as the invalid move from p⇒qp\Rightarrow qp⇒q and qqq to ppp.

Predicates and universes of discourse

A universe of discourse, written UUU, is the set of objects currently under discussion. A one-variable predicate is a Boolean-valued function

P:U⟶B,B={0,1}.P:U\longrightarrow\mathbb B, \qquad \mathbb B=\{0,1\}. P:U⟶B,B={0,1}.

The value P(x)=1P(x)=1P(x)=1 means that object xxx has the property; P(x)=0P(x)=0P(x)=0 means that it does not.

For a small universe containing the Greek figures used in the example, define

M(x)=“x is mortal.”M(x)=\text{“}x\text{ is mortal.”} M(x)=“x is mortal.”

Under the intended interpretation,

M(Socrates)=1,M(Zeus)=0.M(\text{Socrates})=1, \qquad M(\text{Zeus})=0. M(Socrates)=1,M(Zeus)=0.

The universe matters. A predicate can be evaluated only on objects in its stated domain, and its truth values depend on the interpretation we chose.

A predicate may have more than one variable. A two-variable predicate on the real numbers has type

L:R2⟶B.L:\mathbb R^2\longrightarrow\mathbb B. L:R2⟶B.

For example, let L(x,y)L(x,y)L(x,y) mean x≤yx\le yx≤y. Then

L(1,2)=1,L(4,2)=0.L(1,2)=1, \qquad L(4,2)=0. L(1,2)=1,L(4,2)=0.

Before values are supplied or variables are quantified, L(x,y)L(x,y)L(x,y) is an open formula rather than a proposition with one fixed truth value.

Quantifiers, scope, and bound variables

The two basic quantifiers are

SymbolNameRead as
∀x\forall x∀xuniversal quantifier“for every xxx” or “for all xxx”
∃x\exists x∃xexistential quantifier“there exists an xxx such that”

Unless a smaller domain is written beside the quantifier, xxx ranges over the chosen universe UUU.

∀x P(x)\forall x\,P(x) ∀xP(x)

is true exactly when P(x)=1P(x)=1P(x)=1 for every x∈Ux\in Ux∈U. One element with P(x)=0P(x)=0P(x)=0 is a counterexample.

∃x P(x)\exists x\,P(x) ∃xP(x)

is true exactly when at least one x∈Ux\in Ux∈U has P(x)=1P(x)=1P(x)=1. Such an element is a witness. The existential statement is false only when P(x)=0P(x)=0P(x)=0 throughout UUU.

A universal statement requires a constant true predicate

Predicate truth values across a universeThe horizontal axis represents the universe U. The predicate P of x stays at truth value one for every element, so the universal statement is true.
0
1
P(x)=1
U
If the line drops to 0 even once, that element is a counterexample to ∀x∈UP(x).

Translating “all humans are mortal”

Let H(x)H(x)H(x) mean “xxx is human” and M(x)M(x)M(x) mean “xxx is mortal.” Then

∀x (H(x)⇒M(x))\forall x\,(H(x)\Rightarrow M(x)) ∀x(H(x)⇒M(x))

says “Every human is mortal.” The implication is important. An object that is not human does not refute the statement; its antecedent H(x)H(x)H(x) is false, so that instance of the implication is true.

Free and bound variables

A quantifier binds occurrences of its variable inside its scope. In

∀x Q(x,y),\forall x\,Q(x,y), ∀xQ(x,y),

xxx is bound, but yyy is still free. The formula may still depend on yyy. In

∀x ∃y Q(x,y),\forall x\,\exists y\,Q(x,y), ∀x∃yQ(x,y),

both variables are bound, so the result is a proposition once the universe and predicate have been interpreted.

Order matters. In general,

∀x ∃y Q(x,y)≢∃y ∀x Q(x,y).\forall x\,\exists y\,Q(x,y) \not\equiv \exists y\,\forall x\,Q(x,y). ∀x∃yQ(x,y)≡∃y∀xQ(x,y).

The first formula may choose a different yyy for each xxx. The second requires one yyy that works for every xxx.

Negating quantified statements

Quantifier negation follows De Morgan's pattern:

¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x).\boxed{\neg\forall x\,P(x)\equiv\exists x\,\neg P(x)}, \qquad \boxed{\neg\exists x\,P(x)\equiv\forall x\,\neg P(x)}. ¬∀xP(x)≡∃x¬P(x)​,¬∃xP(x)≡∀x¬P(x)​.

The first identity says that a universal claim is false exactly when a counterexample exists. The second says that an existential claim is false exactly when every candidate fails.

Example with nested quantifiers

Negate

∀x (P(x)∨∃y Q(x,y)).\forall x\,\bigl(P(x)\lor\exists y\,Q(x,y)\bigr). ∀x(P(x)∨∃yQ(x,y)).

Move the negation inward one layer at a time:

  1. Pass the negation through the universal quantifier, changing ∀x\forall x∀x to ∃x\exists x∃x.
  2. Apply De Morgan's law to the disjunction, changing ∨\lor∨ to ∧\land∧ and negating both parts.
  3. Pass the remaining negation through the existential quantifier, changing ∃y\exists y∃y to ∀y\forall y∀y.
¬∀x (P(x)∨∃y Q(x,y))≡∃x ¬(P(x)∨∃y Q(x,y))≡∃x (¬P(x)∧¬∃y Q(x,y))≡∃x (¬P(x)∧∀y ¬Q(x,y)).\begin{aligned} \neg\forall x\,\bigl(P(x)\lor\exists y\,Q(x,y)\bigr) &\equiv \exists x\,\neg\bigl(P(x)\lor\exists y\,Q(x,y)\bigr)\\ &\equiv \exists x\,\bigl(\neg P(x)\land\neg\exists y\,Q(x,y)\bigr)\\ &\equiv \exists x\,\bigl(\neg P(x)\land\forall y\,\neg Q(x,y)\bigr). \end{aligned} ¬∀x(P(x)∨∃yQ(x,y))​≡∃x¬(P(x)∨∃yQ(x,y))≡∃x(¬P(x)∧¬∃yQ(x,y))≡∃x(¬P(x)∧∀y¬Q(x,y)).​

The final statement says that some xxx fails PPP, and for that same xxx, Q(x,y)Q(x,y)Q(x,y) fails for every yyy.

Why the universe matters

An unrestricted quantified statement can change truth value when its universe changes. For example,

∀x (x>0)\forall x\,(x>0) ∀x(x>0)

is true if U={1,2,3,…}U=\{1,2,3,\ldots\}U={1,2,3,…}, but false if U=RU=\mathbb RU=R because 000 and every negative real number are counterexamples. If your convention includes 000 in N\mathbb NN, the statement is also false over N\mathbb NN. Always state the universe rather than relying on an unstated convention.

Restricted quantifiers

If A⊆UA\subseteq UA⊆U, a quantifier can be restricted to AAA:

∀x∈A P(x)≡∀x (x∈A⇒P(x)),\forall x\in A\,P(x) \equiv \forall x\,(x\in A\Rightarrow P(x)), ∀x∈AP(x)≡∀x(x∈A⇒P(x)),

and

∃x∈A P(x)≡∃x (x∈A∧P(x)).\exists x\in A\,P(x) \equiv \exists x\,(x\in A\land P(x)). ∃x∈AP(x)≡∃x(x∈A∧P(x)).

The connective changes because the two statements have different jobs:

  • A universal restriction uses an implication. Objects outside AAA must not become counterexamples.
  • An existential restriction uses a conjunction. A witness must both belong to AAA and satisfy PPP.

For example,

∀x∈N (x≥0)\forall x\in\mathbb N\,(x\ge0) ∀x∈N(x≥0)

is true under the usual conventions for N\mathbb NN. If the surrounding universe also contains −1-1−1, that object is irrelevant: the expanded implication

−1∈N⇒−1≥0-1\in\mathbb N\Rightarrow -1\ge0 −1∈N⇒−1≥0

has a false antecedent and is therefore true.

Likewise,

∃x∈N (x>9000)\exists x\in\mathbb N\,(x>9000) ∃x∈N(x>9000)

is true because 10,00010{,}00010,000 is a witness. Objects outside N\mathbb NN neither prove nor disprove it.

De Morgan's laws keep the restriction:

¬∀x∈A P(x)≡∃x∈A ¬P(x),\neg\forall x\in A\,P(x) \equiv \exists x\in A\,\neg P(x), ¬∀x∈AP(x)≡∃x∈A¬P(x), ¬∃x∈A P(x)≡∀x∈A ¬P(x).\neg\exists x\in A\,P(x) \equiv \forall x\in A\,\neg P(x). ¬∃x∈AP(x)≡∀x∈A¬P(x).

Source: https://notes.ohevan.com/notes/discrete-structures/06-tautologies-and-predicates

© 2026 Evan Luo. All rights reserved.

Back to Discrete Structures

0 reads

·Last edited Today
  • newsletter

  • about me

  • sponsor

© 2026 Evan Luo. All rights reserved.