Motivation
Propositional logic treats a complete sentence as one proposition, but it does not expose the structure of “every human is mortal” or “some human dislikes cheese.” Predicate logic adds variables, predicates, and quantifiers so an argument can say which objects are discussed and how many satisfy a condition. This language expresses definitions of primes, prerequisites, functions, and relations without leaving the objects or conditions implicit.
The reliable habit is to read a formula from the outside in. First identify the domain and the scope of each quantifier. Then translate the logical connective inside that scope. When negating, work from the outside inward and preserve every condition attached to a variable.
To formalize the argument about humans and mortality, write , together with , to derive for the named person . The universal premise is instantiated at before the implication is used.
Definitions
Definition
Predicate and proposition
A predicate is a formula whose truth may depend on variables. An occurrence is free when no quantifier controls it. Assigning values to all free variables lets us evaluate the formula under that assignment, but leaves those occurrences syntactically free. Binding every free occurrence with a suitable quantifier produces a closed sentence.
Definition
Domain and assignment
The domain is the set from which quantified variables are chosen. An assignment gives values to free variables; thus with is false when means . In , is bound but is free. Quantifiers control variables locally, so an inner quantifier may reuse a letter without referring to an outer variable with that letter.
The domain is part of the statement. The expression has one natural number solution and two integer, rational, or real solutions. A formula such as is incomplete until its domain is stated or fixed by context. Bounded notation records the domain: and .
Definition
Universal and existential quantifiers
The statement requires for every domain value; requires one allowed witness. A universal proof starts with an arbitrary element, an existential proof checks a particular witness, a universal refutation gives one counterexample, and an existential refutation rules out all candidates.
Worked example
Evaluate a predicate before and after quantifying
Let the bounded domain be , let the ambient domain for assignments be , and let mean . Under the assignment , , the open formula is false. In , is bound but is free, so the formula is syntactically open; this does not imply that its truth must vary with . For example, over the ambient integers, is open for the same syntactic reason but is false for every integer assignment to , since is a counterexample. Returning to the bounded formula, makes false because fails, and is an allowed external assignment even though it is not a bounded witness. Finally, is a proposition: for each , choose . Binding all relevant variables, rather than changing , is what closes the formula.
Reading syntax and scope
The scope of a quantifier is the formula immediately following it, unless parentheses make it larger. In
the outer quantifier controls throughout its parentheses, while the inner one controls only there. Thus is available when choosing , but cannot be used outside. Parentheses make the intended connective scope explicit.
A bound variable is a placeholder whose name can be changed when the replacement is safe: and agree when is absent from the body. Reusing a letter bound in an inner scope can capture outer occurrences and change the truth value.
Proof obligations for quantified claims
Quantifier words determine proof shape. For , write “let be arbitrary” and derive without choosing a convenient value; this is why a proof of injectivity starts with arbitrary . For , announce an allowed candidate and verify membership and . A universal refutation needs one allowed counterexample; an existential refutation must rule out every candidate (or exhaust a finite domain).
For a nested claim, first fixes arbitrary and permits a dependent choice ; chooses one before the arbitrary . Choosing in the second formula proves a different statement.
Conditions, vacuous truth, and counterexamples
An implication in restricts the obligation to students; non-students make it vacuously true. But a non-student can also witness without satisfying , so require when membership is intended. Likewise, expands with antecedent , while requires membership and ; a negated universal needs an element inside where fails.
If the bounded domain is empty, these expansions make the edge case explicit: is true because every implication has a false antecedent, while is false because no conjunction can be true.
Relations and proof obligations
Quantifiers also organize definitions built from several clauses. Writing for , a partial order on requires universal clauses for reflexivity, antisymmetry, and transitivity; an equivalence relation replaces antisymmetry with symmetry. Injectivity is expressed by
Its proof starts with arbitrary and its negation supplies two distinct inputs with equal outputs. Each clause has a clear proof obligation: universal definitions use arbitrary elements, while failed definitions use an explicit counterexample. The English words “only” and “all” must also keep their direction: “only students may submit” is , whereas “all students submit” reverses the implication.
Written in full, the three partial-order obligations are
For an equivalence relation, replace the middle clause by symmetry, . These clauses are an example of several independent universal proof obligations joined by a conjunction.
Negation reverses the quantifier
Theorem
Negating a quantifier
For any predicate over a fixed domain,
Negation flips the outer quantifier and then negates the formula in its scope. It does not change the domain.
Theorem
Bounded quantifiers and De Morgan's laws
Bounded notation is an abbreviation:
Consequently,
Inside a scope, use the propositional laws and . In particular, the negation of is .
Proof sketch or proof idea
The first quantifier law follows directly from what it means for a universal statement to fail: “not every domain element satisfies ” means that at least one domain element makes fail. Similarly, “there is no domain element satisfying ” means every domain element fails .
For a nested formula, apply one law at a time from the outside inward. For example, over a fixed domain,
The counterexample has the same outer as the original universal claim, but for that every possible fails. Stopping after the first flip would leave the second quantifier and its scope wrong.
Keep the domain and track the witness
Worked example
Negate the definition of a prime number
Fix a natural number throughout. The lower bound is essential because 1 is not prime. A standard definition says that every natural divisor of is trivial:
Negate in three steps. First flip the quantifier. Next negate the implication, which keeps its hypothesis and negates its conclusion. Finally apply De Morgan's law:
In English, there is a natural number which divides and is neither 1 nor . That is a concrete non-trivial divisor, exactly the witness needed to show that is not prime. The assumption is a hypothesis of this example, not a condition that should disappear during negation.
Worked example
Negate a course prerequisite statement
Let mean “ is a student,” mean “ enrolls,” and mean “ satisfies the prerequisite.” Consider the statement
The negation is
Its witness is a student who enrolls and does not satisfy the prerequisite. A student who does not enroll is not a counterexample, because the original implication makes no claim about that person. This is why replacing the implication by a conjunction, or dropping the hypothesis while negating, gives the wrong condition.
Worked example
Bounded universal versus bounded existential
The two bounded forms have different connectives. For a set ,
Negating gives
The witness satisfies both requirements. The integer 0 satisfies but fails , so it cannot witness the negation. This example shows why the antecedent of an implication becomes part of a counterexample.
One witness or a choice for each input
Worked example
Quantifier order and dependent witnesses
Over the natural numbers, compare
with
The first is true: after an arbitrary is presented, choose . The choice depends on . The second is false: a proposed fixed natural number is defeated by the allowed choice , for which is false. A proof of the first statement therefore cannot be reused as a proof of the second; it constructs a function of the input rather than one uniform witness.
The finite example makes the same point without an unbounded domain. Let and mean . Then
is true by choosing . But
is false: fails at , while fails at .
Worked example
Safe distribution and permutation of quantifiers
Over a fixed domain, the following identities
follow from the proof obligations. For the first, take an arbitrary : the conjunction is true exactly when both predicates hold for that same element. For the second, a witness for the disjunction lies in one case, and a witness for either case works in reverse. Same-type blocks also commute, but their meanings differ:
The universal statement checks every ordered pair; the existential statement asks for one ordered pair. Neither fact licenses swapping mixed quantifiers. For the crossed failure on , let mean and mean . Then is true while is false. Likewise, is false while is true.
Theorem
Witness transfer
If and , then . Choose a witness with . Instantiating the universal premise at gives , hence ; the same is a witness for the conclusion.
Worked example
Negating a conjunction under existence
The outside-in rules and De Morgan's law give
The final sentence says that every object fails at least one of the two properties; it does not say that every object fails both.
Worked example
Read a bounded-order formula in its stated domain
The formula
says that one value is at least as large as every domain value . Its truth depends on the stated domain, so report the domain with the translation.
Worked example
Different books, different borrowers
Let and be the sets of people and books. The two statements are
and
The first says every book has a borrower; the second says one person borrows all books. With two books, separate borrowers can borrow one each, neither both, so the first is true while the second is false.
“Everyone is reading at least two books” requires distinct book witnesses:
Worked example
Translation with a student domain
Let the domain be all students at a university. If means “ studies mathematics” and means “ passed the exam,” consider these three statements, respectively: every mathematics student passed; at least one student passed; and at least one mathematics student did not pass. Their translations are
The domain supplies “student”; the predicates add the requested properties.
Translate the dependency before the symbols
Worked example
Translate nested conditions into logic
Assume the domain contains students, professors, courses, exams, and questions, and use predicates to restrict each kind of object. The following sentences illustrate three different dependencies.
“Every student has taken at least one mathematics course” becomes
“There is a professor who teaches every course in the department” becomes
“Every exam has a question that every student finds difficult” becomes
The difficult question may depend on the exam, but it must work for every student for that exam. Moving before claims one question works for all exams, a stronger statement.
Diagnose a claim by testing its witnesses
Worked example
Diagnose an incorrect formalization
Consider three errors that change the intended claim. The formula
does not define primality. Keep the intended hypothesis . The witness is natural and does not divide , so the implication is true vacuously; the existential formula is satisfied without checking all divisors. (For , do not use this particular witness: divides .) The prime definition requires .
In fact, witnesses this existential formula for every , since both and hold. The choice highlights the separate vacuous truth under the intended hypothesis.
The formula says that each attends at least one , with the types and dependency left unclear. If the intended statement is that every lecture has a student attending it, write
Finally, allows the deadline to depend on the assignment. A single deadline before which all assignments are submitted is
Each correction makes the dependency order explicit.
Worked example
Rename a bound variable without capture
Bound variable names are local labels. If does not occur anywhere in the body of , replacing the occurrences controlled by that outer quantifier gives the equivalent formula . Occurrences bound by an inner quantifier are left alone. The same rule applies to .
Global absence of the replacement letter from the body is a sufficient safeguard, not a necessary rule. What is necessary is that the renaming avoid capturing an occurrence whose binding or free status changes. On ,
is true because each element has the other element as a witness. Replacing the outer by the already-used produces
which is false: the inner quantifier captures both occurrences. A genuinely fresh gives and preserves the truth conditions.
Worked example
Existence and uniqueness are separate proof obligations
“There exists a unique satisfying ” means both existence and at-most-one:
To prove it, first exhibit one witness and verify . Then let be an arbitrary element of satisfying and prove . To disprove uniqueness, two distinct witnesses are enough. Over , has witnesses and , so existence holds but uniqueness fails. Over , has the single witness : substitution verifies existence, and implies . The statement “my classmate has exactly one friend” uses the same pattern: abbreviates existence plus at-most-one.
Worked example
Translate predicate logic back into English
With people as the domain,
says every person has a distinct friend; the distinctness condition is inside the existential scope.
With a domain containing people and students,
says one person is older than every student. It does not require to be a student unless that predicate is added.
Common mistakes
Common mistake
Do not lose a hypothesis when negating an implication
The negation of is , not and not . For a bounded universal implication, a counterexample must lie in the intended restricted class and fail the conclusion. In the prerequisite example, a non-student or a student who does not enroll cannot witness the negation.
Common mistake
Do not swap mixed quantifiers
Same-type blocks commute over a fixed domain, but for different reasons: checks every pair, whereas needs one pair. Mixed blocks generally cannot be swapped. The finite set with meaning is a concrete counterexample.
Common mistake
A truth table does not enumerate an infinite domain
Predicate logic extends propositional logic. A truth table can track the truth of connectives after particular atomic statements are assigned, but it does not replace a proof over an infinite domain such as . For a universal claim, prove it for an arbitrary element or find one counterexample; for an existential claim, provide or rule out witnesses.
Follow a negation step by step
Use the stepper to move between a quantified statement and its negation. Treat each step as a scope check: flip one quantifier, negate its complete scope, and then simplify the propositional connective. The widget supports the article's reasoning but does not replace the written proof.
Read and try
Negate one quantified statement carefully
The worked sequence reveals one quantifier-negation move at a time.
Example
For every real number x, x^2 >= 0.
- 1. Start with the outer quantifier: “for every x.”
Summary
Quantifiers bind variables over an explicit domain. Free variables need an assignment; bounded universals use implication, bounded existentials use conjunction, and domains stay fixed under negation. Negate outside in, changing to and applying De Morgan's laws and . Order records dependency: permits dependence, while requires a uniform witness. Universal proofs use arbitrary elements, existential proofs use checked witnesses, and uniqueness needs existence plus at-most-one.
Exercises: scope, witnesses, and proof
Exercise 1
Over a fixed domain, negate and simplify completely.
Solution · Hint
Apply the quantifier-negation law one quantifier at a time, then stop only when the connective inside has been negated.
Solution · Model solution
There is an for which every fails .
Exercise 2
Formalize: there is one student who finds at least one question difficult in every exam. Use Student, Exam, Question, and Difficult.
Solution · Hint
Keep the student fixed before choosing an exam; the question may depend on the exam.
Solution · Model solution
The student is chosen before the exam. For each exam, a question can then be chosen for that same student.
Exercise 3
Assume . Why is too weak to define a prime number?
Solution · Hint
Find a natural number for which the implication is true for a vacuous reason.
Solution · Model solution
Under the stated hypothesis , choose . This natural number does not divide , so the implication has a false antecedent and is true. An existential implication therefore does not require all divisors to be trivial; the correct prime definition uses .
Exercise 4
Can a finite truth table by itself decide when the domain is ? State the correct proof alternatives.
Solution · Hint
Separate propositional truth assignments from quantification over domain elements.
Solution · Model solution
No. A truth table handles finitely many truth values of atomic propositions; it does not enumerate all natural numbers. Prove a universal statement for an arbitrary natural number, or refute it with one natural counterexample. For an existential statement, exhibit an allowed witness or show that every candidate fails.
Read this first
For the propositional version of these ideas, review 1.1 Propositional logic.