lean4-htt/tests/lean/run/grind_module_eqs.lean
Kim Morrison 0f1174d097
chore: use SMul rather than HMul in grind algebra typeclasses (#10095)
This PR modifies the `grind` algebra typeclasses to use `SMul x y`
instead of `HMul x y y`.
2025-08-26 12:23:37 +00:00

38 lines
1.3 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module
open Lean Grind
example [IntModule α] (x y : α) : x - y ≠ 0 - 2 • y → x + y = 0 → False := by
grind
example [IntModule α] (x y : α) : 2 • x + 2 • y ≠ 0 → x + y = 0 → False := by
grind
example [IntModule α] (x y : α) : 2 • x + 2 • y ≠ 0 → 2 • x + 2 • y = 0 → False := by
grind
example [IntModule α] [NoNatZeroDivisors α] (x y : α) : x + y ≠ 0 → 2 • x + 2 • y = 0 → False := by
grind
example [IntModule α] [NoNatZeroDivisors α] (x y z : α) : x + y + z ≠ 0 → 2 • x + 3 • y = 0 → y = 2 • z → False := by
grind
example [IntModule α] [NoNatZeroDivisors α] (x y z : α) : x + y + z ≠ 0 → -3 • y = 2 • x → y = 2 • z → False := by
grind
example [IntModule α] (x y : α) : x + y = 0 → x - y = 0 - 2 • y := by
grind
example [IntModule α] (x y : α) : x + y = 0 → 2 • x + 2 • y = 0 := by
grind
example [IntModule α] (x y : α) : 2 • x + 2 • y = 0 → 2 • x = 0 - 2 • y := by
grind
example [IntModule α] [NoNatZeroDivisors α] (x y : α) : 2 • x + 2 • y = 0 → x = -y := by
grind
example [IntModule α] [NoNatZeroDivisors α] (x y z : α) : 2 • x + 3 • y = 0 → y = 2 • z → x + y + z = 0 := by
grind
example [IntModule α] [NoNatZeroDivisors α] (x y z : α) : -3 • y = 2 • x → y = 2 • z → x + y + z = 0 := by
grind