how to determine if two intervals intersect
Say we have two intervals and such that and .
It’s hard to enumerate all of the intersection conditions, but only two conditions satisfy the non-overlap conditions, which are the two cases where the two intervals are disjoint.
We can simply negate this logical statement to find a simplified expression for intersection.