ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  odzval Unicode version

Theorem odzval 12382
Description: Value of the order function. This is a function of functions; the inner argument selects the base (i.e., mod  N for some  N, often prime) and the outer argument selects the integer or equivalence class (if you want to think about it that way) from the integers mod  N. In order to ensure the supremum is well-defined, we only define the expression when  A and  N are coprime. (Contributed by Mario Carneiro, 23-Feb-2014.) (Revised by AV, 26-Sep-2020.)
Assertion
Ref Expression
odzval  |-  ( ( N  e.  NN  /\  A  e.  ZZ  /\  ( A  gcd  N )  =  1 )  ->  (
( odZ `  N ) `  A
)  = inf ( { n  e.  NN  |  N  ||  ( ( A ^ n )  - 
1 ) } ,  RR ,  <  ) )
Distinct variable groups:    n, N    A, n

Proof of Theorem odzval
Dummy variables  m  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 5927 . . . . . . . . 9  |-  ( m  =  N  ->  (
x  gcd  m )  =  ( x  gcd  N ) )
21eqeq1d 2202 . . . . . . . 8  |-  ( m  =  N  ->  (
( x  gcd  m
)  =  1  <->  (
x  gcd  N )  =  1 ) )
32rabbidv 2749 . . . . . . 7  |-  ( m  =  N  ->  { x  e.  ZZ  |  ( x  gcd  m )  =  1 }  =  {
x  e.  ZZ  | 
( x  gcd  N
)  =  1 } )
4 oveq1 5926 . . . . . . . . 9  |-  ( n  =  x  ->  (
n  gcd  N )  =  ( x  gcd  N ) )
54eqeq1d 2202 . . . . . . . 8  |-  ( n  =  x  ->  (
( n  gcd  N
)  =  1  <->  (
x  gcd  N )  =  1 ) )
65cbvrabv 2759 . . . . . . 7  |-  { n  e.  ZZ  |  ( n  gcd  N )  =  1 }  =  {
x  e.  ZZ  | 
( x  gcd  N
)  =  1 }
73, 6eqtr4di 2244 . . . . . 6  |-  ( m  =  N  ->  { x  e.  ZZ  |  ( x  gcd  m )  =  1 }  =  {
n  e.  ZZ  | 
( n  gcd  N
)  =  1 } )
8 breq1 4033 . . . . . . . 8  |-  ( m  =  N  ->  (
m  ||  ( (
x ^ n )  -  1 )  <->  N  ||  (
( x ^ n
)  -  1 ) ) )
98rabbidv 2749 . . . . . . 7  |-  ( m  =  N  ->  { n  e.  NN  |  m  ||  ( ( x ^
n )  -  1 ) }  =  {
n  e.  NN  |  N  ||  ( ( x ^ n )  - 
1 ) } )
109infeq1d 7073 . . . . . 6  |-  ( m  =  N  -> inf ( { n  e.  NN  |  m  ||  ( ( x ^ n )  - 
1 ) } ,  RR ,  <  )  = inf ( { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) )
117, 10mpteq12dv 4112 . . . . 5  |-  ( m  =  N  ->  (
x  e.  { x  e.  ZZ  |  ( x  gcd  m )  =  1 }  |-> inf ( { n  e.  NN  |  m  ||  ( ( x ^ n )  - 
1 ) } ,  RR ,  <  ) )  =  ( x  e. 
{ n  e.  ZZ  |  ( n  gcd  N )  =  1 } 
|-> inf ( { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) ) )
12 df-odz 12351 . . . . 5  |-  odZ 
=  ( m  e.  NN  |->  ( x  e. 
{ x  e.  ZZ  |  ( x  gcd  m )  =  1 }  |-> inf ( { n  e.  NN  |  m  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) ) )
13 zex 9329 . . . . . 6  |-  ZZ  e.  _V
1413mptrabex 5787 . . . . 5  |-  ( x  e.  { n  e.  ZZ  |  ( n  gcd  N )  =  1 }  |-> inf ( { n  e.  NN  |  N  ||  ( ( x ^ n )  - 
1 ) } ,  RR ,  <  ) )  e.  _V
1511, 12, 14fvmpt 5635 . . . 4  |-  ( N  e.  NN  ->  ( odZ `  N )  =  ( x  e. 
{ n  e.  ZZ  |  ( n  gcd  N )  =  1 } 
|-> inf ( { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) ) )
1615fveq1d 5557 . . 3  |-  ( N  e.  NN  ->  (
( odZ `  N ) `  A
)  =  ( ( x  e.  { n  e.  ZZ  |  ( n  gcd  N )  =  1 }  |-> inf ( { n  e.  NN  |  N  ||  ( ( x ^ n )  - 
1 ) } ,  RR ,  <  ) ) `
 A ) )
17 oveq1 5926 . . . . . 6  |-  ( n  =  A  ->  (
n  gcd  N )  =  ( A  gcd  N ) )
1817eqeq1d 2202 . . . . 5  |-  ( n  =  A  ->  (
( n  gcd  N
)  =  1  <->  ( A  gcd  N )  =  1 ) )
1918elrab 2917 . . . 4  |-  ( A  e.  { n  e.  ZZ  |  ( n  gcd  N )  =  1 }  <->  ( A  e.  ZZ  /\  ( A  gcd  N )  =  1 ) )
20 oveq1 5926 . . . . . . . . 9  |-  ( x  =  A  ->  (
x ^ n )  =  ( A ^
n ) )
2120oveq1d 5934 . . . . . . . 8  |-  ( x  =  A  ->  (
( x ^ n
)  -  1 )  =  ( ( A ^ n )  - 
1 ) )
2221breq2d 4042 . . . . . . 7  |-  ( x  =  A  ->  ( N  ||  ( ( x ^ n )  - 
1 )  <->  N  ||  (
( A ^ n
)  -  1 ) ) )
2322rabbidv 2749 . . . . . 6  |-  ( x  =  A  ->  { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) }  =  {
n  e.  NN  |  N  ||  ( ( A ^ n )  - 
1 ) } )
2423infeq1d 7073 . . . . 5  |-  ( x  =  A  -> inf ( { n  e.  NN  |  N  ||  ( ( x ^ n )  - 
1 ) } ,  RR ,  <  )  = inf ( { n  e.  NN  |  N  ||  ( ( A ^
n )  -  1 ) } ,  RR ,  <  ) )
25 eqid 2193 . . . . 5  |-  ( x  e.  { n  e.  ZZ  |  ( n  gcd  N )  =  1 }  |-> inf ( { n  e.  NN  |  N  ||  ( ( x ^ n )  - 
1 ) } ,  RR ,  <  ) )  =  ( x  e. 
{ n  e.  ZZ  |  ( n  gcd  N )  =  1 } 
|-> inf ( { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) )
26 reex 8008 . . . . . 6  |-  RR  e.  _V
27 infex2g 7095 . . . . . 6  |-  ( RR  e.  _V  -> inf ( { n  e.  NN  |  N  ||  ( ( A ^ n )  - 
1 ) } ,  RR ,  <  )  e. 
_V )
2826, 27ax-mp 5 . . . . 5  |- inf ( { n  e.  NN  |  N  ||  ( ( A ^ n )  - 
1 ) } ,  RR ,  <  )  e. 
_V
2924, 25, 28fvmpt 5635 . . . 4  |-  ( A  e.  { n  e.  ZZ  |  ( n  gcd  N )  =  1 }  ->  (
( x  e.  {
n  e.  ZZ  | 
( n  gcd  N
)  =  1 } 
|-> inf ( { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) ) `  A )  = inf ( { n  e.  NN  |  N  ||  ( ( A ^ n )  -  1 ) } ,  RR ,  <  ) )
3019, 29sylbir 135 . . 3  |-  ( ( A  e.  ZZ  /\  ( A  gcd  N )  =  1 )  -> 
( ( x  e. 
{ n  e.  ZZ  |  ( n  gcd  N )  =  1 } 
|-> inf ( { n  e.  NN  |  N  ||  ( ( x ^
n )  -  1 ) } ,  RR ,  <  ) ) `  A )  = inf ( { n  e.  NN  |  N  ||  ( ( A ^ n )  -  1 ) } ,  RR ,  <  ) )
3116, 30sylan9eq 2246 . 2  |-  ( ( N  e.  NN  /\  ( A  e.  ZZ  /\  ( A  gcd  N
)  =  1 ) )  ->  ( ( odZ `  N ) `
 A )  = inf ( { n  e.  NN  |  N  ||  ( ( A ^
n )  -  1 ) } ,  RR ,  <  ) )
32313impb 1201 1  |-  ( ( N  e.  NN  /\  A  e.  ZZ  /\  ( A  gcd  N )  =  1 )  ->  (
( odZ `  N ) `  A
)  = inf ( { n  e.  NN  |  N  ||  ( ( A ^ n )  - 
1 ) } ,  RR ,  <  ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 104    /\ w3a 980    = wceq 1364    e. wcel 2164   {crab 2476   _Vcvv 2760   class class class wbr 4030    |-> cmpt 4091   ` cfv 5255  (class class class)co 5919  infcinf 7044   RRcr 7873   1c1 7875    < clt 8056    - cmin 8192   NNcn 8984   ZZcz 9320   ^cexp 10612    || cdvds 11933    gcd cgcd 12082   odZcodz 12349
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2166  ax-14 2167  ax-ext 2175  ax-coll 4145  ax-sep 4148  ax-pow 4204  ax-pr 4239  ax-un 4465  ax-cnex 7965  ax-resscn 7966
This theorem depends on definitions:  df-bi 117  df-3or 981  df-3an 982  df-tru 1367  df-nf 1472  df-sb 1774  df-eu 2045  df-mo 2046  df-clab 2180  df-cleq 2186  df-clel 2189  df-nfc 2325  df-ral 2477  df-rex 2478  df-reu 2479  df-rab 2481  df-v 2762  df-sbc 2987  df-csb 3082  df-un 3158  df-in 3160  df-ss 3167  df-pw 3604  df-sn 3625  df-pr 3626  df-op 3628  df-uni 3837  df-iun 3915  df-br 4031  df-opab 4092  df-mpt 4093  df-id 4325  df-xp 4666  df-rel 4667  df-cnv 4668  df-co 4669  df-dm 4670  df-rn 4671  df-res 4672  df-ima 4673  df-iota 5216  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5922  df-sup 7045  df-inf 7046  df-neg 8195  df-z 9321  df-odz 12351
This theorem is referenced by:  odzcllem  12383  odzdvds  12386
  Copyright terms: Public domain W3C validator