A general theory of the competitive firm under undercertainty