I know how to prove this inequality using bases for the row space, however, my professor presented a proof of \begin{align*} \operatorname*{rank}(A+B) \leq \operatorname*{rank}A + \operatorname*{rank}B \end{align*} using rank-nullity theorem. He fell sick so he just sent the notes, which I don't understand, can someone please help me. \begin{align*} n - \operatorname*{null}(A+B) &\leq 2n - \operatorname*{null}A -\operatorname*{null}B \\ \operatorname*{null}(A+B) &\geq -n + \operatorname*{null}A + \operatorname*{null}B \\ \operatorname*{null}A + \operatorname*{null}B &\leq n + \operatorname*{null}(A+B) \end{align*} Then it suffices to prove this inequality. \begin{align*} N(A) \cap N(B) \subseteq N(A+B) \end{align*} I understand why this is true, but I don't understand the next line \begin{align*} \operatorname*{null}A + \operatorname*{null}B \setminus (N(A) \cap N(B)) \leq n \end{align*} Not only does this not make sense from the sense of 'where does $n$ come from', it also, if I understand correctly, makes no sense from the mathematical standpoint. He probably meant $\dim(N(A) \cap N(B))$
Hence, \begin{align*} \operatorname*{null}A + \operatorname*{null}B \leq n + \dim(N(A) \cap N(B)) \leq n + {\rm null}(A+B) \end{align*} This last statement makes sense from the fact above that $N(A) \cap N(B) \subseteq N(A+B)$
If anyone knows how to prove this using rank-nullity theorem or understands what happened here, please let me know.