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

Theorem divgcdodd 11004
Description: Either  A  /  ( A  gcd  B ) is odd or  B  /  ( A  gcd  B ) is odd. (Contributed by Scott Fenton, 19-Apr-2014.)
Assertion
Ref Expression
divgcdodd  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( -.  2  ||  ( A  /  ( A  gcd  B ) )  \/  -.  2  ||  ( B  /  ( A  gcd  B ) ) ) )

Proof of Theorem divgcdodd
StepHypRef Expression
1 n2dvds1 10794 . . . 4  |-  -.  2  ||  1
2 2z 8711 . . . . . . 7  |-  2  e.  ZZ
3 nnz 8702 . . . . . . . . . 10  |-  ( A  e.  NN  ->  A  e.  ZZ )
4 nnz 8702 . . . . . . . . . 10  |-  ( B  e.  NN  ->  B  e.  ZZ )
5 gcddvds 10837 . . . . . . . . . 10  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A  gcd  B )  ||  A  /\  ( A  gcd  B ) 
||  B ) )
63, 4, 5syl2an 283 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  ||  A  /\  ( A  gcd  B ) 
||  B ) )
76simpld 110 . . . . . . . 8  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
)  ||  A )
8 gcdnncl 10841 . . . . . . . . . 10  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
)  e.  NN )
98nnzd 8800 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
)  e.  ZZ )
108nnne0d 8401 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
)  =/=  0 )
113adantr 270 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  A  e.  ZZ )
12 dvdsval2 10681 . . . . . . . . 9  |-  ( ( ( A  gcd  B
)  e.  ZZ  /\  ( A  gcd  B )  =/=  0  /\  A  e.  ZZ )  ->  (
( A  gcd  B
)  ||  A  <->  ( A  /  ( A  gcd  B ) )  e.  ZZ ) )
139, 10, 11, 12syl3anc 1172 . . . . . . . 8  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  ||  A  <->  ( A  /  ( A  gcd  B ) )  e.  ZZ ) )
147, 13mpbid 145 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  /  ( A  gcd  B ) )  e.  ZZ )
156simprd 112 . . . . . . . 8  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
)  ||  B )
164adantl 271 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  B  e.  ZZ )
17 dvdsval2 10681 . . . . . . . . 9  |-  ( ( ( A  gcd  B
)  e.  ZZ  /\  ( A  gcd  B )  =/=  0  /\  B  e.  ZZ )  ->  (
( A  gcd  B
)  ||  B  <->  ( B  /  ( A  gcd  B ) )  e.  ZZ ) )
189, 10, 16, 17syl3anc 1172 . . . . . . . 8  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  ||  B  <->  ( B  /  ( A  gcd  B ) )  e.  ZZ ) )
1915, 18mpbid 145 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( B  /  ( A  gcd  B ) )  e.  ZZ )
20 dvdsgcdb 10884 . . . . . . 7  |-  ( ( 2  e.  ZZ  /\  ( A  /  ( A  gcd  B ) )  e.  ZZ  /\  ( B  /  ( A  gcd  B ) )  e.  ZZ )  ->  ( ( 2 
||  ( A  / 
( A  gcd  B
) )  /\  2  ||  ( B  /  ( A  gcd  B ) ) )  <->  2  ||  (
( A  /  ( A  gcd  B ) )  gcd  ( B  / 
( A  gcd  B
) ) ) ) )
212, 14, 19, 20mp3an2i 1276 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( 2  ||  ( A  /  ( A  gcd  B ) )  /\  2  ||  ( B  /  ( A  gcd  B ) ) )  <->  2  ||  ( ( A  / 
( A  gcd  B
) )  gcd  ( B  /  ( A  gcd  B ) ) ) ) )
22 gcddiv 10890 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  ( A  gcd  B )  e.  NN )  /\  ( ( A  gcd  B )  ||  A  /\  ( A  gcd  B ) 
||  B ) )  ->  ( ( A  gcd  B )  / 
( A  gcd  B
) )  =  ( ( A  /  ( A  gcd  B ) )  gcd  ( B  / 
( A  gcd  B
) ) ) )
2311, 16, 8, 6, 22syl31anc 1175 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  /  ( A  gcd  B ) )  =  ( ( A  /  ( A  gcd  B ) )  gcd  ( B  /  ( A  gcd  B ) ) ) )
248nncnd 8371 . . . . . . . . . 10  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
)  e.  CC )
258nnap0d 8402 . . . . . . . . . 10  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  gcd  B
) #  0 )
2624, 25dividapd 8192 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  /  ( A  gcd  B ) )  =  1 )
2723, 26eqtr3d 2119 . . . . . . . 8  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  / 
( A  gcd  B
) )  gcd  ( B  /  ( A  gcd  B ) ) )  =  1 )
2827breq2d 3832 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( 2  ||  (
( A  /  ( A  gcd  B ) )  gcd  ( B  / 
( A  gcd  B
) ) )  <->  2  ||  1 ) )
2928biimpd 142 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( 2  ||  (
( A  /  ( A  gcd  B ) )  gcd  ( B  / 
( A  gcd  B
) ) )  -> 
2  ||  1 ) )
3021, 29sylbid 148 . . . . 5  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( 2  ||  ( A  /  ( A  gcd  B ) )  /\  2  ||  ( B  /  ( A  gcd  B ) ) )  -> 
2  ||  1 ) )
3130expdimp 255 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN )  /\  2  ||  ( A  /  ( A  gcd  B ) ) )  -> 
( 2  ||  ( B  /  ( A  gcd  B ) )  ->  2  ||  1 ) )
321, 31mtoi 623 . . 3  |-  ( ( ( A  e.  NN  /\  B  e.  NN )  /\  2  ||  ( A  /  ( A  gcd  B ) ) )  ->  -.  2  ||  ( B  /  ( A  gcd  B ) ) )
3332ex 113 . 2  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( 2  ||  ( A  /  ( A  gcd  B ) )  ->  -.  2  ||  ( B  / 
( A  gcd  B
) ) ) )
34 2nn 8511 . . . 4  |-  2  e.  NN
35 dvdsdc 10686 . . . 4  |-  ( ( 2  e.  NN  /\  ( A  /  ( A  gcd  B ) )  e.  ZZ )  -> DECID  2  ||  ( A  /  ( A  gcd  B ) ) )
3634, 14, 35sylancr 405 . . 3  |-  ( ( A  e.  NN  /\  B  e.  NN )  -> DECID  2 
||  ( A  / 
( A  gcd  B
) ) )
37 imordc 832 . . 3  |-  (DECID  2  ||  ( A  /  ( A  gcd  B ) )  ->  ( ( 2 
||  ( A  / 
( A  gcd  B
) )  ->  -.  2  ||  ( B  / 
( A  gcd  B
) ) )  <->  ( -.  2  ||  ( A  / 
( A  gcd  B
) )  \/  -.  2  ||  ( B  / 
( A  gcd  B
) ) ) ) )
3836, 37syl 14 . 2  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( 2  ||  ( A  /  ( A  gcd  B ) )  ->  -.  2  ||  ( B  /  ( A  gcd  B ) ) )  <->  ( -.  2  ||  ( A  /  ( A  gcd  B ) )  \/  -.  2  ||  ( B  /  ( A  gcd  B ) ) ) ) )
3933, 38mpbid 145 1  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( -.  2  ||  ( A  /  ( A  gcd  B ) )  \/  -.  2  ||  ( B  /  ( A  gcd  B ) ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 102    <-> wb 103    \/ wo 662  DECID wdc 778    = wceq 1287    e. wcel 1436    =/= wne 2251   class class class wbr 3820  (class class class)co 5613   0cc0 7294   1c1 7295    / cdiv 8078   NNcn 8357   2c2 8407   ZZcz 8683    || cdvds 10678    gcd cgcd 10820
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 577  ax-in2 578  ax-io 663  ax-5 1379  ax-7 1380  ax-gen 1381  ax-ie1 1425  ax-ie2 1426  ax-8 1438  ax-10 1439  ax-11 1440  ax-i12 1441  ax-bndl 1442  ax-4 1443  ax-13 1447  ax-14 1448  ax-17 1462  ax-i9 1466  ax-ial 1470  ax-i5r 1471  ax-ext 2067  ax-coll 3929  ax-sep 3932  ax-nul 3940  ax-pow 3984  ax-pr 4010  ax-un 4234  ax-setind 4326  ax-iinf 4376  ax-cnex 7380  ax-resscn 7381  ax-1cn 7382  ax-1re 7383  ax-icn 7384  ax-addcl 7385  ax-addrcl 7386  ax-mulcl 7387  ax-mulrcl 7388  ax-addcom 7389  ax-mulcom 7390  ax-addass 7391  ax-mulass 7392  ax-distr 7393  ax-i2m1 7394  ax-0lt1 7395  ax-1rid 7396  ax-0id 7397  ax-rnegex 7398  ax-precex 7399  ax-cnre 7400  ax-pre-ltirr 7401  ax-pre-ltwlin 7402  ax-pre-lttrn 7403  ax-pre-apti 7404  ax-pre-ltadd 7405  ax-pre-mulgt0 7406  ax-pre-mulext 7407  ax-arch 7408  ax-caucvg 7409
This theorem depends on definitions:  df-bi 115  df-dc 779  df-3or 923  df-3an 924  df-tru 1290  df-fal 1293  df-nf 1393  df-sb 1690  df-eu 1948  df-mo 1949  df-clab 2072  df-cleq 2078  df-clel 2081  df-nfc 2214  df-ne 2252  df-nel 2347  df-ral 2360  df-rex 2361  df-reu 2362  df-rmo 2363  df-rab 2364  df-v 2617  df-sbc 2830  df-csb 2923  df-dif 2990  df-un 2992  df-in 2994  df-ss 3001  df-nul 3276  df-if 3380  df-pw 3417  df-sn 3437  df-pr 3438  df-op 3440  df-uni 3637  df-int 3672  df-iun 3715  df-br 3821  df-opab 3875  df-mpt 3876  df-tr 3912  df-id 4094  df-po 4097  df-iso 4098  df-iord 4167  df-on 4169  df-ilim 4170  df-suc 4172  df-iom 4379  df-xp 4417  df-rel 4418  df-cnv 4419  df-co 4420  df-dm 4421  df-rn 4422  df-res 4423  df-ima 4424  df-iota 4946  df-fun 4983  df-fn 4984  df-f 4985  df-f1 4986  df-fo 4987  df-f1o 4988  df-fv 4989  df-riota 5569  df-ov 5616  df-oprab 5617  df-mpt2 5618  df-1st 5868  df-2nd 5869  df-recs 6024  df-frec 6110  df-sup 6623  df-pnf 7468  df-mnf 7469  df-xr 7470  df-ltxr 7471  df-le 7472  df-sub 7599  df-neg 7600  df-reap 7993  df-ap 8000  df-div 8079  df-inn 8358  df-2 8416  df-3 8417  df-4 8418  df-n0 8607  df-z 8684  df-uz 8952  df-q 9037  df-rp 9067  df-fz 9357  df-fzo 9482  df-fl 9605  df-mod 9658  df-iseq 9780  df-iexp 9854  df-cj 10172  df-re 10173  df-im 10174  df-rsqrt 10327  df-abs 10328  df-dvds 10679  df-gcd 10821
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator