This post is a sequel of An inequality for the dimension of the sum of subspaces, inspired by this famous answer on $\dim(U+V+W)$.
The inequality $$\dim(\sum_{i = 1}^{n} U_i) \le \sum_{r=1}^{n} (-1)^{r+1} \sum_{i_1 < i_2 < \dots < i_r} \dim(\bigcap_{s=1}^{r}U_{i_s}) $$
is an equality for $n \le 2$, is true for $n = 3$ (but not an equality in general, see here), and false for $n \ge 4$ (see the answers of Quid and Darij Grinberg in the first link).
The set of intersections of the form $\bigcap_{s=1}^{r}U_{i_s}$ with $0 \le r \le n$ and $i_1 < i_2 < \dots < i_r$ is a finite poset.
The system is called non-degenerate if the $2^n$ intersections above are $2$-$2$ distinct, which implies that the poset above is a boolean (algebra) lattice $B_n$; for example $B_3$ is :

The counter-examples for the equality at $n=3$ and for the inequality at $n=4$, are both degenerate.
Question: Is the equality (or at least the inequality) true in the non-degenerate case?