lean4-htt/tests/lean/run/string_pos_grind.lean
Kim Morrison c1ad6aa0db
fix: disable order and funCC modules in NoopConfig (#11744)
This PR fixes a bug where `lia` was incorrectly solving goals involving
ordered types like `Rat` that it shouldn't handle. The `lia` tactic is
intended for linear integer arithmetic only.

The fix adds `order := false` and `funCC := false` to `NoopConfig`,
which is the base configuration for `CutsatConfig` (used by `lia`).

Closes
https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/releases.20of.20new.20Lean.20versions/near/564688881

🤖 Prepared with Claude Code

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-13 20:41:12 +00:00

16 lines
418 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.

module
example {p q r : String.Pos.Raw} : p < q → q ≤ r → p < r := by
grind_order
example {p q r : String.Pos.Raw} : p < q → q ≤ r → p < r := by
lia +order
example {s : String} {p q r : s.Pos} : p < q → q ≤ r → p < r := by
lia
example {s : String.Slice} {p q r : s.Pos} : p < q → q ≤ r → p < r := by
lia
example {s : String} {p q : s.Pos} : p ≤ q ↔ p = q p < q := by
lia