I am a computer scientist who is building a 2D collision detection engine that can detect whether or not two arbitrary simple polygons collide/overlap/intersect. Intuitively, one can identify that, for a collision to occur, there must be either an intersection between their edges or one of the polygons must be completely contained in the other. See visual example here
However, I would like to formalise this 'intuition' (which is hopefully correct) using set theory and topology.
The two simple polygons can be represented by two simply connected subsets $A,B$ of $\mathbb{R}^2$.
The conjecture I came up with goes as follows:
$A \cap B = \emptyset \iff \partial A \cap \partial B = \emptyset \land A \not\subset B \land B \not\subset A $
Or in words: A and B do not intersect if and only if their boundaries (i.e. edges) do not intersect and neither one is a subset of the other.
I feel like this is such a simple statement that a proof must already exists somewhere. But my lack of knowledge in this branch of mathematics does not allow me to search effectively for one.
Can someone point me to a proof (if it exists)? I would like be able to reference it.
PS: The closest thing i found is this post, but here they are limited to convex shapes. My conjecture, meanwhile, should hold true for any pair of non-convex simple polygons.
Since you are in two dimensions, here is a (probably overkill) proof. By the Jordan curve theorem, the boundary of one of your polygons divides the plane into two regions. The boundary of the other polygon is a continuous curve, which if it does not intersect the first boundary, must lie completely in one of the two regions. But these possibilities can be ruled out as one of the polygons being contained in the other (or the two being completely disjoint).