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

Theorem bezoutlem1 12711
Description: Lemma for bezout 12715. (Contributed by Mario Carneiro, 15-Mar-2014.)
Hypotheses
Ref Expression
bezout.1  |-  M  =  { z  e.  NN  |  E. x  e.  ZZ  E. y  e.  ZZ  z  =  ( ( A  x.  x )  +  ( B  x.  y
) ) }
bezout.3  |-  ( ph  ->  A  e.  ZZ )
bezout.4  |-  ( ph  ->  B  e.  ZZ )
Assertion
Ref Expression
bezoutlem1  |-  ( ph  ->  ( A  =/=  0  ->  ( abs `  A
)  e.  M ) )
Distinct variable groups:    x, y,
z, A    x, B, y, z    ph, x, y, z
Allowed substitution hints:    M( x, y, z)

Proof of Theorem bezoutlem1
StepHypRef Expression
1 bezout.3 . . . 4  |-  ( ph  ->  A  e.  ZZ )
2 fveq2 5485 . . . . . . 7  |-  ( z  =  A  ->  ( abs `  z )  =  ( abs `  A
) )
3 oveq1 5826 . . . . . . 7  |-  ( z  =  A  ->  (
z  x.  x )  =  ( A  x.  x ) )
42, 3eqeq12d 2298 . . . . . 6  |-  ( z  =  A  ->  (
( abs `  z
)  =  ( z  x.  x )  <->  ( abs `  A )  =  ( A  x.  x ) ) )
54rexbidv 2565 . . . . 5  |-  ( z  =  A  ->  ( E. x  e.  ZZ  ( abs `  z )  =  ( z  x.  x )  <->  E. x  e.  ZZ  ( abs `  A
)  =  ( A  x.  x ) ) )
6 zre 10023 . . . . . 6  |-  ( z  e.  ZZ  ->  z  e.  RR )
7 1z 10048 . . . . . . . . 9  |-  1  e.  ZZ
8 ax-1rid 8802 . . . . . . . . . 10  |-  ( z  e.  RR  ->  (
z  x.  1 )  =  z )
98eqcomd 2289 . . . . . . . . 9  |-  ( z  e.  RR  ->  z  =  ( z  x.  1 ) )
10 oveq2 5827 . . . . . . . . . . 11  |-  ( x  =  1  ->  (
z  x.  x )  =  ( z  x.  1 ) )
1110eqeq2d 2295 . . . . . . . . . 10  |-  ( x  =  1  ->  (
z  =  ( z  x.  x )  <->  z  =  ( z  x.  1 ) ) )
1211rspcev 2885 . . . . . . . . 9  |-  ( ( 1  e.  ZZ  /\  z  =  ( z  x.  1 ) )  ->  E. x  e.  ZZ  z  =  ( z  x.  x ) )
137, 9, 12sylancr 646 . . . . . . . 8  |-  ( z  e.  RR  ->  E. x  e.  ZZ  z  =  ( z  x.  x ) )
14 eqeq1 2290 . . . . . . . . 9  |-  ( ( abs `  z )  =  z  ->  (
( abs `  z
)  =  ( z  x.  x )  <->  z  =  ( z  x.  x
) ) )
1514rexbidv 2565 . . . . . . . 8  |-  ( ( abs `  z )  =  z  ->  ( E. x  e.  ZZ  ( abs `  z )  =  ( z  x.  x )  <->  E. x  e.  ZZ  z  =  ( z  x.  x ) ) )
1613, 15syl5ibrcom 215 . . . . . . 7  |-  ( z  e.  RR  ->  (
( abs `  z
)  =  z  ->  E. x  e.  ZZ  ( abs `  z )  =  ( z  x.  x ) ) )
17 znegcl 10050 . . . . . . . . . 10  |-  ( 1  e.  ZZ  ->  -u 1  e.  ZZ )
187, 17ax-mp 10 . . . . . . . . 9  |-  -u 1  e.  ZZ
19 recn 8822 . . . . . . . . . . 11  |-  ( z  e.  RR  ->  z  e.  CC )
2019mulm1d 9226 . . . . . . . . . 10  |-  ( z  e.  RR  ->  ( -u 1  x.  z )  =  -u z )
21 neg1cn 9808 . . . . . . . . . . 11  |-  -u 1  e.  CC
22 mulcom 8818 . . . . . . . . . . 11  |-  ( (
-u 1  e.  CC  /\  z  e.  CC )  ->  ( -u 1  x.  z )  =  ( z  x.  -u 1
) )
2321, 19, 22sylancr 646 . . . . . . . . . 10  |-  ( z  e.  RR  ->  ( -u 1  x.  z )  =  ( z  x.  -u 1 ) )
2420, 23eqtr3d 2318 . . . . . . . . 9  |-  ( z  e.  RR  ->  -u z  =  ( z  x.  -u 1 ) )
25 oveq2 5827 . . . . . . . . . . 11  |-  ( x  =  -u 1  ->  (
z  x.  x )  =  ( z  x.  -u 1 ) )
2625eqeq2d 2295 . . . . . . . . . 10  |-  ( x  =  -u 1  ->  ( -u z  =  ( z  x.  x )  <->  -u z  =  ( z  x.  -u 1
) ) )
2726rspcev 2885 . . . . . . . . 9  |-  ( (
-u 1  e.  ZZ  /\  -u z  =  (
z  x.  -u 1
) )  ->  E. x  e.  ZZ  -u z  =  ( z  x.  x ) )
2818, 24, 27sylancr 646 . . . . . . . 8  |-  ( z  e.  RR  ->  E. x  e.  ZZ  -u z  =  ( z  x.  x ) )
29 eqeq1 2290 . . . . . . . . 9  |-  ( ( abs `  z )  =  -u z  ->  (
( abs `  z
)  =  ( z  x.  x )  <->  -u z  =  ( z  x.  x
) ) )
3029rexbidv 2565 . . . . . . . 8  |-  ( ( abs `  z )  =  -u z  ->  ( E. x  e.  ZZ  ( abs `  z )  =  ( z  x.  x )  <->  E. x  e.  ZZ  -u z  =  ( z  x.  x ) ) )
3128, 30syl5ibrcom 215 . . . . . . 7  |-  ( z  e.  RR  ->  (
( abs `  z
)  =  -u z  ->  E. x  e.  ZZ  ( abs `  z )  =  ( z  x.  x ) ) )
32 absor 11779 . . . . . . 7  |-  ( z  e.  RR  ->  (
( abs `  z
)  =  z  \/  ( abs `  z
)  =  -u z
) )
3316, 31, 32mpjaod 372 . . . . . 6  |-  ( z  e.  RR  ->  E. x  e.  ZZ  ( abs `  z
)  =  ( z  x.  x ) )
346, 33syl 17 . . . . 5  |-  ( z  e.  ZZ  ->  E. x  e.  ZZ  ( abs `  z
)  =  ( z  x.  x ) )
355, 34vtoclga 2850 . . . 4  |-  ( A  e.  ZZ  ->  E. x  e.  ZZ  ( abs `  A
)  =  ( A  x.  x ) )
361, 35syl 17 . . 3  |-  ( ph  ->  E. x  e.  ZZ  ( abs `  A )  =  ( A  x.  x ) )
37 bezout.4 . . . . . . . . . . 11  |-  ( ph  ->  B  e.  ZZ )
3837zcnd 10113 . . . . . . . . . 10  |-  ( ph  ->  B  e.  CC )
3938adantr 453 . . . . . . . . 9  |-  ( (
ph  /\  x  e.  ZZ )  ->  B  e.  CC )
4039mul01d 9006 . . . . . . . 8  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( B  x.  0 )  =  0 )
4140oveq2d 5835 . . . . . . 7  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( ( A  x.  x )  +  ( B  x.  0 ) )  =  ( ( A  x.  x )  +  0 ) )
421zcnd 10113 . . . . . . . . 9  |-  ( ph  ->  A  e.  CC )
43 zcn 10024 . . . . . . . . 9  |-  ( x  e.  ZZ  ->  x  e.  CC )
44 mulcl 8816 . . . . . . . . 9  |-  ( ( A  e.  CC  /\  x  e.  CC )  ->  ( A  x.  x
)  e.  CC )
4542, 43, 44syl2an 465 . . . . . . . 8  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( A  x.  x )  e.  CC )
4645addid1d 9007 . . . . . . 7  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( ( A  x.  x )  +  0 )  =  ( A  x.  x
) )
4741, 46eqtrd 2316 . . . . . 6  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( ( A  x.  x )  +  ( B  x.  0 ) )  =  ( A  x.  x
) )
4847eqeq2d 2295 . . . . 5  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  0 ) )  <->  ( abs `  A )  =  ( A  x.  x ) ) )
49 0z 10030 . . . . . 6  |-  0  e.  ZZ
50 oveq2 5827 . . . . . . . . 9  |-  ( y  =  0  ->  ( B  x.  y )  =  ( B  x.  0 ) )
5150oveq2d 5835 . . . . . . . 8  |-  ( y  =  0  ->  (
( A  x.  x
)  +  ( B  x.  y ) )  =  ( ( A  x.  x )  +  ( B  x.  0 ) ) )
5251eqeq2d 2295 . . . . . . 7  |-  ( y  =  0  ->  (
( abs `  A
)  =  ( ( A  x.  x )  +  ( B  x.  y ) )  <->  ( abs `  A )  =  ( ( A  x.  x
)  +  ( B  x.  0 ) ) ) )
5352rspcev 2885 . . . . . 6  |-  ( ( 0  e.  ZZ  /\  ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  0 ) ) )  ->  E. y  e.  ZZ  ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  y
) ) )
5449, 53mpan 653 . . . . 5  |-  ( ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  0 ) )  ->  E. y  e.  ZZ  ( abs `  A
)  =  ( ( A  x.  x )  +  ( B  x.  y ) ) )
5548, 54syl6bir 222 . . . 4  |-  ( (
ph  /\  x  e.  ZZ )  ->  ( ( abs `  A )  =  ( A  x.  x )  ->  E. y  e.  ZZ  ( abs `  A
)  =  ( ( A  x.  x )  +  ( B  x.  y ) ) ) )
5655reximdva 2656 . . 3  |-  ( ph  ->  ( E. x  e.  ZZ  ( abs `  A
)  =  ( A  x.  x )  ->  E. x  e.  ZZ  E. y  e.  ZZ  ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  y ) ) ) )
5736, 56mpd 16 . 2  |-  ( ph  ->  E. x  e.  ZZ  E. y  e.  ZZ  ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  y ) ) )
58 nnabscl 11803 . . . 4  |-  ( ( A  e.  ZZ  /\  A  =/=  0 )  -> 
( abs `  A
)  e.  NN )
5958ex 425 . . 3  |-  ( A  e.  ZZ  ->  ( A  =/=  0  ->  ( abs `  A )  e.  NN ) )
601, 59syl 17 . 2  |-  ( ph  ->  ( A  =/=  0  ->  ( abs `  A
)  e.  NN ) )
61 eqeq1 2290 . . . . 5  |-  ( z  =  ( abs `  A
)  ->  ( z  =  ( ( A  x.  x )  +  ( B  x.  y
) )  <->  ( abs `  A )  =  ( ( A  x.  x
)  +  ( B  x.  y ) ) ) )
62612rexbidv 2587 . . . 4  |-  ( z  =  ( abs `  A
)  ->  ( E. x  e.  ZZ  E. y  e.  ZZ  z  =  ( ( A  x.  x
)  +  ( B  x.  y ) )  <->  E. x  e.  ZZ  E. y  e.  ZZ  ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  y ) ) ) )
63 bezout.1 . . . 4  |-  M  =  { z  e.  NN  |  E. x  e.  ZZ  E. y  e.  ZZ  z  =  ( ( A  x.  x )  +  ( B  x.  y
) ) }
6462, 63elrab2 2926 . . 3  |-  ( ( abs `  A )  e.  M  <->  ( ( abs `  A )  e.  NN  /\  E. x  e.  ZZ  E. y  e.  ZZ  ( abs `  A
)  =  ( ( A  x.  x )  +  ( B  x.  y ) ) ) )
6564simplbi2com 1366 . 2  |-  ( E. x  e.  ZZ  E. y  e.  ZZ  ( abs `  A )  =  ( ( A  x.  x )  +  ( B  x.  y ) )  ->  ( ( abs `  A )  e.  NN  ->  ( abs `  A )  e.  M
) )
6657, 60, 65sylsyld 54 1  |-  ( ph  ->  ( A  =/=  0  ->  ( abs `  A
)  e.  M ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    /\ wa 360    = wceq 1624    e. wcel 1685    =/= wne 2447   E.wrex 2545   {crab 2548   ` cfv 5221  (class class class)co 5819   CCcc 8730   RRcr 8731   0cc0 8732   1c1 8733    + caddc 8735    x. cmul 8737   -ucneg 9033   NNcn 9741   ZZcz 10019   abscabs 11713
This theorem is referenced by:  bezoutlem2  12712  bezoutlem4  12714
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-gen 1534  ax-5 1545  ax-17 1604  ax-9 1637  ax-8 1645  ax-13 1687  ax-14 1689  ax-6 1704  ax-7 1709  ax-11 1716  ax-12 1867  ax-ext 2265  ax-sep 4142  ax-nul 4150  ax-pow 4187  ax-pr 4213  ax-un 4511  ax-cnex 8788  ax-resscn 8789  ax-1cn 8790  ax-icn 8791  ax-addcl 8792  ax-addrcl 8793  ax-mulcl 8794  ax-mulrcl 8795  ax-mulcom 8796  ax-addass 8797  ax-mulass 8798  ax-distr 8799  ax-i2m1 8800  ax-1ne0 8801  ax-1rid 8802  ax-rnegex 8803  ax-rrecex 8804  ax-cnre 8805  ax-pre-lttri 8806  ax-pre-lttrn 8807  ax-pre-ltadd 8808  ax-pre-mulgt0 8809  ax-pre-sup 8810
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 937  df-3an 938  df-tru 1312  df-ex 1530  df-nf 1533  df-sb 1632  df-eu 2148  df-mo 2149  df-clab 2271  df-cleq 2277  df-clel 2280  df-nfc 2409  df-ne 2449  df-nel 2450  df-ral 2549  df-rex 2550  df-reu 2551  df-rmo 2552  df-rab 2553  df-v 2791  df-sbc 2993  df-csb 3083  df-dif 3156  df-un 3158  df-in 3160  df-ss 3167  df-pss 3169  df-nul 3457  df-if 3567  df-pw 3628  df-sn 3647  df-pr 3648  df-tp 3649  df-op 3650  df-uni 3829  df-iun 3908  df-br 4025  df-opab 4079  df-mpt 4080  df-tr 4115  df-eprel 4304  df-id 4308  df-po 4313  df-so 4314  df-fr 4351  df-we 4353  df-ord 4394  df-on 4395  df-lim 4396  df-suc 4397  df-om 4656  df-xp 4694  df-rel 4695  df-cnv 4696  df-co 4697  df-dm 4698  df-rn 4699  df-res 4700  df-ima 4701  df-fun 5223  df-fn 5224  df-f 5225  df-f1 5226  df-fo 5227  df-f1o 5228  df-fv 5229  df-ov 5822  df-oprab 5823  df-mpt2 5824  df-2nd 6084  df-iota 6252  df-riota 6299  df-recs 6383  df-rdg 6418  df-er 6655  df-en 6859  df-dom 6860  df-sdom 6861  df-sup 7189  df-pnf 8864  df-mnf 8865  df-xr 8866  df-ltxr 8867  df-le 8868  df-sub 9034  df-neg 9035  df-div 9419  df-nn 9742  df-2 9799  df-3 9800  df-n0 9961  df-z 10020  df-uz 10226  df-rp 10350  df-seq 11041  df-exp 11099  df-cj 11578  df-re 11579  df-im 11580  df-sqr 11714  df-abs 11715
  Copyright terms: Public domain W3C validator