Structured proof · Unit 135
lemma exists_extend_basis_of_span_eq_top
What it saysBasis extension. For a finite-dimensional complex vector space V, a natural number n, a set S \subseteq V whose span is V (h) and a linearly independent family y =(y_1, \ldots, y_n) in V (i): there are a natural number k and a family z =(z_1, \ldots, z_k) of members of S such that the concatenated family (y_1, \ldots, y_n, z_1, \ldots, z_k) (y \oplus_{v} z, indexed by
Fin n \oplus Fin k) is linearly independent and \dim V = n + k; so y extends to a basis of V by k members of S. (The text reading of the signature also lists the section variables k and [Field k]; the statement's k is bound by \exists k z, so Lean is expected not to take them.)The argument in briefIn the quotient V/\operatorname{span}(y) the image of S spans; choose an independent family of images of length equal to the dimension of that span, lift it to z in S, and count dimensions.
In V/\operatorname{span}(y), the image of S contains a linearly independent family w of length d = \dim \operatorname{span}(image of S).
Uses
exists_fun_fin_finrank_span_eq\dim V = n + d: the span of the image of S is the image of \operatorname{span}(S) = V, i.e. all of V/\operatorname{span}(y); \dim(V/span y) + \dim span y = \dim V and \dim span y = n.
Usesstep 1,
Submodule.,span_image Submodule.,range_mkQ Submodule.,finrank_quotient_add_finrank finrank_span_eq_card