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

Theorem 4sqlem13 13315
Description: Lemma for 4sq 13322. (Contributed by Mario Carneiro, 16-Jul-2014.)
Hypotheses
Ref Expression
4sq.1  |-  S  =  { n  |  E. x  e.  ZZ  E. y  e.  ZZ  E. z  e.  ZZ  E. w  e.  ZZ  n  =  ( ( ( x ^
2 )  +  ( y ^ 2 ) )  +  ( ( z ^ 2 )  +  ( w ^
2 ) ) ) }
4sq.2  |-  ( ph  ->  N  e.  NN )
4sq.3  |-  ( ph  ->  P  =  ( ( 2  x.  N )  +  1 ) )
4sq.4  |-  ( ph  ->  P  e.  Prime )
4sq.5  |-  ( ph  ->  ( 0 ... (
2  x.  N ) )  C_  S )
4sq.6  |-  T  =  { i  e.  NN  |  ( i  x.  P )  e.  S }
4sq.7  |-  M  =  sup ( T ,  RR ,  `'  <  )
Assertion
Ref Expression
4sqlem13  |-  ( ph  ->  ( T  =/=  (/)  /\  M  <  P ) )
Distinct variable groups:    w, n, x, y, z    i, n, M    n, N    P, i, n    ph, n    S, i, n
Allowed substitution hints:    ph( x, y, z, w, i)    P( x, y, z, w)    S( x, y, z, w)    T( x, y, z, w, i, n)    M( x, y, z, w)    N( x, y, z, w, i)

Proof of Theorem 4sqlem13
Dummy variables  k 
v  u  m are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 4sq.1 . . 3  |-  S  =  { n  |  E. x  e.  ZZ  E. y  e.  ZZ  E. z  e.  ZZ  E. w  e.  ZZ  n  =  ( ( ( x ^
2 )  +  ( y ^ 2 ) )  +  ( ( z ^ 2 )  +  ( w ^
2 ) ) ) }
2 4sq.2 . . 3  |-  ( ph  ->  N  e.  NN )
3 4sq.3 . . 3  |-  ( ph  ->  P  =  ( ( 2  x.  N )  +  1 ) )
4 4sq.4 . . 3  |-  ( ph  ->  P  e.  Prime )
5 eqid 2435 . . 3  |-  { u  |  E. m  e.  ( 0 ... N ) u  =  ( ( m ^ 2 )  mod  P ) }  =  { u  |  E. m  e.  ( 0 ... N ) u  =  ( ( m ^ 2 )  mod  P ) }
6 eqid 2435 . . 3  |-  ( v  e.  { u  |  E. m  e.  ( 0 ... N ) u  =  ( ( m ^ 2 )  mod  P ) } 
|->  ( ( P  - 
1 )  -  v
) )  =  ( v  e.  { u  |  E. m  e.  ( 0 ... N ) u  =  ( ( m ^ 2 )  mod  P ) } 
|->  ( ( P  - 
1 )  -  v
) )
71, 2, 3, 4, 5, 64sqlem12 13314 . 2  |-  ( ph  ->  E. k  e.  ( 1 ... ( P  -  1 ) ) E. u  e.  ZZ [ _i ]  ( ( ( abs `  u
) ^ 2 )  +  1 )  =  ( k  x.  P
) )
8 simplrl 737 . . . . . . . 8  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
k  e.  ( 1 ... ( P  - 
1 ) ) )
9 elfznn 11070 . . . . . . . 8  |-  ( k  e.  ( 1 ... ( P  -  1 ) )  ->  k  e.  NN )
108, 9syl 16 . . . . . . 7  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
k  e.  NN )
11 simpr 448 . . . . . . . 8  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )
12 abs1 12092 . . . . . . . . . . . 12  |-  ( abs `  1 )  =  1
1312oveq1i 6083 . . . . . . . . . . 11  |-  ( ( abs `  1 ) ^ 2 )  =  ( 1 ^ 2 )
14 sq1 11466 . . . . . . . . . . 11  |-  ( 1 ^ 2 )  =  1
1513, 14eqtri 2455 . . . . . . . . . 10  |-  ( ( abs `  1 ) ^ 2 )  =  1
1615oveq2i 6084 . . . . . . . . 9  |-  ( ( ( abs `  u
) ^ 2 )  +  ( ( abs `  1 ) ^
2 ) )  =  ( ( ( abs `  u ) ^ 2 )  +  1 )
17 simplrr 738 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  u  e.  ZZ [ _i ] )
18 1z 10301 . . . . . . . . . . 11  |-  1  e.  ZZ
19 zgz 13291 . . . . . . . . . . 11  |-  ( 1  e.  ZZ  ->  1  e.  ZZ [ _i ]
)
2018, 19ax-mp 8 . . . . . . . . . 10  |-  1  e.  ZZ [ _i ]
2114sqlem4a 13309 . . . . . . . . . 10  |-  ( ( u  e.  ZZ [
_i ]  /\  1  e.  ZZ [ _i ]
)  ->  ( (
( abs `  u
) ^ 2 )  +  ( ( abs `  1 ) ^
2 ) )  e.  S )
2217, 20, 21sylancl 644 . . . . . . . . 9  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( ( ( abs `  u ) ^ 2 )  +  ( ( abs `  1 ) ^ 2 ) )  e.  S )
2316, 22syl5eqelr 2520 . . . . . . . 8  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( ( ( abs `  u ) ^ 2 )  +  1 )  e.  S )
2411, 23eqeltrrd 2510 . . . . . . 7  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( k  x.  P
)  e.  S )
25 oveq1 6080 . . . . . . . . 9  |-  ( i  =  k  ->  (
i  x.  P )  =  ( k  x.  P ) )
2625eleq1d 2501 . . . . . . . 8  |-  ( i  =  k  ->  (
( i  x.  P
)  e.  S  <->  ( k  x.  P )  e.  S
) )
27 4sq.6 . . . . . . . 8  |-  T  =  { i  e.  NN  |  ( i  x.  P )  e.  S }
2826, 27elrab2 3086 . . . . . . 7  |-  ( k  e.  T  <->  ( k  e.  NN  /\  ( k  x.  P )  e.  S ) )
2910, 24, 28sylanbrc 646 . . . . . 6  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
k  e.  T )
30 ne0i 3626 . . . . . 6  |-  ( k  e.  T  ->  T  =/=  (/) )
3129, 30syl 16 . . . . 5  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  T  =/=  (/) )
32 ssrab2 3420 . . . . . . . . 9  |-  { i  e.  NN  |  ( i  x.  P )  e.  S }  C_  NN
3327, 32eqsstri 3370 . . . . . . . 8  |-  T  C_  NN
34 4sq.7 . . . . . . . . 9  |-  M  =  sup ( T ,  RR ,  `'  <  )
35 nnuz 10511 . . . . . . . . . . 11  |-  NN  =  ( ZZ>= `  1 )
3633, 35sseqtri 3372 . . . . . . . . . 10  |-  T  C_  ( ZZ>= `  1 )
37 infmssuzcl 10549 . . . . . . . . . 10  |-  ( ( T  C_  ( ZZ>= ` 
1 )  /\  T  =/=  (/) )  ->  sup ( T ,  RR ,  `'  <  )  e.  T
)
3836, 31, 37sylancr 645 . . . . . . . . 9  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  sup ( T ,  RR ,  `'  <  )  e.  T )
3934, 38syl5eqel 2519 . . . . . . . 8  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  M  e.  T )
4033, 39sseldi 3338 . . . . . . 7  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  M  e.  NN )
4140nnred 10005 . . . . . 6  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  M  e.  RR )
4210nnred 10005 . . . . . 6  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
k  e.  RR )
434ad2antrr 707 . . . . . . . 8  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  P  e.  Prime )
44 prmnn 13072 . . . . . . . 8  |-  ( P  e.  Prime  ->  P  e.  NN )
4543, 44syl 16 . . . . . . 7  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  P  e.  NN )
4645nnred 10005 . . . . . 6  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  P  e.  RR )
47 infmssuzle 10548 . . . . . . . 8  |-  ( ( T  C_  ( ZZ>= ` 
1 )  /\  k  e.  T )  ->  sup ( T ,  RR ,  `'  <  )  <_  k
)
4836, 29, 47sylancr 645 . . . . . . 7  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  sup ( T ,  RR ,  `'  <  )  <_ 
k )
4934, 48syl5eqbr 4237 . . . . . 6  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  M  <_  k )
50 prmz 13073 . . . . . . . . . 10  |-  ( P  e.  Prime  ->  P  e.  ZZ )
5143, 50syl 16 . . . . . . . . 9  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  P  e.  ZZ )
52 elfzm11 11106 . . . . . . . . 9  |-  ( ( 1  e.  ZZ  /\  P  e.  ZZ )  ->  ( k  e.  ( 1 ... ( P  -  1 ) )  <-> 
( k  e.  ZZ  /\  1  <_  k  /\  k  <  P ) ) )
5318, 51, 52sylancr 645 . . . . . . . 8  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( k  e.  ( 1 ... ( P  -  1 ) )  <-> 
( k  e.  ZZ  /\  1  <_  k  /\  k  <  P ) ) )
548, 53mpbid 202 . . . . . . 7  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( k  e.  ZZ  /\  1  <_  k  /\  k  <  P ) )
5554simp3d 971 . . . . . 6  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
k  <  P )
5641, 42, 46, 49, 55lelttrd 9218 . . . . 5  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  ->  M  <  P )
5731, 56jca 519 . . . 4  |-  ( ( ( ph  /\  (
k  e.  ( 1 ... ( P  - 
1 ) )  /\  u  e.  ZZ [ _i ] ) )  /\  ( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P ) )  -> 
( T  =/=  (/)  /\  M  <  P ) )
5857ex 424 . . 3  |-  ( (
ph  /\  ( k  e.  ( 1 ... ( P  -  1 ) )  /\  u  e.  ZZ [ _i ]
) )  ->  (
( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P )  ->  ( T  =/=  (/)  /\  M  < 
P ) ) )
5958rexlimdvva 2829 . 2  |-  ( ph  ->  ( E. k  e.  ( 1 ... ( P  -  1 ) ) E. u  e.  ZZ [ _i ] 
( ( ( abs `  u ) ^ 2 )  +  1 )  =  ( k  x.  P )  ->  ( T  =/=  (/)  /\  M  < 
P ) ) )
607, 59mpd 15 1  |-  ( ph  ->  ( T  =/=  (/)  /\  M  <  P ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1652    e. wcel 1725   {cab 2421    =/= wne 2598   E.wrex 2698   {crab 2701    C_ wss 3312   (/)c0 3620   class class class wbr 4204    e. cmpt 4258   `'ccnv 4869   ` cfv 5446  (class class class)co 6073   supcsup 7437   RRcr 8979   0cc0 8980   1c1 8981    + caddc 8983    x. cmul 8985    < clt 9110    <_ cle 9111    - cmin 9281   NNcn 9990   2c2 10039   ZZcz 10272   ZZ>=cuz 10478   ...cfz 11033    mod cmo 11240   ^cexp 11372   abscabs 12029   Primecprime 13069   ZZ [ _i ]cgz 13287
This theorem is referenced by:  4sqlem14  13316  4sqlem17  13319  4sqlem18  13320
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-rep 4312  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693  ax-cnex 9036  ax-resscn 9037  ax-1cn 9038  ax-icn 9039  ax-addcl 9040  ax-addrcl 9041  ax-mulcl 9042  ax-mulrcl 9043  ax-mulcom 9044  ax-addass 9045  ax-mulass 9046  ax-distr 9047  ax-i2m1 9048  ax-1ne0 9049  ax-1rid 9050  ax-rnegex 9051  ax-rrecex 9052  ax-cnre 9053  ax-pre-lttri 9054  ax-pre-lttrn 9055  ax-pre-ltadd 9056  ax-pre-mulgt0 9057  ax-pre-sup 9058
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-nel 2601  df-ral 2702  df-rex 2703  df-reu 2704  df-rmo 2705  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-pss 3328  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-tp 3814  df-op 3815  df-uni 4008  df-int 4043  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-tr 4295  df-eprel 4486  df-id 4490  df-po 4495  df-so 4496  df-fr 4533  df-we 4535  df-ord 4576  df-on 4577  df-lim 4578  df-suc 4579  df-om 4838  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-1st 6341  df-2nd 6342  df-riota 6541  df-recs 6625  df-rdg 6660  df-1o 6716  df-2o 6717  df-oadd 6720  df-er 6897  df-en 7102  df-dom 7103  df-sdom 7104  df-fin 7105  df-sup 7438  df-card 7816  df-cda 8038  df-pnf 9112  df-mnf 9113  df-xr 9114  df-ltxr 9115  df-le 9116  df-sub 9283  df-neg 9284  df-div 9668  df-nn 9991  df-2 10048  df-3 10049  df-4 10050  df-n0 10212  df-z 10273  df-uz 10479  df-rp 10603  df-fz 11034  df-fl 11192  df-mod 11241  df-seq 11314  df-exp 11373  df-hash 11609  df-cj 11894  df-re 11895  df-im 11896  df-sqr 12030  df-abs 12031  df-dvds 12843  df-gcd 12997  df-prm 13070  df-gz 13288
  Copyright terms: Public domain W3C validator