Hi!
I’m trying to use the hax Lean backend as part of a Rust→hax→Lean verification pipeline, and I need to build the hax Lean prelude against Lean leanprover/lean4:v4.22.0-rc2 (this is the toolchain pinned by CompPoly / mathlib stack in our environment).
Problem: the hax Lean prelude fails to compile on Lean 4.22.0-rc2.
Error (minimal):
error: HaxLib/Hax/Lib.lean:540:2: Case tag 'inv1' not found.
Available tags: 'inv', 'step', 'pre1', 'post.success', 'post.except'
error: HaxLib/Hax/Lib.lean:582:2: Case tag 'inv1' not found.
Available tags: 'inv', 'step', 'pre1', 'post.success', 'post.except'
I also attempted a local patch replacing inv1 with inv, but then Lean reports additional tag mismatches (vc1.step, vc2.pre) and an “invalid constructor ⟨...⟩” error, suggesting a broader incompatibility with the Std.Do.Triple cases/tags in 4.22.
Reproduction steps:
-
Use toolchain leanprover/lean4:v4.22.0-rc2
-
Add the hax Lean prelude (proof-libs/lean) to a lake project as a lean_lib
-
Run lake build → fails in Hax/Lib.lean with the errors above.
Question: is there a pinned Lean version / tag of the hax Lean prelude that is known to work with Lean 4.22.*, or should we treat Lean 4.22 support as WIP?
Happy to provide a minimal repo reproducer if helpful.
Hi!
I’m trying to use the hax Lean backend as part of a Rust→hax→Lean verification pipeline, and I need to build the hax Lean prelude against Lean leanprover/lean4:v4.22.0-rc2 (this is the toolchain pinned by CompPoly / mathlib stack in our environment).
Problem: the hax Lean prelude fails to compile on Lean 4.22.0-rc2.
Error (minimal):
I also attempted a local patch replacing inv1 with inv, but then Lean reports additional tag mismatches (vc1.step, vc2.pre) and an “invalid constructor ⟨...⟩” error, suggesting a broader incompatibility with the Std.Do.Triple cases/tags in 4.22.
Reproduction steps:
Question: is there a pinned Lean version / tag of the hax Lean prelude that is known to work with Lean 4.22.*, or should we treat Lean 4.22 support as WIP?
Happy to provide a minimal repo reproducer if helpful.