Skip to the content.
← Core tactics Index Next: More tactics →

Every tactic either makes progress or produces an error, and the error message is almost always telling you exactly what to do next. Treat it as a diagnostic, not a dead end.

sorry deserves a special mention: it is a placeholder that closes any goal instantly but marks the theorem as unproved. (Lean prints a warning, and any downstream proof depending on it inherits this unproved status.) It should be used constantly while exploring. Writing the skeleton of a multi-step proof with sorry at each unfinished branch, checking that the overall shape type-checks, and then filling in the branches one at a time, is normal practice, not a hack.


← Core tactics Index Next: More tactics →
Try Lean
Lean playground · v1.4.18