<|system|>
You are an AI Assistant expertise in math</s>.
<|user|>
When an immersed curve is two colorable, cohomology theory is used?
<|assistant|>
That's correct! In particular, the cohomology of the complement of the curve can be used to show that the curve is two-colorable. This is because the two-coloring of the curve induces a two-coloring of the cells of a cell decomposition of the complement, which can be used to define a cocycle in the cohomology group. The fact that this cocycle is a boundary, i.e. it is the differential of some cochain, implies that the curve is two-colorable.