Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  divgcdoddALTV Structured version   Visualization version   GIF version

Theorem divgcdoddALTV 43932
Description: Either 𝐴 / (𝐴 gcd 𝐵) is odd or 𝐵 / (𝐴 gcd 𝐵) is odd. (Contributed by Scott Fenton, 19-Apr-2014.) (Revised by AV, 21-Jun-2020.)
Assertion
Ref Expression
divgcdoddALTV ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ∨ (𝐵 / (𝐴 gcd 𝐵)) ∈ Odd ))

Proof of Theorem divgcdoddALTV
StepHypRef Expression
1 divgcdodd 16037 . . 3 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))))
2 nnz 11991 . . . . . . . 8 (𝐴 ∈ ℕ → 𝐴 ∈ ℤ)
3 nnz 11991 . . . . . . . 8 (𝐵 ∈ ℕ → 𝐵 ∈ ℤ)
4 gcddvds 15835 . . . . . . . 8 ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵))
52, 3, 4syl2an 597 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵))
65simpld 497 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∥ 𝐴)
72, 3anim12i 614 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ))
8 nnne0 11658 . . . . . . . . . . . 12 (𝐴 ∈ ℕ → 𝐴 ≠ 0)
98neneqd 3021 . . . . . . . . . . 11 (𝐴 ∈ ℕ → ¬ 𝐴 = 0)
109intnanrd 492 . . . . . . . . . 10 (𝐴 ∈ ℕ → ¬ (𝐴 = 0 ∧ 𝐵 = 0))
1110adantr 483 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ¬ (𝐴 = 0 ∧ 𝐵 = 0))
12 gcdn0cl 15834 . . . . . . . . 9 (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ ¬ (𝐴 = 0 ∧ 𝐵 = 0)) → (𝐴 gcd 𝐵) ∈ ℕ)
137, 11, 12syl2anc 586 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℕ)
1413nnzd 12073 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℤ)
1513nnne0d 11674 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ≠ 0)
162adantr 483 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → 𝐴 ∈ ℤ)
17 dvdsval2 15595 . . . . . . 7 (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐴 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ))
1814, 15, 16, 17syl3anc 1367 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ))
196, 18mpbid 234 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ)
2019biantrurd 535 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ↔ ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)))))
215simprd 498 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∥ 𝐵)
223adantl 484 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → 𝐵 ∈ ℤ)
23 dvdsval2 15595 . . . . . . 7 (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ))
2414, 15, 22, 23syl3anc 1367 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ))
2521, 24mpbid 234 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ)
2625biantrurd 535 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)) ↔ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))))
2720, 26orbi12d 915 . . 3 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) ↔ (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) ∨ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))))))
281, 27mpbid 234 . 2 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) ∨ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))))
29 isodd3 43902 . . 3 ((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ↔ ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))))
30 isodd3 43902 . . 3 ((𝐵 / (𝐴 gcd 𝐵)) ∈ Odd ↔ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))))
3129, 30orbi12i 911 . 2 (((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ∨ (𝐵 / (𝐴 gcd 𝐵)) ∈ Odd ) ↔ (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) ∨ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))))
3228, 31sylibr 236 1 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ∨ (𝐵 / (𝐴 gcd 𝐵)) ∈ Odd ))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843   = wceq 1537  wcel 2114  wne 3016   class class class wbr 5052  (class class class)co 7142  0cc0 10523   / cdiv 11283  cn 11624  2c2 11679  cz 11968  cdvds 15592   gcd cgcd 15826   Odd codd 43875
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5189  ax-nul 5196  ax-pow 5252  ax-pr 5316  ax-un 7447  ax-cnex 10579  ax-resscn 10580  ax-1cn 10581  ax-icn 10582  ax-addcl 10583  ax-addrcl 10584  ax-mulcl 10585  ax-mulrcl 10586  ax-mulcom 10587  ax-addass 10588  ax-mulass 10589  ax-distr 10590  ax-i2m1 10591  ax-1ne0 10592  ax-1rid 10593  ax-rnegex 10594  ax-rrecex 10595  ax-cnre 10596  ax-pre-lttri 10597  ax-pre-lttrn 10598  ax-pre-ltadd 10599  ax-pre-mulgt0 10600  ax-pre-sup 10601
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3488  df-sbc 3764  df-csb 3872  df-dif 3927  df-un 3929  df-in 3931  df-ss 3940  df-pss 3942  df-nul 4280  df-if 4454  df-pw 4527  df-sn 4554  df-pr 4556  df-tp 4558  df-op 4560  df-uni 4825  df-iun 4907  df-br 5053  df-opab 5115  df-mpt 5133  df-tr 5159  df-id 5446  df-eprel 5451  df-po 5460  df-so 5461  df-fr 5500  df-we 5502  df-xp 5547  df-rel 5548  df-cnv 5549  df-co 5550  df-dm 5551  df-rn 5552  df-res 5553  df-ima 5554  df-pred 6134  df-ord 6180  df-on 6181  df-lim 6182  df-suc 6183  df-iota 6300  df-fun 6343  df-fn 6344  df-f 6345  df-f1 6346  df-fo 6347  df-f1o 6348  df-fv 6349  df-riota 7100  df-ov 7145  df-oprab 7146  df-mpo 7147  df-om 7567  df-2nd 7676  df-wrecs 7933  df-recs 7994  df-rdg 8032  df-er 8275  df-en 8496  df-dom 8497  df-sdom 8498  df-sup 8892  df-inf 8893  df-pnf 10663  df-mnf 10664  df-xr 10665  df-ltxr 10666  df-le 10667  df-sub 10858  df-neg 10859  df-div 11284  df-nn 11625  df-2 11687  df-3 11688  df-n0 11885  df-z 11969  df-uz 12231  df-rp 12377  df-fl 13152  df-mod 13228  df-seq 13360  df-exp 13420  df-cj 14443  df-re 14444  df-im 14445  df-sqrt 14579  df-abs 14580  df-dvds 15593  df-gcd 15827  df-odd 43877
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator