Skip to content

lia -order fails with non-canonical LE instances #11745

@Rob23oba

Description

@Rob23oba

Prerequisites

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 -order

Expected 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions