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