Theory of Surface Reconstruction