lean4-htt/tests/lean/run/grind_11539.lean
Leonardo de Moura 6469890178
fix: apply ring normalizer to equalities coming from grind to core to lia (#11613)
This PR ensures we apply the ring normalizer to equalities being
propagated from the `grind` core module to `grind lia`. It also ensures
we use the safe/managed polynomial functions when normalizing.

Closes #11539
2025-12-11 14:32:54 +00:00

11 lines
455 B
Text

example {n a b : Nat}
(this : (b : Int) ^ (n + 1) + ↑(n + 1) * ↑b ^ (n + 1 - 1) * (↑a - ↑b) ≤
(↑b + (↑a - ↑b)) ^ (n + 1)) :
(n + 1) * a * b ^ n ≤ a ^ (n + 1) + n * b * b ^ n := by
grind (splits := 0)
example {n a b : Nat}
(this : (b : Int) ^ (n + 1) + ↑(n + 1) * ↑b ^ (n + 1 - 1) * (↑a - ↑b) ≤
(↑b + (↑a - ↑b)) ^ (n + 1)) :
(n + 1) * a * b ^ n ≤ a ^ (n + 1) + n * b * b ^ n := by
grind