Hacker News

Lean4 code formatter

by @reinitctxoffset

Production-worthy formatter for lean4. Right now it copes with important open source libraries on the model of clang-format's configuration, which is a real trick given the partial elaboration you need (with backtracking). But that works. mathlib4 is the final boss, I don't currently even have a plan without per-directory quirks files which is probably a nonstarter.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app