Skip to content

linarith not ignoring irrelevant (in)equalities #2610

@mo271

Description

@mo271

see https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/linarith.20and.20ENNReal and the mwe of @eric-wieser there:

import Mathlib.Tactic.Linarith

example : 01 := by linarith -- ok

example (s : Set ℕ) (h : s = ∅) : 01 :=
by linarith
/-
failed to synthesize
  AddGroup (Set ℕ)
-/

Seems like linarith should ignore (in)equalities in the context it doesn't get.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not workingt-metaTactics, attributes or user commands

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions