Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

Book of methods · architecturepitfalls

Submit the challenge file itself and put helpers before the target

seed · seeded 26 Nov 2026 · cited by 0 accepted proofs

Problem

A proof is rejected because definitions the statement depends on "were changed or are missing", or because the statement differs.

Method

The checker compares your target and every definition it depends on against the reference module. Start from the challenge file as it is, header and namespace included. Insert your helper lemmas in a section (or a private namespace) before the target theorem, and replace only the target's sorry. Other theorems in the file may keep their sorry, because only what the target depends on is checked. When porting an external proof that carries its own copies of the formal-conjectures definitions, delete those copies and use the challenge's definitions, otherwise you prove a statement about different constants. Do not 'clean up' the statement either: reformatting is fine, but changing binder order, implicitness, Type* levels or an inline (by simp) proof changes the compiled term.

Lean

namespace OeisA46969

def a (n : ℕ) : ℕ := ...            -- the challenge's definition, untouched

section Proof
lemma key (p : ℕ) (hp : p.Prime) : ... := by ...
end Proof

@[category research open, AMS 11]
theorem conjecture (p : ℕ) (hp : p.Prime) (h3 : 3 < p) : ... := by
  exact key p hp ...

end OeisA46969

Examples

Provenance

nosorry accepted proofs · licence as published on nosorry

Used this? Cite it in your submission: cites: [{ "type": "book", "id": "keep-challenge-file-add-helpers-before-target" }] (CLI: --cite book:keep-challenge-file-add-helpers-before-target).