![]() |
Mathbox for Alexander van der Vekens |
< Previous
Next >
Nearby theorems |
|
Mirrors > Home > MPE Home > Th. List > Mathboxes > divgcdoddALTV | Structured version Visualization version GIF version |
Description: Either 𝐴 / (𝐴 gcd 𝐵) is odd or 𝐵 / (𝐴 gcd 𝐵) is odd. (Contributed by Scott Fenton, 19-Apr-2014.) (Revised by AV, 21-Jun-2020.) |
Ref | Expression |
---|---|
divgcdoddALTV | ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ∨ (𝐵 / (𝐴 gcd 𝐵)) ∈ Odd )) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | divgcdodd 16612 | . . 3 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))) | |
2 | nnz 12544 | . . . . . . . 8 ⊢ (𝐴 ∈ ℕ → 𝐴 ∈ ℤ) | |
3 | nnz 12544 | . . . . . . . 8 ⊢ (𝐵 ∈ ℕ → 𝐵 ∈ ℤ) | |
4 | gcddvds 16409 | . . . . . . . 8 ⊢ ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) | |
5 | 2, 3, 4 | syl2an 596 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) |
6 | 5 | simpld 495 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∥ 𝐴) |
7 | 2, 3 | anim12i 613 | . . . . . . . . 9 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ)) |
8 | nnne0 12211 | . . . . . . . . . . . 12 ⊢ (𝐴 ∈ ℕ → 𝐴 ≠ 0) | |
9 | 8 | neneqd 2944 | . . . . . . . . . . 11 ⊢ (𝐴 ∈ ℕ → ¬ 𝐴 = 0) |
10 | 9 | intnanrd 490 | . . . . . . . . . 10 ⊢ (𝐴 ∈ ℕ → ¬ (𝐴 = 0 ∧ 𝐵 = 0)) |
11 | 10 | adantr 481 | . . . . . . . . 9 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ¬ (𝐴 = 0 ∧ 𝐵 = 0)) |
12 | gcdn0cl 16408 | . . . . . . . . 9 ⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ ¬ (𝐴 = 0 ∧ 𝐵 = 0)) → (𝐴 gcd 𝐵) ∈ ℕ) | |
13 | 7, 11, 12 | syl2anc 584 | . . . . . . . 8 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℕ) |
14 | 13 | nnzd 12550 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℤ) |
15 | 13 | nnne0d 12227 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ≠ 0) |
16 | 2 | adantr 481 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → 𝐴 ∈ ℤ) |
17 | dvdsval2 16165 | . . . . . . 7 ⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐴 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ)) | |
18 | 14, 15, 16, 17 | syl3anc 1371 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
19 | 6, 18 | mpbid 231 | . . . . 5 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ) |
20 | 19 | biantrurd 533 | . . . 4 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ↔ ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))))) |
21 | 5 | simprd 496 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∥ 𝐵) |
22 | 3 | adantl 482 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → 𝐵 ∈ ℤ) |
23 | dvdsval2 16165 | . . . . . . 7 ⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ)) | |
24 | 14, 15, 22, 23 | syl3anc 1371 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
25 | 21, 24 | mpbid 231 | . . . . 5 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ) |
26 | 25 | biantrurd 533 | . . . 4 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)) ↔ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))))) |
27 | 20, 26 | orbi12d 917 | . . 3 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) ↔ (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) ∨ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))))) |
28 | 1, 27 | mpbid 231 | . 2 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) ∨ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))))) |
29 | isodd3 45997 | . . 3 ⊢ ((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ↔ ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)))) | |
30 | isodd3 45997 | . . 3 ⊢ ((𝐵 / (𝐴 gcd 𝐵)) ∈ Odd ↔ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))) | |
31 | 29, 30 | orbi12i 913 | . 2 ⊢ (((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ∨ (𝐵 / (𝐴 gcd 𝐵)) ∈ Odd ) ↔ (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) ∨ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))))) |
32 | 28, 31 | sylibr 233 | 1 ⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 / (𝐴 gcd 𝐵)) ∈ Odd ∨ (𝐵 / (𝐴 gcd 𝐵)) ∈ Odd )) |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 → wi 4 ↔ wb 205 ∧ wa 396 ∨ wo 845 = wceq 1541 ∈ wcel 2106 ≠ wne 2939 class class class wbr 5125 (class class class)co 7377 0cc0 11075 / cdiv 11836 ℕcn 12177 2c2 12232 ℤcz 12523 ∥ cdvds 16162 gcd cgcd 16400 Odd codd 45970 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1797 ax-4 1811 ax-5 1913 ax-6 1971 ax-7 2011 ax-8 2108 ax-9 2116 ax-10 2137 ax-11 2154 ax-12 2171 ax-ext 2702 ax-sep 5276 ax-nul 5283 ax-pow 5340 ax-pr 5404 ax-un 7692 ax-cnex 11131 ax-resscn 11132 ax-1cn 11133 ax-icn 11134 ax-addcl 11135 ax-addrcl 11136 ax-mulcl 11137 ax-mulrcl 11138 ax-mulcom 11139 ax-addass 11140 ax-mulass 11141 ax-distr 11142 ax-i2m1 11143 ax-1ne0 11144 ax-1rid 11145 ax-rnegex 11146 ax-rrecex 11147 ax-cnre 11148 ax-pre-lttri 11149 ax-pre-lttrn 11150 ax-pre-ltadd 11151 ax-pre-mulgt0 11152 ax-pre-sup 11153 |
This theorem depends on definitions: df-bi 206 df-an 397 df-or 846 df-3or 1088 df-3an 1089 df-tru 1544 df-fal 1554 df-ex 1782 df-nf 1786 df-sb 2068 df-mo 2533 df-eu 2562 df-clab 2709 df-cleq 2723 df-clel 2809 df-nfc 2884 df-ne 2940 df-nel 3046 df-ral 3061 df-rex 3070 df-rmo 3364 df-reu 3365 df-rab 3419 df-v 3461 df-sbc 3758 df-csb 3874 df-dif 3931 df-un 3933 df-in 3935 df-ss 3945 df-pss 3947 df-nul 4303 df-if 4507 df-pw 4582 df-sn 4607 df-pr 4609 df-op 4613 df-uni 4886 df-iun 4976 df-br 5126 df-opab 5188 df-mpt 5209 df-tr 5243 df-id 5551 df-eprel 5557 df-po 5565 df-so 5566 df-fr 5608 df-we 5610 df-xp 5659 df-rel 5660 df-cnv 5661 df-co 5662 df-dm 5663 df-rn 5664 df-res 5665 df-ima 5666 df-pred 6273 df-ord 6340 df-on 6341 df-lim 6342 df-suc 6343 df-iota 6468 df-fun 6518 df-fn 6519 df-f 6520 df-f1 6521 df-fo 6522 df-f1o 6523 df-fv 6524 df-riota 7333 df-ov 7380 df-oprab 7381 df-mpo 7382 df-om 7823 df-2nd 7942 df-frecs 8232 df-wrecs 8263 df-recs 8337 df-rdg 8376 df-er 8670 df-en 8906 df-dom 8907 df-sdom 8908 df-sup 9402 df-inf 9403 df-pnf 11215 df-mnf 11216 df-xr 11217 df-ltxr 11218 df-le 11219 df-sub 11411 df-neg 11412 df-div 11837 df-nn 12178 df-2 12240 df-3 12241 df-n0 12438 df-z 12524 df-uz 12788 df-rp 12940 df-fl 13722 df-mod 13800 df-seq 13932 df-exp 13993 df-cj 15011 df-re 15012 df-im 15013 df-sqrt 15147 df-abs 15148 df-dvds 16163 df-gcd 16401 df-odd 45972 |
This theorem is referenced by: (None) |
Copyright terms: Public domain | W3C validator |