----
> [!definition] Definition. ([[complement of a linear subspace]])
> Let $X$ be a [[vector space]] and let $Y$ be a [[linear subspace]] of $X$.
>
We say that $Y$ is **(algebraically) complemented in $X$** if there exists a further [[linear subspace]] $Z$ of $X$ such that $X= Y\oplus Z$ as a [[direct sum of vector spaces|(algebraic) direct sum]]. In this case $Z$ is said to be an **algebraic complement of $Y$**. It follows from [[Zorn's lemma]] that every [[linear subspace]] is algebraically complemented.
>
If $X$ is in fact a [[topological vector space]], we say $Y$ is **(topologically) complemented** in $X$ if there exists a further [[linear subspace]] $Z$ of $X$ such that $X=Y \oplus Z$ as a [[TVS direct sum|topological direct sum]]. We call $Z$ a **(topological) complement of $Y$**.
>
A complement $Z$ is in general not unique.
>
>
> [!specialization]
> If $X$ is a [[dimension|finite-dimensional]] [[topological vector space|TVS]] the two notions coincide.[^7]
^specialization
[^7]: Since all the linear maps characterizing the [[TVS direct sum|topological direct sum]], being [[characterizing continuity of linear maps|being]] [[linear map|linear maps]] with [[dimension|finite-dimensional]] source, are automatically [[continuous]].
>[!equivalence] Equivalence for algebraic complements.
> The space $Y$ is algebraically complemented if and only if $Y=\operatorname{im }P$ for some [[linear projector|linear]] [[projection]] $P \in \operatorname{End}X$; [[linear projector iff induces direct sum decomposition|see here]].
^equivalence
> [!equivalence] Equivalence for topological complements.
> The space $Y$ is topologically complemented if and only if $Y=\operatorname{im }P$ for some [[operator norm|continuous]] [[projection]] $P \in \operatorname{End}X$.
>
> > [!proof]- Proof.
> > This follows from the final equivalence in [[TVS direct sum|topological direct sum]]. To be (too) explicit:
> >
> > If $Y \leq X$ is topologically complemented, then there exists $Z$ such that $X=Y \oplus Z$ as an algebraic direct sum, such that the projections $p_{Y}$, $p_{Z}$ defined in [[TVS direct sum|topological direct sum]] are bounded. We see $Y=\operatorname{im }(y+z \xmapsto{p_{Y}} y)$ is indeed the image of a bounded projection $P=p_{Y}$.
> >
> > Conversely, if $Y=\operatorname{im }P$ for some bounded projection $P \in \operatorname{End}X$, then we already know there exists $Z$ such that $X=Y \oplus Z$; we just need to show that the map $T:Y \oplus Z \to Y+Z$ given by $T(y,z)=y+z$ has continuous inverse. This follows from the formula $T^{-1} x=\big( Px, (I-P)x \big)$
> > and continuity of $P$ and $I-P$.
> >
>
> [!basicproperties]
>
> - It follows from [[Zorn's lemma]] that every every [[linear subspace]] is algebraically complemented.
> - If $X$ is a [[Hausdorff space|Hausdorff]] [[topological vector space|TVS]] (e.g. [[Banach space]]), then any topologically complemented subspace $Y$ is [[closed set|closed]], as is any topological complement $Z$.
> [!proof]- Proof.
>
> As a complemented subspace, $Y=\operatorname{im }P$ for some [[continuous]] $P:X \to X$ satisfying $P^{2}=P$. Then $Y=\operatorname{im }P=\operatorname{ker }(I-P)$. Since $I-P$ is [[continuous]] and $\{ 0 \}$ is [[closed set|closed]] (since $X$ is [[Hausdorff space|Hausdorff]]), $\operatorname{ker }(I-P)=(I-P)^{-1}(\{ 0 \})$ is [[closed set|closed]] as a subset of $X$. Hence $\operatorname{im }P=Y$ is also. Similarly, the complement $Z$ of $Y$ equals $\operatorname{ker }P=P ^{-1}(\{ 0 \})$ and is therefore closed since $P$ is [[continuous]].
- If $X$ is a [[Hilbert space]], the [[Hilbert projection theorem]] implies that *any* [[closed set|closed]] [[linear subspace]] is topologically complemented, and the witnessing [[projection]] can even be taken to be unit-[[norm]]
----
####
----
#### References
> [!backlink]
> ```dataview
> TABLE rows.file.link as "Further Reading"
> FROM [[]]
> FLATTEN file.tags as Tag
> WHERE Tag = "#definition" OR Tag = "#theorem" OR Tag = "#MOC" OR Tag = "#proposition" OR Tag = "#axiom"
> GROUP BY Tag
> ```
> [!frontlink]
> ```dataview
> TABLE rows.file.link as "Further Reading"
> FROM outgoing([[]])
> FLATTEN file.tags as Tag
> WHERE Tag = "#definition" OR Tag = "#theorem" OR Tag = "#MOC" OR Tag = "#proposition" OR Tag = "#axiom"
> GROUP BY Tag
> ```