leanprover-community/lean4-metaprogramming-book

310

stars

385

commits

Lean

primary language

Aug 22, 2026

updated

leanprover-community.github.io/lean4-metaprogramming-book/
lean4

README

A Lean 4 Metaprogramming Book

Authors: Arthur Paulino, Damiano Testa, Edward Ayers, Evgenia Karunus, Henrik Böving, Jannis Limperg, Siddhartha Gadgil, Siddharth Bhat

Contributing

The markdown files are generated automatically via mdgen. Thus, if you're going to write or fix content for the book, please do so in the original Lean files inside the lean directory.

Important: since mdgen is so simple, please avoid using comment sections in Lean code blocks with /- ... -/. If you want to insert commentaries, do so with double dashes --.

Building the markdown files

This is not required, but if you want to build the markdown files, you can do so by running lake run mdbuild.

Contributors

(top 30 of 31)

Seasawher

122 commits

arthurpaulino

93 commits

Julian

41 commits

hargoniX

32 commits

leanprover-community/lean4-metaprogramming-book

310

stars

385

commits

Lean

primary language

Aug 22, 2026

updated

leanprover-community.github.io/lean4-metaprogramming-book/
lean4

README

A Lean 4 Metaprogramming Book

Authors: Arthur Paulino, Damiano Testa, Edward Ayers, Evgenia Karunus, Henrik Böving, Jannis Limperg, Siddhartha Gadgil, Siddharth Bhat

Contributing

The markdown files are generated automatically via mdgen. Thus, if you're going to write or fix content for the book, please do so in the original Lean files inside the lean directory.

Important: since mdgen is so simple, please avoid using comment sections in Lean code blocks with /- ... -/. If you want to insert commentaries, do so with double dashes --.

Building the markdown files

This is not required, but if you want to build the markdown files, you can do so by running lake run mdbuild.

Contributors

(top 30 of 31)

Seasawher

122 commits

arthurpaulino

93 commits

Julian

41 commits

hargoniX

32 commits

Languages

Lean

65.9%

JavaScript

29.2%

Handlebars

3.4%