Changelog

leanprover/lean4 · · 25 commits

Lean4 lands EPR solver and HTTP fixes

Major EPR tactic work, HTTP RFC compliance fixes, and a libuv-based process spawn rewrite with performance and correctness improvements.

New epr tactic for BitVec-backed EPR solving (hargoniXee37987)

Lean now has an epr tactic that encodes EPR problems into bit-vectors and solves them with bv_decide-based machinery. This adds a new tactic surface plus the normalization, reification, and reflection support needed to make it usable in practice.

EPR support gains instantiation sets, subsort analysis, and symmetry breaking (hargoniX038a012, hargoniX8713280, hargoniX9fad714)

The EPR pipeline got several substantial upgrades: Z3-style instantiation sets for MBQI, a union-find based subsort analysis, and symmetry-breaking modes for the bit-vector encoding. Together these make the solver more expressive and more efficient on realistic problems.

Std.Http is brought closer to the RFCs (algebraic-dev13921a6)

The HTTP stack was fixed in a dozen compliance-sensitive spots across the client, server, URI parsing/rendering, and body streaming code. The change also adds a large set of regression tests, so the module should now behave more predictably against RFC 9110/9112/3986.

IO.Process.spawn is reimplemented on libuv (TwoFX98caf15)

Process spawning now goes through libuv everywhere, replacing the previous implementation. Besides fixing a number of cross-platform bugs, this should make spawning much faster for memory-heavy processes and makes startup failures surface as errors instead of failing silently.

Lake adds downloadCacheService for package builds (tydeuc69626e)

Lake can now fetch package build artifacts from a configured download cache service, not just Reservoir or GitHub releases. That adds a new cache source and new configuration/CLI plumbing, with fallback logic that walks Git history when looking for cached builds.

do finally blocks now reject illegal mut reassignment (sgraf8126545434)

The do elaborator now reports an error if a finally block reassigns mut variables from the surrounding try scope. The diagnostics are more precise too: the error is raised at finally and names the offending variables.

More deprecation-linter exceptions for automation and simp lemmas (TwoFX480f845, TwoFX4046a54, TwoFXb3c0f27, TwoFX25d5d83, TwoFXaacdcb0)

A set of fixes reduces false positives from the deprecation linter, especially around simp/grind lemmas, deprecated instances, and local attributes on deprecated declarations. These changes mostly improve ergonomics for automation without changing runtime behavior.

Other misc changes

  • Performance: faster header validation without building char lists; faster simp/equation-theorem handling; and a small vcgen +jp optimization.
  • Lake/build: canonicalize build-store jobs, clean up Windows ltar handling, and add a few cache/build plumbing tweaks.
  • Misc cleanup: dead-code removal, bundled Beam update, stage0 refresh, and new test infrastructure for deprecated functionality.