Suppose that $G(U,W)$ is a bipartite graph. Show that if $$d:= \max \{|S|-|T_s|: S \subseteq U \} \geq 0,$$ where $T_s = \{ w \in W: w \: \text{adjacent to some} \: s \in S\},$ then a maximum size matching in $G(U,W)$ has size $|U| -d$.
I've noticed that the case $d=0$ is Hall's condition, as we can take $S = \emptyset$.
But I'm not too sure how to prove the thing they're asking
Hint:
I hope this helps $\ddot\smile$