content_image/349647.jpg content_image/349646.jpg content_image/349645.jpg content_image/349644.jpg
The summation over the eigenfrequencies is performed by making use of the argument principle (56), which yields the Casimir energy of two parallel gratings on a unit cell of a period Λ and unit length in the y direction: 

<img src='content_image/349647.jpg'>

Here, as was defined in Sec. II, ϕ = 2 πx$_{0}$/ Λ and x$_{0}$ is a lateral displacement of the two gratings. This is an exact expression valid at zero temperature for two arbitrary parallel gratings with equal periods Λ separated by a vacuum gap. 

The Casimir free energy on a unit surface F C for the system of two gratings can be written as follows: 

<img src='content_image/349646.jpg'>

This formula is valid for an arbitrary profile and an arbitrary dielectric permittivity of each grating. 

When one grating has a curvature of the sphere of the radius R ≫ Λ, the lateral Casimir force in this system F C lat can be obtained by combining the use of the PFA for a sphere-plate configuration and the exact formula for the free energy of the two gratings (64): 

<img src='content_image/349645.jpg'>

For the sinusoidally corrugated sphere and plate used in our experiment L = a + A$_{1}$ + A$_{2}$ and the lateral Casimir force is given by 

<img src='content_image/349644.jpg'>

Different methods were developed in grating theory starting with the pioneering work of Rayleigh [72]. For our case of sinusoidal gratings we used the so-called differential method [73]. The integration of the first-order ordinary differential equations (54) with the dielectric permittivity of the generalized plasma-like model (37) in the corrugation region of each grating was based on an explicit Runge-Kutta (4 , 5) formula, the Dormand-Prince pair, and was performed using the Matlab package. Then the reflection matrices R (1) bot and R (2) top were computed. The lateral Casimir force F C lat was computed using Eq. (66) for the experimental 

