Error Reference

Common developer errors explained in plain English — what they mean and how to fix them. Paste your own error →

72 errors across 8 categories
No errors match that search. Try a code (404, 1045) or a keyword (cors, undefined, certificate).

Lean 4

Lean 4 (or Mathlib) rejected a proof or definition, or warned about one. Fix the first error in the file first, and read the goal in the Infoview: what follows ⊢ is what is left to prove.

Declaration uses 'sorry' (Lean 4) Lean accepted the file, but this declaration still contains sorry — a placeholder that sk… Unsolved goals (Lean 4) The tactic proof ended while something was still left to prove; Lean lists each remaining… Type mismatch (Lean 4) A term has a different type from the one Lean needs at that spot — for example a proof of… Application type mismatch (Lean 4) You passed an argument of the wrong type to a function or lemma — Lean names the argument… Unknown identifier (Lean 4) Lean cannot find a definition, lemma or variable with that name in the current scope. Failed to synthesize instance (Lean 4) Lean needed a type class instance (such as Add, Decidable, Inhabited or a Mathlib structu… Don't know how to synthesize placeholder (Lean 4) Lean could not work out the value of an _ or an implicit argument from the context, so th… Fail to show termination (Lean 4) Lean could not prove that your recursive function always stops, so it will not accept it … Maximum recursion depth has been reached (Lean 4) A Lean procedure (elaboration, simp, decide, instance search, macro expansion) nested dee… Deterministic timeout: maximum heartbeats (Lean 4) A command used more than its work budget (maxHeartbeats, 200000 by default) and Lean stop… Consider marking it as 'noncomputable' (Lean 4) Lean tried to compile your definition into runnable code, but it uses something that only… Motive is not type correct (Lean 4) rw tried to replace a term, but other parts of the goal depend on that exact term, so the… rw: did not find the pattern (Lean 4) rw looked for the left-hand side of your equation in the goal and it is not there — at le… Unexpected token; expected term (Lean 4) The parser hit something it did not expect at that position, so Lean could not even read … rfl failed: not definitionally equal (Lean 4) rfl only proves a = b when both sides compute to the same thing; here Lean could not make… simp made no progress (Lean 4) simp ran but none of its lemmas changed the goal (or the hypothesis you pointed it at), s… linarith failed to find a contradiction (Mathlib) Mathlib's linarith could not derive the goal from the hypotheses using linear arithmetic … omega could not prove the goal (Lean 4) The omega decision procedure (linear arithmetic over ℤ and ℕ) found that the goal does no…