The theoretical framework of cosmology is mainly defined by gravity, of which
general relativity is the current model. Recent tests of general relativity
within the \Lambda Cold Dark Matter (CDM) model have found a concordance
between predictions and the observations of the growth rate and clustering of
the cosmic web. General relativity has not hitherto been tested on cosmological
scales independent of the assumptions of the \Lambda CDM model. Here we report
observation of the gravitational redshift of light coming from galaxies in
clusters at the 99 per cent confidence level, based upon archival data. The
measurement agrees with the predictions of general relativity and its
modification created to explain cosmic acceleration without the need for dark
energy (f(R) theory), but is inconsistent with alternative models designed to
avoid the presence of dark matter.Comment: Published in Nature issued on 29 September 2011. This version
includes the Letter published there as well as the Supplementary Information.
23 pages, 7 figure