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
assume A4: ( p mod 4 = 0 or p mod 4 = 1 or p mod 4 = 2 ) ; :: thesis: contradiction
now
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 INT_3:9;
then p mod 4 <= 0 + 3 by NAT_1:13;
hence p mod 4 = 3 by A3, NAT_1:28; :: thesis: verum