Mathematical Theory of Entropy door