lean4-htt/tests/lean/run/string_pos_grind.lean
Markus Himmel 5fb25fff06
feat: grind instances for String.Pos and variants (#11384)
This PR adds the necessary instances for `grind` to reason about
`String.Pos.Raw`, `String.Pos` and `String.Slice.Pos`.
2025-11-26 13:59:01 +00:00

13 lines
327 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
lia
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