lean4-htt/tests/lean/run/grind_lex.lean
Leonardo de Moura 6683d1eb91
chore: add module keyword to grind tests (#10036)
This PR also fixes missing `@[expose]` in grind support definitions.
2025-08-21 22:02:08 +00:00

13 lines
557 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
-- 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