lean4-htt/tests/lean/grind/algebra/nat_module.lean
Kim Morrison d2eb1bc9f5
chore: review of failing grind tests (#10166)
This PR reviews the expected-to-fail-right-now tests for `grind`, moving
some (now passing) tests to the main test suite, updating some tests,
and adding some tests about normalisation of exponents.
2025-08-28 05:24:31 +00:00

14 lines
392 B
Text

open Std Lean.Grind
-- We could solve these problems by embedding the NatModule in its Grothendieck completion.
section NatModule
variable (M : Type) [NatModule M] [AddRightCancel M]
example (x y : M) : 2 • x + 3 • y + x = 3 • (x + y) := by grind
variable [LE M] [IsLinearOrder M] [OrderedAdd M]
example {x y : M} (h : x ≤ y) : 2 • x + y ≤ 3 • y := by grind
end NatModule