chore: fix signature of perm_insertIdx (#6532)

This commit is contained in:
Kim Morrison 2025-01-05 10:43:23 +11:00 committed by GitHub
parent d22233fc7b
commit 9dcbc330fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -510,7 +510,7 @@ theorem Perm.eraseP (f : α → Bool) {l₁ l₂ : List α}
refine (IH₁ H).trans (IH₂ ((p₁.pairwise_iff ?_).1 H))
exact fun h h₁ h₂ => h h₂ h₁
theorem perm_insertIdx [DecidableEq α] {α} (x : α) (l : List α) {n} (h : n ≤ l.length) :
theorem perm_insertIdx {α} (x : α) (l : List α) {n} (h : n ≤ l.length) :
insertIdx n x l ~ x :: l := by
induction l generalizing n with
| nil =>