Mathematical Foundation toward Artificial Intelligence in Medicine