leanprover-community / leanprover-community/mathlib4

linarith? fails while linarith finds the proofs

Open
#41,471 2 comments 0 reactions 1 assignee View on GitHub

@sharky564 is already working on this.

Since Aug 23, 2026.

Dominant language
Lean
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Minimal reproducers

Plain linarith proves both of these; linarith? fails with
linarith failed to find a contradiction:

import Mathlib.Tactic.Linarith

example (x y u v : ℚ) (hu : u < v) (hv : v < u) : x < y := by linarith?  -- fails
example (a u v : ℚ) (gu : u < v) (h : a < 0) : a ≤ 0 := by linarith?     -- fails

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.