lean4-htt/tests/lean/grind/algebra/field_normalization.lean
2025-06-15 03:44:53 +00:00

9 lines
333 B
Text

open Lean.Grind
variable (R : Type u) [Field R]
-- We need to store equalities/disequalities such as `2 = 0` when characteristic is not unknown.
-- The current implementation discards them.
example (a : R) : (2 * a)⁻¹ = a⁻¹ / 2 := by grind
example (a : R) (_ : (2 : R) ≠ 0) : 1 / a + 1 / (2 * a) = 3 / (2 * a) := by grind