•
1 min read
Bazel rules for Lean 4

At Positivesum we write models of our software in Lean and prove them correct. The models generate golden tests: contracts that our implementations in other languages have to pass.

Lean sits in the middle of our build, beside everything else, so we wanted Bazel to build it. rules_lean4 is the ruleset we wrote for that, and it’s now in the Bazel Central Registry as positivesum_rules_lean4.

Lean and Mathlib have carried a lot of our early work; this is something back.