lean4-htt/tests/lean/run/grind_Poly_mul_0_bug.lean
Leonardo de Moura d07897fc36
fix: Poly.mul p 0 (#7397)
This PR ensures that `Poly.mul p 0` always returns `Poly.num 0`.
2025-03-08 16:57:13 +00:00

7 lines
139 B
Text

open Int.Linear
def p : Poly := .add 1 1 <| .add 2 0 <| .num 3
/-- info: Int.Linear.Poly.num 0 -/
#guard_msgs (info) in
#eval p |>.mul 0