CTAN Comprehensive TeX Archive Network

Leanify – A article checked by the Lean proof assistant

This package connects mathematical articles written in with the Leanify proof checker and the Lean proof assistant. It translates mathematical definitions, statements, and proofs supported by its grammar into Lean for formal verification. The same source is used to typeset the article.

The leanify package provides the integration. It loads the required mathematical notation packages and, when shell escape is enabled within a configured Lean project, invokes the checker during compilation. Diagnostic messages are reported as warnings at the corresponding source lines. The status option displays the verification status of labelled results in the margins.

Without shell escape, no external checker is invoked. Without options, the package leaves the typeset article unchanged. Thus, articles can also be compiled without the Lean toolchain, for example on arXiv. Formal verification requires the Lean toolchain and the separate Leanify checker.

Sources/macros/latex/contrib/leanify
Documentation
Home page
Bug tracker
Repository
Version0.3
LicensesApache License, version 2.0
Copyright2026 Markus Rockel
MaintainerMarkus Rockel
TopicsProof
Debug support
Maths
Callback

Download the contents of this package in one zip archive (277.9k).

Community Comments

Loading...

Package Links

Guest Book Sitemap Contact Contact Author