This turns out to be a subset of a remarkably elegant result in combinatorics, namely counting integer points inside of polyhedra.
Given a polyhedron P,
S[P](x) = \sum_{m\in P\cap \mathbb{Z}^d} x^m
where for x = (\xi_1,...,\xi_d) and m = (\eta_1,...,\eta_d), x^m = \xi_1^{\eta_1} \xi_2^{\eta_2}... \xi_d^{\eta_d}
is a map from polyhedra which do not contain lines to functions of x. Every such function can be rewritten as a rational function of x which is well-defined everywhere except for a couple of singular points. You can extend this map linearly on the set of linear combinations of indicator functions of polyhedra - [P](x) is the function which equals 1 if x is in P, and 0 if x is not in P. Then you can define S[P](x) for any indicator function of a polyhedron as above which does not contain a line, and this extends linearly to linear combinations of polyhedra and is well-defined. For example, in R2 let P be the top right quadrant (x >= 0, y >= 0), A the set (x>=0, y>= x), B the set (y>=0, x>=y) and C the set (x>=0, x=y). Then
[P] = [A] + - [C]
and you can check (it's trivial in this case) that S[P](x) = S[A](x) + S(x) - S[C](x)
The remarkble part is that the extension of this function to linear combinations of polyhedra without lines means that you have extended it to include polyhedra that contain lines, for example the real line can be written as [x>0=] + [x<= 0] - [x=0]
and it turns out that when you take the rational functions involved you always the corresponding function for a polyhedron containing a line is zero.
This turns out to be important because identities amongst polyhedra that do no contain lines are typically trivial (like that [P] = [A]+-[C]), but when you include lines you can get identities which are geometrically meaningful quantities, plus a bunch of garbage polyhedra containing lines that turn out not to matter