Handwaving and solutions appealing to complexity & great interconnectedness of things welcome! I'm thinking about it and arriving to opposite conclusions - no wonder, I don't even know what's a good place to start!

I doubt it can be cast as a mathematical problem.Thanks, but I'm looking for mathematical analysis of the such optimal solutions and proofs of their existence. I went through matching problems (stable marriage/Gale-Shapley, etc.) and optimal choice theory, but they don't refer directly to Smith, Hayek and faire tales.
Did Smith think about beneficial solution in Pareto sense, or a solution in which all individuals' needs are "saturated" (loss-less compression algorithms are the kind of optimisation I have in mind)? That's the kind of questions I have on my mind, and once clarified, how I want to approach answering them (mathematically or numerically).