[step:Use Hard Lefschetz to isolate the primitive summand]For each integer $m$, write
\begin{align*}
V^m := H^m(X,\mathbb{R}).
\end{align*}
For $m < 0$, set $V^m := \{0\}$. The operator $L$ is the degree-$2$ [linear map](/page/Linear%20Map)
\begin{align*}
L: V^m &\to V^{m+2} \\
\alpha &\mapsto [\omega] \cup \alpha.
\end{align*}
We use the Hard Lefschetz Theorem, which states that for every integer $0 \leq j \leq n$, the map
\begin{align*}
L^{n-j}: V^j \to V^{2n-j}
\end{align*}
is an isomorphism. This is the single external input in the proof; the required cited result is not yet resolved in the wiki: Hard Lefschetz Theorem.
Fix an integer $k$ with $0 \leq k \leq n$. We prove
\begin{align*}
V^k = P^k(X) \oplus L V^{k-2}.
\end{align*}
If $k=0$ or $k=1$, then $V^{k-2}=\{0\}$ by convention. The Hard Lefschetz map
\begin{align*}
L^{n-k}: V^k \to V^{2n-k}
\end{align*}
is an isomorphism. Hence $L^{n-k+1}\alpha = 0$ for $\alpha \in V^k$ would imply
\begin{align*}
L^{n-k}\alpha \in \ker\left(L: V^{2n-k} \to V^{2n-k+2}\right).
\end{align*}
Since $2n-k+2>2n$, the target is zero only when applying one further Lefschetz operator past the top degree. In degrees $0$ and $1$, the primitive space is exactly the kernel prescribed by the definition, so the desired splitting reduces to $V^k=P^k(X)$ when $L V^{k-2}=\{0\}$.
Now assume $2 \leq k \leq n$. By Hard Lefschetz in degree $k-2$, the map
\begin{align*}
L^{n-k+2}: V^{k-2} \to V^{2n-k+2}
\end{align*}
is an isomorphism. In particular, $L:V^{k-2}\to V^k$ is injective, because if $\beta \in V^{k-2}$ and $L\beta=0$, then
\begin{align*}
L^{n-k+2}\beta = L^{n-k+1}(L\beta)=0,
\end{align*}
and the isomorphism $L^{n-k+2}$ forces $\beta=0$.
The restriction of $L^{n-k+1}$ to $L V^{k-2}$ is an isomorphism onto $V^{2n-k+2}$. Indeed, every element of $L V^{k-2}$ has the form $L\beta$ with $\beta \in V^{k-2}$, and
\begin{align*}
L^{n-k+1}(L\beta)=L^{n-k+2}\beta.
\end{align*}
Since $L^{n-k+2}:V^{k-2}\to V^{2n-k+2}$ is an isomorphism, this restriction is bijective.
Therefore
\begin{align*}
P^k(X) \cap L V^{k-2}=\{0\},
\end{align*}
because $P^k(X)$ is the kernel of $L^{n-k+1}:V^k\to V^{2n-k+2}$ while this same map is injective on $L V^{k-2}$.
Finally, because the restriction to $L V^{k-2}$ is surjective, the rank of
\begin{align*}
L^{n-k+1}:V^k\to V^{2n-k+2}
\end{align*}
is $\dim V^{2n-k+2}$. Since $L^{n-k+2}:V^{k-2}\to V^{2n-k+2}$ is an isomorphism, this rank is $\dim V^{k-2}$. The [rank-nullity theorem](/theorems/916) gives
\begin{align*}
\dim P^k(X)
= \dim V^k - \dim V^{k-2}.
\end{align*}
Because $L:V^{k-2}\to V^k$ is injective, $\dim L V^{k-2}=\dim V^{k-2}$. Hence
\begin{align*}
\dim P^k(X)+\dim L V^{k-2}=\dim V^k.
\end{align*}
Together with $P^k(X)\cap L V^{k-2}=\{0\}$, this proves
\begin{align*}
V^k=P^k(X)\oplus L V^{k-2}.
\end{align*}[/step]