lean4-htt/tests/lean/run/grind_order_2.lean
Leonardo de Moura 409daac2cb
fix: Nat adapter in grind order (#10599)
This PR fixes the support for `Nat` in `grind order`. This module uses
the `Nat.ToInt` adapter.
2025-09-28 00:26:37 +00:00

13 lines
516 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.

open Lean Grind
example (a b : Nat) (h : a + b > 5) : (if a + b ≤ 2 then b else a) = a := by
grind -linarith -cutsat -offset (splits := 0)
example (a b c : Nat) : a ≤ b → b ≤ c → c < a → False := by
grind -linarith -cutsat -offset (splits := 0)
example (a b : Nat) : a ≤ 5 → b ≤ 8 → a > 6 b > 10 → False := by
grind -linarith -cutsat -offset (splits := 0)
example (a b c d : Nat) : a ≤ b → b ≤ c → c ≤ d → a ≤ d := by
grind -linarith -cutsat -offset (splits := 0)