English
Vector of length from a list with witness maps to that list under toList: toList (Subtype.mk v P) = v.
Русский
Вектор длины, построенный из списка вместе с доказательством, отображается в этот список через toList: toList(Subtype.mk v P) = v.
LaTeX
$$$\\forall v:\\text{List}(\\alpha),\\forall P:\\text{List.length }v=n,\\ toList(\\text{Subtype.mk }v P)=v$$$
Lean4
/-- Vector of length from a list `v`
with witness that `v` has length `n` maps to `v` under `toList`. -/
@[simp]
theorem toList_mk (v : List α) (P : List.length v = n) : toList (Subtype.mk v P) = v :=
rfl