The Logic of Life