Realistic many-body wave functions for diamond-structure silicon are constructed for different values of the Coulomb coupling constant. The coupling-constant-integrated pair correlation function, the exchange-correlation hole, and the exchange-correlation energy density are calculated and compared with those obtained from the local density and average density approximations. We draw conclusions about the reasons for the success of the local density approximation and suggest a method for testing the effectiveness of exchange-correlation functionals. [S0031-9007(97) The standard computational tool of electronic-structure theory for solids is the local density approximation (LDA) within density-functional theory [1,2]. This has been applied successfully to systems, including those with quite rapidly varying densities, even though the LDA is based on approximating the system as locally homogeneous. However, when discrepancies between experiment and theory in solids arise it is difficult to improve upon the LDA systematically, although several schemes have been devised [3,4]. Since there is currently limited guidance for making improvements, we have used coupling constant integration and variational quantum Monte Carlo (VMC) techniques to calculate the quantities of central importance in density functional theory for a realistic inhomogeneous anisotropic solid. We have calculated the coupling-constant-integrated pair correlation function, the exchange-correlation hole, and the exchange-correlation energy density of diamond-structure silicon. In this Letter we describe our approach along with the insights gained by comparing these quantities with those from the LDA and the average density approximation (ADA) [3].In Kohn-Sham density functional theory there is an exact relationship [5] between the exchange-correlation energy, E xc , and the ground state many-electron wave functions C l associated with the different values of the Coulomb-coupling constant, l. The electronic density of each C l must equal the density at full coupling ͑l 1͒. This condition can be ensured by adding an additional external potential y l ͑r͒ to the many-body Hamiltonian in which the electron-electron interaction is multiplied by l. The coupling-constant-integrated pair correlation function g͑r, r 0 ͒, the exchange-correlation hole r xc ͑r, r 0 ͒, and the exchange-correlation energy density e xc ͑r͒ are related by [6] e xc ͑r͒ n͑r͒ 2 Z dr 0 r xc ͑r, r 0 ͒ jr 2 r 0 j ,r xc ͑r, r 0 ͒ n͑r 0 ͒ ͓g͑r, r 0 ͒ 2 1͔ .(2) The total exchange-correlation energy, E xc , is obtained by integrating e xc ͑r͒ over all space. Writing g in terms of its constituent spin componentsyields an equation involving the many-electron wave functions,where N is the number of electrons, n a ͑r͒ is the electronic density for spin a, and x i denotes the ith electron's spatial and spin components. In an unpolarized system such as silicon Eq. (3) reduces to g 1 4 P a,b g ab . Together Eqs. (1)-(4) specify the exact relationship between e xc ͑r͒ and the many-body wave function...