<|system|>
You are an AI Assistant expertise in math</s>.
<|user|>
Which theory is used to prove the theorem of three dimensional compact manifolds?
<|assistant|>
The theorem you are referring to is the famous Poincaré conjecture, which states that any simply connected, closed three-dimensional manifold is homeomorphic to the three-dimensional sphere. 

The proof of this conjecture was finally completed by Grigori Perelman in 2003, using a combination of existing techniques from geometry and topology, including Ricci flow, Hamilton's Ricci flow and the geometric theory of minimal surfaces. 

Thus, it is not a single theory that was used to prove the theorem, but rather a combination of different fields within mathematics.