lean4-htt/tests/lean/run/grind_lex.lean
Kim Morrison 969136b0d6
feat: add @[grind =] to Prod.lex_def (#9609)
This PR adds `@[grind =]` to `Prod.lex_def`. Note that `omega` has
special handling for `Prod.Lex`, and this is needed for `grind`'s cutsat
module to achieve parity.
2025-07-29 02:45:02 +00:00

12 lines
550 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.

-- From Mathlib.Data.List.Defs
-- These needed `attribute [grind =] Prod.lex_def`
theorem List.permutationsAux.rec.extracted_1 {α : Type u_1} (ts is : List α) :
Prod.Lex (fun x1 x2 ↦ x1 < x2) (fun x1 x2 ↦ x1 < x2) (ts.length + (is.length + 1), ts.length)
(ts.length + 1 + is.length, ts.length + 1) := by
grind
theorem List.permutationsAux.rec.extracted_4 {α : Type u_1} (ts is : List α) :
Prod.Lex (fun x1 x2 ↦ x1 < x2) (fun x1 x2 ↦ x1 < x2) (is.length, is.length)
(ts.length + 1 + is.length, ts.length + 1) := by
grind