Skip to content
LeanLearn
Level 3~35 minLean 4

Proving with ∀ and ∃

Play the quantifier game to feel what nested ∀ and ∃ mean, then prove such statements in Lean: take an arbitrary object, name a witness, and use what you know.

You will be able to
  • Read nested quantifiers as a game between a verifier (∃) and an opponent (∀).
  • Prove ∀ statements with intro and ∃ statements by giving a witness.
  • Use ∀ and ∃ hypotheses: apply them to values, unpack witnesses with obtain.

Recommended first: All and some: ∀ and ∃, Proving and using OR. You can start anyway. Nothing is locked.

EncounterActivity 1 of 10

Encounter

"Every number has a bigger one" and "some number is bigger than every number" use the same words in a different order, and one is true while the other is false.

A good way to read such statements is as a game. You defend the statement; an opponent attacks it. At ∀ x the opponent picks x (trying to make the statement fail). At ∃ y you pick y (trying to make it hold). The statement is true exactly when you have a strategy that always wins.

Order matters: in ∀ x, ∃ y you see x before choosing y, so y may depend on x. In ∃ y, ∀ x you must commit to y first.