MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  znval Unicode version

Theorem znval 16779
Description: The value of the ℤ/nℤ structure. It is defined as the quotient ring  ZZ  /  n ZZ, with an "artificial" ordering added to make it a Toset. (In other words, ℤ/nℤ is a ring with an order , but it is not an ordered ring , which as a term implies that the order is compatible with the ring operations in some way.) (Contributed by Mario Carneiro, 14-Jun-2015.) (Revised by Mario Carneiro, 2-May-2016.)
Hypotheses
Ref Expression
znval.z  |-  Z  =  (flds  ZZ )
znval.s  |-  S  =  (RSpan `  Z )
znval.u  |-  U  =  ( Z  /.s  ( Z ~QG  ( S `  { N } ) ) )
znval.y  |-  Y  =  (ℤ/n `  N )
znval.f  |-  F  =  ( ( ZRHom `  U )  |`  W )
znval.w  |-  W  =  if ( N  =  0 ,  ZZ , 
( 0..^ N ) )
znval.l  |-  .<_  =  ( ( F  o.  <_  )  o.  `' F )
Assertion
Ref Expression
znval  |-  ( N  e.  NN0  ->  Y  =  ( U sSet  <. ( le `  ndx ) , 
.<_  >. ) )

Proof of Theorem znval
Dummy variables  f  n  s  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 znval.y . 2  |-  Y  =  (ℤ/n `  N )
2 ovex 6073 . . . . 5  |-  (flds  ZZ )  e.  _V
32a1i 11 . . . 4  |-  ( n  =  N  ->  (flds  ZZ )  e.  _V )
4 ovex 6073 . . . . . 6  |-  ( z 
/.s  ( z ~QG  ( (RSpan `  z
) `  { n } ) ) )  e.  _V
54a1i 11 . . . . 5  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) )  e.  _V )
6 id 20 . . . . . . 7  |-  ( s  =  ( z  /.s  (
z ~QG 
( (RSpan `  z
) `  { n } ) ) )  ->  s  =  ( z  /.s  ( z ~QG  ( (RSpan `  z
) `  { n } ) ) ) )
7 simpr 448 . . . . . . . . . 10  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
z  =  (flds  ZZ ) )
8 znval.z . . . . . . . . . 10  |-  Z  =  (flds  ZZ )
97, 8syl6eqr 2462 . . . . . . . . 9  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
z  =  Z )
109fveq2d 5699 . . . . . . . . . . . 12  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
(RSpan `  z )  =  (RSpan `  Z )
)
11 znval.s . . . . . . . . . . . 12  |-  S  =  (RSpan `  Z )
1210, 11syl6eqr 2462 . . . . . . . . . . 11  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
(RSpan `  z )  =  S )
13 simpl 444 . . . . . . . . . . . 12  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  ->  n  =  N )
1413sneqd 3795 . . . . . . . . . . 11  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  ->  { n }  =  { N } )
1512, 14fveq12d 5701 . . . . . . . . . 10  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
( (RSpan `  z
) `  { n } )  =  ( S `  { N } ) )
169, 15oveq12d 6066 . . . . . . . . 9  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
( z ~QG  ( (RSpan `  z
) `  { n } ) )  =  ( Z ~QG  ( S `  { N } ) ) )
179, 16oveq12d 6066 . . . . . . . 8  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) )  =  ( Z  /.s  ( Z ~QG  ( S `  { N } ) ) ) )
18 znval.u . . . . . . . 8  |-  U  =  ( Z  /.s  ( Z ~QG  ( S `  { N } ) ) )
1917, 18syl6eqr 2462 . . . . . . 7  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  -> 
( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) )  =  U )
206, 19sylan9eqr 2466 . . . . . 6  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
s  =  U )
21 fvex 5709 . . . . . . . . . 10  |-  ( ZRHom `  s )  e.  _V
2221resex 5153 . . . . . . . . 9  |-  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ , 
( 0..^ n ) ) )  e.  _V
2322a1i 11 . . . . . . . 8  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  e.  _V )
24 id 20 . . . . . . . . . . . 12  |-  ( f  =  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  ->  f  =  ( ( ZRHom `  s
)  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) ) )
2520fveq2d 5699 . . . . . . . . . . . . . 14  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( ZRHom `  s
)  =  ( ZRHom `  U ) )
26 simpll 731 . . . . . . . . . . . . . . . . 17  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  ->  n  =  N )
2726eqeq1d 2420 . . . . . . . . . . . . . . . 16  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( n  =  0  <-> 
N  =  0 ) )
2826oveq2d 6064 . . . . . . . . . . . . . . . 16  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( 0..^ n )  =  ( 0..^ N ) )
2927, 28ifbieq2d 3727 . . . . . . . . . . . . . . 15  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  ->  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) )  =  if ( N  =  0 ,  ZZ ,  ( 0..^ N ) ) )
30 znval.w . . . . . . . . . . . . . . 15  |-  W  =  if ( N  =  0 ,  ZZ , 
( 0..^ N ) )
3129, 30syl6eqr 2462 . . . . . . . . . . . . . 14  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  ->  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) )  =  W )
3225, 31reseq12d 5114 . . . . . . . . . . . . 13  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  =  ( ( ZRHom `  U )  |`  W ) )
33 znval.f . . . . . . . . . . . . 13  |-  F  =  ( ( ZRHom `  U )  |`  W )
3432, 33syl6eqr 2462 . . . . . . . . . . . 12  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  =  F )
3524, 34sylan9eqr 2466 . . . . . . . . . . 11  |-  ( ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  (
z ~QG 
( (RSpan `  z
) `  { n } ) ) ) )  /\  f  =  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) ) )  ->  f  =  F )
3635coeq1d 5001 . . . . . . . . . 10  |-  ( ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  (
z ~QG 
( (RSpan `  z
) `  { n } ) ) ) )  /\  f  =  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) ) )  ->  ( f  o.  <_  )  =  ( F  o.  <_  )
)
3735cnveqd 5015 . . . . . . . . . 10  |-  ( ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  (
z ~QG 
( (RSpan `  z
) `  { n } ) ) ) )  /\  f  =  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) ) )  ->  `' f  =  `' F )
3836, 37coeq12d 5004 . . . . . . . . 9  |-  ( ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  (
z ~QG 
( (RSpan `  z
) `  { n } ) ) ) )  /\  f  =  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) ) )  ->  ( (
f  o.  <_  )  o.  `' f )  =  ( ( F  o.  <_  )  o.  `' F
) )
39 znval.l . . . . . . . . 9  |-  .<_  =  ( ( F  o.  <_  )  o.  `' F )
4038, 39syl6eqr 2462 . . . . . . . 8  |-  ( ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  (
z ~QG 
( (RSpan `  z
) `  { n } ) ) ) )  /\  f  =  ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) ) )  ->  ( (
f  o.  <_  )  o.  `' f )  = 
.<_  )
4123, 40csbied 3261 . . . . . . 7  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  ->  [_ ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  /  f ]_ (
( f  o.  <_  )  o.  `' f )  =  .<_  )
4241opeq2d 3959 . . . . . 6  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  ->  <. ( le `  ndx ) ,  [_ ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ , 
( 0..^ n ) ) )  /  f ]_ ( ( f  o. 
<_  )  o.  `' f ) >.  =  <. ( le `  ndx ) ,  .<_  >. )
4320, 42oveq12d 6066 . . . . 5  |-  ( ( ( n  =  N  /\  z  =  (flds  ZZ ) )  /\  s  =  ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) ) )  -> 
( s sSet  <. ( le `  ndx ) , 
[_ ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  /  f ]_ (
( f  o.  <_  )  o.  `' f )
>. )  =  ( U sSet  <. ( le `  ndx ) ,  .<_  >. )
)
445, 43csbied 3261 . . . 4  |-  ( ( n  =  N  /\  z  =  (flds  ZZ ) )  ->  [_ ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) )  /  s ]_ ( s sSet  <. ( le `  ndx ) , 
[_ ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  /  f ]_ (
( f  o.  <_  )  o.  `' f )
>. )  =  ( U sSet  <. ( le `  ndx ) ,  .<_  >. )
)
453, 44csbied 3261 . . 3  |-  ( n  =  N  ->  [_ (flds  ZZ )  /  z ]_ [_ (
z  /.s  ( z ~QG  ( (RSpan `  z
) `  { n } ) ) )  /  s ]_ (
s sSet  <. ( le `  ndx ) ,  [_ (
( ZRHom `  s
)  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  / 
f ]_ ( ( f  o.  <_  )  o.  `' f ) >.
)  =  ( U sSet  <. ( le `  ndx ) ,  .<_  >. )
)
46 df-zn 16748 . . 3  |- ℤ/n =  ( n  e. 
NN0  |->  [_ (flds  ZZ )  /  z ]_ [_ ( z  /.s  ( z ~QG  (
(RSpan `  z ) `  { n } ) ) )  /  s ]_ ( s sSet  <. ( le `  ndx ) , 
[_ ( ( ZRHom `  s )  |`  if ( n  =  0 ,  ZZ ,  ( 0..^ n ) ) )  /  f ]_ (
( f  o.  <_  )  o.  `' f )
>. ) )
47 ovex 6073 . . 3  |-  ( U sSet  <. ( le `  ndx ) ,  .<_  >. )  e.  _V
4845, 46, 47fvmpt 5773 . 2  |-  ( N  e.  NN0  ->  (ℤ/n `  N
)  =  ( U sSet  <. ( le `  ndx ) ,  .<_  >. )
)
491, 48syl5eq 2456 1  |-  ( N  e.  NN0  ->  Y  =  ( U sSet  <. ( le `  ndx ) , 
.<_  >. ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1649    e. wcel 1721   _Vcvv 2924   [_csb 3219   ifcif 3707   {csn 3782   <.cop 3785   `'ccnv 4844    |` cres 4847    o. ccom 4849   ` cfv 5421  (class class class)co 6048   0cc0 8954    <_ cle 9085   NN0cn0 10185   ZZcz 10246  ..^cfzo 11098   ndxcnx 13429   sSet csts 13430   ↾s cress 13433   lecple 13499    /.s cqus 13694   ~QG cqg 14903  RSpancrsp 16206  ℂfldccnfld 16666   ZRHomczrh 16741  ℤ/nczn 16744
This theorem is referenced by:  znle  16780  znval2  16781
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1662  ax-8 1683  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2393  ax-sep 4298  ax-nul 4306  ax-pr 4371
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2266  df-mo 2267  df-clab 2399  df-cleq 2405  df-clel 2408  df-nfc 2537  df-ne 2577  df-ral 2679  df-rex 2680  df-rab 2683  df-v 2926  df-sbc 3130  df-csb 3220  df-dif 3291  df-un 3293  df-in 3295  df-ss 3302  df-nul 3597  df-if 3708  df-sn 3788  df-pr 3789  df-op 3791  df-uni 3984  df-br 4181  df-opab 4235  df-mpt 4236  df-id 4466  df-xp 4851  df-rel 4852  df-cnv 4853  df-co 4854  df-dm 4855  df-res 4857  df-iota 5385  df-fun 5423  df-fv 5429  df-ov 6051  df-zn 16748
  Copyright terms: Public domain W3C validator