Datasets:

ArXiv:
License:
lean-pfr / PFR /Mathlib /Data /Fin /Basic.lean
cfahlgren1's picture
cfahlgren1 HF Staff
mirror at 1899ce8ed95fc310cce53d4c7ecfa2beb20ebec4
bf6216d verified
Raw History Blame Contribute Delete
493 Bytes
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