then reconsider A = { k where k is Element of NAT : ( k >0 & (i |^ k)mod p = 1 ) } as non emptySubset of NATby A3; consider a being Element of A; defpred S1[ set ] means $1 in A;
a is Element of NAT
; then A6:
ex kk being Nat st S1[kk]
; consider kk being Nat such that A7:
S1[kk]
and A8:
for n being Nat st S1[n] holds kk <= n
from NAT_1:sch 5(A6); consider k being Element of NAT such that A9:
( k = kk & k >0 & (i |^ k)mod p = 1 )
by A7; take
kk
; :: thesis: ( kk is Element of NAT & kk >0 & (i |^ kk)mod p = 1 & ( for k being Nat st k >0 & (i |^ k)mod p = 1 holds ( 0< kk & kk <= k ) ) )
for k being Nat st k >0 & (i |^ k)mod p = 1 holds kk <= k