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 end;
p mod 3 < 2 + 1 by INT_3:9;
then p mod 3 <= 0 + 2 by NAT_1:13;
hence p mod 3 = 2 by A3, NAT_1:27; :: thesis: verum