English
Evaluating cons at the last index yields the last element of p: (cons x p)(last) = p(last).
Русский
Обращение к последнему индексу конc x p даёт последний элемент хвоста: (cons x p)(last) = p(last).
LaTeX
$$$(\\\\mathrm{cons}(x,p))(\\\\mathrm{Fin.last}) = p(\\\\mathrm{Fin.last})$$$
Lean4
@[simp]
theorem cons_last {α : Fin (n + 2) → Sort*} (x : α 0) (p : ∀ i : Fin n.succ, α i.succ) :
cons x p (.last _) = p (.last _) := by rw [← cons_succ x p]; rfl