let p be Safe Prime; :: thesis: ( p <> 5 implies p mod 4 = 3 )
set k = p mod 4;
consider q being Prime such that
A1: (2 * q) + 1 = p by Def1;
assume A2: p <> 5 ; :: thesis: p mod 4 = 3
A3: now :: thesis: ( not p mod 4 = 0 & not p mod 4 = 1 & not p mod 4 = 2 )
assume A4: ( p mod 4 = 0 or p mod 4 = 1 or p mod 4 = 2 ) ; :: thesis: contradiction
now :: thesis: contradiction
per cases ( p mod 4 = 0 or p mod 4 = 1 or p mod 4 = 2 ) by A4;
end;
end;
hence contradiction ; :: thesis: verum
end;
p mod 4 < 3 + 1 by NAT_D:62;
then p mod 4 <= 0 + 3 by NAT_1:13;
then not not p mod 4 = 0 & ... & not p mod 4 = 3 ;
hence p mod 4 = 3 by A3; :: thesis: verum