Let $G = (V, E)$ be a directed graph. For any subsets $X, Y \subseteq V$ of vertices, let \begin{align} E(X, Y ) := \left\{(u, v) \in E \mid u \in X \text{ and } v \in Y \right\} \end{align} denote the set of edges going from a vertex in $X$ to a vertex in $Y$.
For a subset $A \subseteq V$ of vertices, let $d(A) = \left|E(A, V - A)\right|$ denote the total number of edges exiting $A$ and going to a vertex outside of $A$. Note that, by definition, $d(\varnothing ) = 0$.
Prove that for any directed graph $G = (V, E)$, and for all subsets $A, B \subseteq V$ of its vertices, the following inequality holds: \begin{align} d(A) + d(B) \geq d(A \cap B) + d(A \cup B) . \end{align}
My idea is to take the sets E(A, V −A), E(B, V −B), E(A∪B, V −(A∪B)), and E(A∩B, V − (A ∩ B)) and somehow partition these sets into appropriate parts, to show that the inequality holds. However I'm not sure how to do this?
Consider the disjoint subsets $A\cap B, A-B, B-A, S-A - B$.
Consider an edge that goes from one subset to another distinct subset.
How many times is this edge counted on the LHS?
How many times is this edge counted on the RHS?
Is the first number always larger than or equal to the second number?
IE An edge from $A-B$ to $B-A$ is counted in $d(A)$ but not in $ d(B)$, $d( A \cap B)$, or $d(A \cup B)$, so the edge is counted at least as many times on the LHS as it is on the RHS.
If we can show this for each of these types of edges, then the inequality holds.