The theory of survival