We develop a trade model in which productivity presents an arbitrary pattern of correlation. The model approximates the full class of factor demand systems consistent with Ricardian theory. In particular, our framework formalizes Ricardo's insight that countries gain more from trade with...