Proof of Theorem bezoutr1
Step | Hyp | Ref
| Expression |
1 | | bezoutr 16273 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) → (𝐴 gcd 𝐵) ∥ ((𝐴 · 𝑋) + (𝐵 · 𝑌))) |
2 | 1 | adantr 481 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 gcd 𝐵) ∥ ((𝐴 · 𝑋) + (𝐵 · 𝑌))) |
3 | | simpr 485 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) |
4 | 2, 3 | breqtrd 5100 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 gcd 𝐵) ∥ 1) |
5 | | gcdcl 16213 |
. . . . . . 7
⊢ ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝐴 gcd 𝐵) ∈
ℕ0) |
6 | 5 | nn0zd 12424 |
. . . . . 6
⊢ ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝐴 gcd 𝐵) ∈ ℤ) |
7 | 6 | ad2antrr 723 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 gcd 𝐵) ∈ ℤ) |
8 | | 1nn 11984 |
. . . . . 6
⊢ 1 ∈
ℕ |
9 | 8 | a1i 11 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → 1 ∈
ℕ) |
10 | | dvdsle 16019 |
. . . . 5
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ 1 ∈ ℕ)
→ ((𝐴 gcd 𝐵) ∥ 1 → (𝐴 gcd 𝐵) ≤ 1)) |
11 | 7, 9, 10 | syl2anc 584 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → ((𝐴 gcd 𝐵) ∥ 1 → (𝐴 gcd 𝐵) ≤ 1)) |
12 | 4, 11 | mpd 15 |
. . 3
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 gcd 𝐵) ≤ 1) |
13 | | simpll 764 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ)) |
14 | | oveq1 7282 |
. . . . . . . . . . . . 13
⊢ (𝐴 = 0 → (𝐴 · 𝑋) = (0 · 𝑋)) |
15 | | oveq1 7282 |
. . . . . . . . . . . . 13
⊢ (𝐵 = 0 → (𝐵 · 𝑌) = (0 · 𝑌)) |
16 | 14, 15 | oveqan12d 7294 |
. . . . . . . . . . . 12
⊢ ((𝐴 = 0 ∧ 𝐵 = 0) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = ((0 · 𝑋) + (0 · 𝑌))) |
17 | | zcn 12324 |
. . . . . . . . . . . . . 14
⊢ (𝑋 ∈ ℤ → 𝑋 ∈
ℂ) |
18 | 17 | mul02d 11173 |
. . . . . . . . . . . . 13
⊢ (𝑋 ∈ ℤ → (0
· 𝑋) =
0) |
19 | | zcn 12324 |
. . . . . . . . . . . . . 14
⊢ (𝑌 ∈ ℤ → 𝑌 ∈
ℂ) |
20 | 19 | mul02d 11173 |
. . . . . . . . . . . . 13
⊢ (𝑌 ∈ ℤ → (0
· 𝑌) =
0) |
21 | 18, 20 | oveqan12d 7294 |
. . . . . . . . . . . 12
⊢ ((𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ) → ((0
· 𝑋) + (0 ·
𝑌)) = (0 +
0)) |
22 | 16, 21 | sylan9eqr 2800 |
. . . . . . . . . . 11
⊢ (((𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ) ∧ (𝐴 = 0 ∧ 𝐵 = 0)) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = (0 + 0)) |
23 | | 00id 11150 |
. . . . . . . . . . 11
⊢ (0 + 0) =
0 |
24 | 22, 23 | eqtrdi 2794 |
. . . . . . . . . 10
⊢ (((𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ) ∧ (𝐴 = 0 ∧ 𝐵 = 0)) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 0) |
25 | 24 | adantll 711 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ (𝐴 = 0 ∧ 𝐵 = 0)) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 0) |
26 | | 0ne1 12044 |
. . . . . . . . . 10
⊢ 0 ≠
1 |
27 | 26 | a1i 11 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ (𝐴 = 0 ∧ 𝐵 = 0)) → 0 ≠ 1) |
28 | 25, 27 | eqnetrd 3011 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ (𝐴 = 0 ∧ 𝐵 = 0)) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) ≠ 1) |
29 | 28 | ex 413 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) → ((𝐴 = 0 ∧ 𝐵 = 0) → ((𝐴 · 𝑋) + (𝐵 · 𝑌)) ≠ 1)) |
30 | 29 | necon2bd 2959 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) →
(((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1 → ¬ (𝐴 = 0 ∧ 𝐵 = 0))) |
31 | 30 | imp 407 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → ¬ (𝐴 = 0 ∧ 𝐵 = 0)) |
32 | | gcdn0cl 16209 |
. . . . 5
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ ¬
(𝐴 = 0 ∧ 𝐵 = 0)) → (𝐴 gcd 𝐵) ∈ ℕ) |
33 | 13, 31, 32 | syl2anc 584 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 gcd 𝐵) ∈ ℕ) |
34 | | nnle1eq1 12003 |
. . . 4
⊢ ((𝐴 gcd 𝐵) ∈ ℕ → ((𝐴 gcd 𝐵) ≤ 1 ↔ (𝐴 gcd 𝐵) = 1)) |
35 | 33, 34 | syl 17 |
. . 3
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → ((𝐴 gcd 𝐵) ≤ 1 ↔ (𝐴 gcd 𝐵) = 1)) |
36 | 12, 35 | mpbid 231 |
. 2
⊢ ((((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) ∧ ((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1) → (𝐴 gcd 𝐵) = 1) |
37 | 36 | ex 413 |
1
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ)) →
(((𝐴 · 𝑋) + (𝐵 · 𝑌)) = 1 → (𝐴 gcd 𝐵) = 1)) |