The authors establish the fundamental lemma for a relative trace formula. The trace formula compares generic automorphic representations of [italic capitals]GS[italic]p(4) with automorphic representations of [italic capitals]GS(4) which are distinguished with respect to a charac…