Objects, predicates and quantifiers
Previously, variables received 0 or 1. Now x selects an object and P(x) checks a property. Quantifiers express “every” and “at least one”.
Theory
A predicate: a question about an object
The domain contains only the three objects A, B and C. x denotes a selected object; P(x) means “x is red”. Without choosing x, this is a rule with a gap. P(A) is a statement: it is true or false. Colour and shape are independent properties; familiar AND / OR can combine them.
Select A, then B: x and P(x) change, while the objects stay the same. Then choose a different property.
Here x is an object, not a Boolean signal. The predicate’s answer P(x) is what becomes 0 or 1.
∀ means every; ∃ means at least one
∀x P(x) is true when P holds for every object in the domain. ∃x P(x) is true if at least one exists. “At least one” allows two or even all objects. A witness confirms existence; a counterexample refutes “every”.
For red, find witness A and counterexample B. Then select “red OR round”: check every object, not just the selected one. The set buttons compare a mixed case with “all” and “none”.
Satisfy P: A · Fail P: B, C
One witness establishes ∃. Checking ∀ requires every object; one counterexample refutes it. In this finite domain, ∀ acts like AND of all answers and ∃ like OR.
Negation: “not all” is different from “none”
To negate a quantified statement, exchange “every” and “exists” and negate the property. If not all objects are red, at least one is not red. The others may still be red. ≡ means equivalence and ¬ means negation.
Compare both identities on the same objects. Change the property and the set: each identity keeps the same value on both sides.
¬∀x P(x) ≡ ∃x ¬P(x)Not all satisfy P ⇔ some fail PTrue
¬∃x P(x) ≡ ∀x ¬P(x)None satisfy P ⇔ every object fails PFalse
The negation of ∀x P(x) is ∃x ¬P(x). The negation of ∃x P(x) is ∀x ¬P(x). Here ¬ applies to P(x) after the new quantifier.
Two positions: a relation R(x,y)
The predicate now checks a pair. R(x,y) means “an arrow goes from x to y”. Rows choose x; columns choose y. This table describes one relation in this world rather than all possible Boolean inputs. Zero means no arrow, not an unknown value.
Select cell A → B, then B → A. Direction changes the pair. On the diagonal, x and y name the same object; self-loops are allowed.
| From x ↓ To y → | A | B | C |
|---|---|---|---|
| A | |||
| B | |||
| C |
R(A,B) does not imply R(B,A). Both x and y range over the same explicitly displayed domain.
One for each — or one for everybody?
∀x ∃y R(x,y): take any x, then find a y that works for it. Different x may have different answers. ∃y ∀x R(x,y): choose one y that must work for every x. Only the second statement requires a common column of ones.
Compare “Different witnesses” and “One common witness”. In the cycle every row has a one, but no common column exists. Then inspect a world with an empty row.
| From x ↓ To y → | A | B | C |
|---|---|---|---|
| A | |||
| B | |||
| C |
A → B · B → C · C → A
One y works for every x: none
Changing order changes meaning. A common y witnesses every row, but separate witnesses need not coincide. These worlds show a real difference, not merely different notation.
The boundary of this check
We checked this finite domain exhaustively. This verifies this world; it does not prove a claim about all numbers or every possible world.
Checking three even numbers does not prove that all integers are even. A quantifier always refers to a stated domain; changing that domain may change the answer.
What if the domain is empty?
This finite model allows an empty domain. ∃x P(x) is false: no witness exists. ∀x P(x) is true: no counterexample exists. This does not assert that any object exists. Logic textbooks often require a nonempty domain by definition, excluding this case by convention.
Practice
Change the world and check the statements
In properties, Colour and Shape change the object itself; selecting A/B/C only inspects P(x). In relations, selecting a cell adds or removes an arrow. Every statement below refers to that same world.
Satisfy P: A · Fail P: B, C
Games
Choose an activity. Its question, world and answer stay in this card.
We checked this finite domain exhaustively. This verifies this world; it does not prove a claim about all numbers or every possible world.
Next: first proofsWorkshop contents