Skip to content

Commit ae5722e

Browse files
authored
chore: fix compilation warnings for Foundation.Vorspiel.Vorspiel (#520)
Co-authored-by: euprunin <[email protected]>
1 parent 4c27183 commit ae5722e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Foundation/Vorspiel/Vorspiel.lean

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ lemma vecCons_assoc (a b : α) (s : Fin n → α) :
144144
funext x; cases' x using Fin.cases with x
145145
· simp
146146
· cases x using Fin.lastCases
147-
· simp [Fin.succ_castSucc]
147+
· simp
148148
case cast i =>
149149
simp; simp only [rightConcat_castSucc, Fin.succ_castSucc i, cons_val_succ]
150150

@@ -207,13 +207,13 @@ lemma fun_eq_vec_two {v : Fin 2 → α} : v = ![v 0, v 1] := by
207207

208208
lemma fun_eq_vec_three {v : Fin 3 → α} : v = ![v 0, v 1, v 2] := by
209209
funext x
210-
cases' x using Fin.cases with x <;> simp [Fin.eq_zero]
210+
cases' x using Fin.cases with x <;> simp
211211
cases' x using Fin.cases with x <;> simp [Fin.eq_zero]
212212

213213
lemma fun_eq_vec_four {v : Fin 4 → α} : v = ![v 0, v 1, v 2, v 3] := by
214214
funext x
215-
cases' x using Fin.cases with x <;> simp [Fin.eq_zero]
216-
cases' x using Fin.cases with x <;> simp [Fin.eq_zero]
215+
cases' x using Fin.cases with x <;> simp
216+
cases' x using Fin.cases with x <;> simp
217217
cases' x using Fin.cases with x <;> simp [Fin.eq_zero]
218218

219219
lemma injective_vecCons {f : Fin n → α} (h : Function.Injective f) {a} (ha : ∀ i, a ≠ f i) : Function.Injective (a :> f) := by
@@ -614,7 +614,7 @@ def liftVec : ∀ {n} (f : (Fin n → α) → β),
614614

615615
lemma liftVec_mk {n} (f : (Fin n → α) → β) (h) (v : Fin n → α) :
616616
liftVec f h (Quotient.mk s ∘ v) = f v := by
617-
induction' n with n ih <;> simp [liftVec, empty_eq, Quotient.liftOn_mk]
617+
induction' n with n ih <;> simp [liftVec, empty_eq]
618618
simpa using ih (fun v' => f (vecHead v :> v'))
619619
(fun v₁ v₂ hv => h (vecHead v :> v₁) (vecHead v :> v₂) (Fin.cases (refl _) hv)) (vecTail v)
620620

@@ -704,8 +704,8 @@ lemma ofFn_get_eq_map_cast {n} (g : α → β) (as : List α) {h} :
704704
ofFn (fun i => g (as.get (i.cast h)) : Fin n → β) = as.map g := by
705705
ext i b; simp
706706
by_cases hi : i < n
707-
· simp [hi, List.ofFnNthVal, List.getElem?_eq_getElem (h ▸ hi)]
708-
· simp [hi, List.ofFnNthVal, List.getElem?_eq_none (le_of_not_gt $ h ▸ hi)]
707+
· simp [hi, List.getElem?_eq_getElem (h ▸ hi)]
708+
· simp [hi, List.getElem?_eq_none (le_of_not_gt $ h ▸ hi)]
709709

710710
variable {m : Type _ → Type _} {α : Type _} {β : Type _} [Monad m]
711711

@@ -727,10 +727,10 @@ lemma remove_nil (a : α) : [].remove a = [] := by simp [List.remove]
727727
lemma eq_remove_cons {l : List α} : (ψ :: l).remove ψ = l.remove ψ := by induction l <;> simp_all [List.remove];
728728

729729
@[simp]
730-
lemma remove_singleton_of_ne {φ ψ : α} (h : φ ≠ ψ) : [φ].remove ψ = [φ] := by simp_all [List.remove, Ne.symm];
730+
lemma remove_singleton_of_ne {φ ψ : α} (h : φ ≠ ψ) : [φ].remove ψ = [φ] := by simp_all [List.remove];
731731

732732
lemma mem_remove_iff {l : List α} : b ∈ l.remove a ↔ b ∈ l ∧ b ≠ a := by
733-
simp [List.remove, List.of_mem_filter]
733+
simp [List.remove]
734734

735735
lemma mem_of_mem_remove {a b : α} {l : List α} (h : b ∈ l.remove a) : b ∈ l := by
736736
rw [mem_remove_iff] at h; exact h.1

0 commit comments

Comments
 (0)