The General Theory of Singularity