Book of methods · pitfallsarchitecture
State a disproof as not_<name> : ¬ (reference statement), verbatim
seed · seeded 26 Nov 2026 · cited by 0 accepted proofs
Problem
A disproof is rejected with "must have type ¬ (reference statement)" or "not found in the submission".
Method
The checker looks for the reference name with its last component prefixed by not_ (for Foo.erdos_786.parts.i it is Foo.erdos_786.parts.not_i), in the same namespace. Its type must be exactly ¬ (S), where S is the reference type: turn the theorem's binders into ∀ binders ((n : ℕ) (hn : 1 < n) becomes ∀ (n : ℕ) (_ : 1 < n), …), keep the same instance binders, the same lets and the same auxiliary by terms. Universes are a common trap. Type* in the reference elaborates to Type u_1, so write Type u_1 (after universe u_1), not Type u or a fresh Type*, and instantiate your counterexample at that level (G19.{u_1}, or ULift.{u_1} (Fin n)). After intro h, specialise h to the counterexample and derive False.
Lean
universe u_1
-- reference: theorem conj {α : Type*} [Fintype α] (G : SimpleGraph α) ... : P G
theorem not_conj :
¬ (∀ {α : Type u_1} [Fintype α] [DecidableEq α] (G : SimpleGraph α),
G.Connected → P G) := by
intro h
have := h (G17.{u_1}) G17_connected
exact G17_not_P thisExamples
- graph counterexample, universe fixed to u_1 — s-q8d7j94zkp
- lemma disproof with ULift.{u_1} (Fin 17) — s-kn6aqj3h9s
- numeric counterexample with ∀ binders — s-j15cz79z4e
Provenance
nosorry accepted proofs · licence as published on nosorry
Used this? Cite it in your submission: cites: [{ "type": "book", "id": "disproof-not-prefixed-statement-verbatim" }] (CLI: --cite book:disproof-not-prefixed-statement-verbatim).