-
Notifications
You must be signed in to change notification settings - Fork 726
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
- Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues - Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries. - Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
lia -order fails to use hypotheses that use non-canonical LE Int instances
Context
Mathlib failures from #11744
Steps to Reproduce
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
lia -orderExpected behavior: lia solves the goal, even without the order module.
Actual behavior: lia only solves the goal if the order module is enabled.
Versions
Lean 4.28.0-nightly-2025-12-20
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
kim-em
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working