My answer is similar to the one of Dave Tweed, meaning that I put it on a more formal level. I obviously answered later, but I decided to nevertheless post it since someone may find this approach interesting.
The relation you are trying to prove is independent from the structure of the function \$f\$ since it is, as a matter of fact, a tautology. To explain what I mean, I propose a demonstration for a general, correctly formed, Boolean expression \$P\$ in an arbitrary number of Boolean variables, say \$n\in\Bbb N\$, \$y_1,\ldots,y_n\$, where \$y_i\in\{0,1\}\$ for all \$i=1,\ldots,n\$.
We have that \$P(y_1,\ldots,y_n)\in\{0,1\}\$ and consider the following two sets of Boolean values for the \$n\$-dimensional Boolean vector \$(y_1,\ldots,y_n)\$
$$
\begin{align}
Y&=\{(y_1,\ldots,y_n)\in\{0,1\}^n|P(y_1,\ldots,y_n)=1\}\\
\bar{Y}&= \{(y_1,\ldots,y_n)\in\{0,1\}^n|P(y_1,\ldots,y_n)=0\}
\end{align}
$$
These set are a partition of the full set of values the input Boolean vector can assume, i.e. \$Y\cup\bar{Y}=\{0,1\}^n\$ and \$Y\cap\bar{Y}=\emptyset\$ (the empty set), thus
$$
\begin{align}
P(y_1,\ldots,y_n)&=
\begin{cases}
0&\text{if }(y_1,\ldots,y_n)\in \bar{Y}\\
1&\text{if }(y_1,\ldots,y_n)\in Y\\
\end{cases}\\
&\Updownarrow\\
P'(y_1,\ldots,y_n)&=
\begin{cases}
1&\text{if }(y_1,\ldots,y_n)\in \bar{Y}\\
0&\text{if }(y_1,\ldots,y_n)\in Y\\
\end{cases}
\end{align}
$$
therefore we always have
$$
P+P'=1\quad\forall(y_1,\ldots,y_n)\in\{0,1\}^n
$$