lean4-htt/tests/lean/run/issue10416.lean
Joachim Breitner 8d418201a6
fix: use with_reducible in deriving_LawfulEq_tactic_step (#10417)
This PR changes the automation in `deriving_LawfulEq_tactic_step` to use
`with_reducible` when asserting the shape of the goal using `change`, so
that we do not accidentally unfold `x == x'` calls here. Fixes #10416.
2025-09-16 16:07:42 +00:00

12 lines
193 B
Text

structure Power where
x : String
k : Nat
deriving BEq, ReflBEq, LawfulBEq
inductive Mon where
| unit
| mult (p : Power)
deriving BEq, ReflBEq
deriving instance LawfulBEq for Mon