English
For any finite index set, the equality (List.Vector.mOfFn (λ i, Part.some (f i))) = Part.some (List.Vector.ofFn f) holds, expressing compatibility of partial values with vector construction.
Русский
Для конечного множества индексов верно равенство (List.Vector.mOfFn (λ i, Part.some (f i))) = Part.some (List.Vector.ofFn f), выражающее совместимость частичных значений с конструированием вектора.
LaTeX
$$$\forall n\, \forall f : Fin(n) \to \alpha,\ (\mathrm{List.Vector}.mOfFn (\lambda i. \mathrm{Part}.some (f(i)))) = \mathrm{Part}.some (\mathrm{List.Vector}.ofFn f)$$$
Lean4
@[simp]
theorem mOfFn_part_some {α n} :
∀ f : Fin n → α, (List.Vector.mOfFn fun i => Part.some (f i)) = Part.some (List.Vector.ofFn f) :=
Vector.mOfFn_pure