lean4-htt/tests/lean/run/grind_11745.lean
Leonardo de Moura 5e24120dba
fix: nonstandard instances in grind and simp +arith (#11758)
This PR improves support for nonstandard `Int`/`Nat` instances in
`grind` and `simp +arith`.

Closes #11745
2025-12-21 17:56:49 +00:00

15 lines
492 B
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.

class Preorder (α : Type u) extends LE α
instance instPreorderInt : Preorder Int where
example (c x : Int) (mx : @LE.le Int instPreorderInt.toLE x c) : x ≤ c := by
grind -order
example (c x : Int) (mx : @LE.le Int instPreorderInt.toLE (x + (-1) * c) 0) : x ≤ c := by
grind -order
example (c x : Int) (mx : @LE.le Int instPreorderInt.toLE x c) : x ≤ c := by
lia -order
example (c x : Int) (mx : @LE.le Int instPreorderInt.toLE (x + (-1) * c) 0) : x ≤ c := by
lia -order