File size: 493 Bytes
bf6216d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | module
public import Mathlib.Data.Fin.Basic
public section
theorem Fin.cast_bijective {k l : ℕ} (h : k = l) : Function.Bijective (Fin.cast h) := by
subst l; simpa using Function.bijective_id
theorem Fin.cast_surjective {k l : ℕ} (h : k = l) : Function.Surjective (Fin.cast h) :=
(Fin.cast_bijective h).surjective
theorem Fin.forall_fin_three {p : Fin 3 → Prop} : (∀ i, p i) ↔ p 0 ∧ p 1 ∧ p 2 :=
Fin.forall_fin_succ.trans <| and_congr_right fun _ => Fin.forall_fin_two
|