Mathematical Theory of Reliability