| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-08-12 | 3.4 kB | |
| v1.7.0 source code.tar.gz | 2026-08-12 | 224.7 kB | |
| v1.7.0 source code.zip | 2026-08-12 | 279.9 kB | |
| Totals: 3 Items | 508.0 kB | 0 | |
This update reworks how global Lean options are handled in the (new) global_options, delab_options, mathlib_options, and verbosity fields. It also comes with new machine-readable docs endpoints under /v1/docs, which the MCP server uses to pull instructions for tools before using them.
Removed
- Removed Lean 4.32.0 due to a kernel soundness bug in Lean and replaced with Lean 4.32.2, which patches the bug. Note that although we only remove Lean 4.32.0, this bug affects all prior versions as well.
Added
- Added Lean 4.33.0, and added Lean 4.32.2 as a replacement for Lean 4.32.0.
-
Various additions to options configurations across all tools:
- The
mathlib_optionsfield (previously only oncheck,verify_proof, andhighlight) is now accepted by every tool. It applies to everything the request elaborates. Note that this can change tool behavior; for example, theenable_autoImplicitpass inrepair_proofsis mostly inert with Lean's defaults, but relevant with Mathlib options enabled. - The pretty-printing tools (
normalize,extract_decls,extract_theorems,have2lemma,sorry2lemma,disprove) now accept adelab_optionsfield: Lean pretty-printer options, e.g.{"pp.fieldNotation": false}, applied on top of the options that tool pretty-prints with. Onlypp.*options are accepted. See thedelab_optionsandverbosityfield documentation for each tool for more details. - Every tool now accepts a
global_optionsfield: Lean options, e.g.{"maxHeartbeats": 400000}, applied to everything the request parses and elaborates, on top of the defaults and themathlib_optionspreset. The format is the same asdelab_options, but any registered option can be set, and values may be booleans, integers, or strings to match the type the option was declared with.
- The
-
This documentation is now also served in machine-readable form under
/v1/docs:pages.json(a page manifest in navigation order),all.json(the manifest with each page's source markdown inlined), andraw/{slug}.md(one page's source markdown). See the documentation homepage for examples.
Fixed
verify_proofwithmathlib_optionsenabled now parsesformal_statementwith Mathlib settings as well; previously they only applied tocontent.repair_proofsnow properly counts all time dedicated to file elaboration in theparse_mstiming field, not just the initial parse.- Stray, ambiguous warnings are no longer emitted when a
simplify_theoremsiteration fails and falls back to the last stable version of the file. - Fixed a rare case in
simplify_theoremswhere removing an entire unused tactic sequence could cause the simplification pass to fail in older Lean versions. For example, this request used to fail and return the original content unchanged, because removingnorm_numis invalid. Now, a syntheticskiptactic is inserted to ensure the content re-elaborates cleanly. - Fixed a set of redundant reparses in
extract_declswhen computing each document'scontentfield. Files containing many declarations should now expect a significant speed increase. (Up to 10x faster!)