Changelog

leanprover/lean4 · · 4 commits

Lean fixes inductives and speeds LRAT

Kernel inductive checking is fixed, LRAT RAT-step checks are faster, and iterator internals and an Option docstring were cleaned up.

Fix inductive registration order to close a kernel hole (arthur-adjedje1228b8)

add_inductive now type-checks nested inductive applications after rechecking parameters, instead of before constructors are added to the environment. This fixes a non-critical acceptance bug where a constructor could leak into a nested occurrence’s parameters; the new regression test shows the bad declaration is now rejected.

Speed up RAT-step checking in the LRAT checker (hargoniX451d44e)

The LRAT checker’s RAT path now uses cheaper contains checks instead of the previous membership formulation, trimming overhead in a hot verification loop. The result is faster proof checking on RAT-heavy inputs without changing the checker’s behavior.

Hide iterator helper definitions from the public API (TwoFX077a654)

Several iterator construction lemmas and relations were marked private, narrowing what the modules export. This is mostly an API hygiene change for internal finiteness/productivity proofs, with little user-facing impact.

Other misc changes

  • Fixed the Option.or/orElse docstrings (TwoFX82ef3a8)