let a be Integer; :: thesis: for p being Prime st p > 2 & a gcd p = 1 & a is_quadratic_residue_mod p holds
ex x, y being Integer st
( ((x ^2 ) - a) mod p = 0 & ((y ^2 ) - a) mod p = 0 & not x,y are_congruent_mod p )

let p be Prime; :: thesis: ( p > 2 & a gcd p = 1 & a is_quadratic_residue_mod p implies ex x, y being Integer st
( ((x ^2 ) - a) mod p = 0 & ((y ^2 ) - a) mod p = 0 & not x,y are_congruent_mod p ) )

assume A1: ( p > 2 & a gcd p = 1 & a is_quadratic_residue_mod p ) ; :: thesis: ex x, y being Integer st
( ((x ^2 ) - a) mod p = 0 & ((y ^2 ) - a) mod p = 0 & not x,y are_congruent_mod p )

then consider x being Integer such that
A2: ((x ^2 ) - a) mod p = 0 by Def2;
A3: not x, - x are_congruent_mod p
proof end;
take x ; :: thesis: ex y being Integer st
( ((x ^2 ) - a) mod p = 0 & ((y ^2 ) - a) mod p = 0 & not x,y are_congruent_mod p )

take y = - x; :: thesis: ( ((x ^2 ) - a) mod p = 0 & ((y ^2 ) - a) mod p = 0 & not x,y are_congruent_mod p )
thus ( ((x ^2 ) - a) mod p = 0 & ((y ^2 ) - a) mod p = 0 & not x,y are_congruent_mod p ) by A2, A3; :: thesis: verum