Theory of industrial safety