Plan Mode
Draft the theorem/lemma structure needed to prove a larger result.
Topic / proof sketch: $ARGUMENTS
Procedure
- •Research first — search Mathlib and this project to understand what already exists.
- •Work interactively with the user to decompose the proof into lemmas.
- •Write all declarations with
sorryproofs — no filled proofs in this mode. - •Each lemma should be provable independently in ~30 lines or fewer.
- •Verify each
sorry'd statement compiles withlean_diagnostic_messagesbefore moving on. - •Present the full dependency structure: which lemmas feed into which.
Output
A compilable file (or section) of sorry'd declarations with clear names and docstrings. Iterate with the user until the decomposition is right.
Rules
- •Every declaration must compile (with sorry) after writing.
- •Use clear, descriptive names following Mathlib conventions.
- •Include
/-- ... -/docstrings explaining the mathematical content.