∴LeanProofs
Quantifiers

Give an existence witness

For every natural number n, some natural number m equals n.

Compiled with official native Lean 4.33.1 on 25 November 2026, core library only. The browser checker uses a separately identified experimental fork. Intended-statement comparison, independent axiom audit and mathematical review are pending.

The statement

For every natural number n, some natural number m equals n.

theorem exists_witness (n : Nat) : ∃ m : Nat, m = n := by
  refine ⟨n, ?_⟩
  rfl

Why these steps?

  1. An existential target asks for a particular value and a proof that it has the required property. It does not require every value to work.
  2. The pair notation supplies n as the witness. The placeholder ?_ leaves a proof obligation for the associated equality.
  3. With this witness the equality becomes n = n. rfl closes this reflexive equality.
  4. The domain Nat matters: a witness must have the specified type, and choosing a different witness changes the equality to prove.

Try a variation

Use the same pattern to state a new theorem ∃ m : Nat, m = n + 1. Choose n + 1 as its witness.

A mistake to understand

theorem exists_witness (n : Nat) : ∃ m : Nat, m = n := by
  refine ⟨n + 1, ?_⟩
  rfl

Expected teaching failure, not recorded compiler output: The chosen witness leaves n + 1 = n, which is not a reflexive equality. Choose a witness that satisfies the original property.

Sources & reuse

Native compilation evidence (JSON)

Code and explanation: original LeanProofs teaching content, CC0-1.0. Linked references retain their own licenses. Editorial date: 24 November 2026; independent mathematical review pending.