The Clauser-Horne-Shimony-Holt inequality (CHSH) is one of the most popular and well-studied witnesses of Bell's theorem, separating classical from quantum correlations. In this work, for every $d\ensuremath{\ge}2$, we present a generalization of the CHSH inequality with the property that maximal violation is achieved uniquely by the maximally entangled state of local dimension d. This provides an avenue for device-independent certification of maximally entangled states of arbitrary local dimension.
A correlation inequality is derived from local realism and a supplementary assumption. Unlike Clauser-Horne (CH) inequality [or Clauser-Horne-Shimony-Holt (CHSH) inequality] which is violated by quantum mechanics by a factor of 2, this inequality is violated by a factor of 1.5. Thus the magnitude of violation of this inequality is approximately 20.7% larger than the magnitude of violation of previous inequalities. Moreover, unlike CH (or CHSH) inequality which requires the measurement of five detection probabilities, the present inequality requires the measurement of only two detection probabilities. This inequality can therefore be used to test locality more simply than CH or CHSH inequality.