The theory of industrial replacement