Proof of Theorem pythagtriplem3
Step | Hyp | Ref
| Expression |
1 | | oveq2 5859 |
. . . . . . 7
⊢ (((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) → ((𝐵↑2) gcd ((𝐴↑2) + (𝐵↑2))) = ((𝐵↑2) gcd (𝐶↑2))) |
2 | 1 | adantl 275 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵↑2) gcd ((𝐴↑2) + (𝐵↑2))) = ((𝐵↑2) gcd (𝐶↑2))) |
3 | | nnz 9220 |
. . . . . . . . . . 11
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℤ) |
4 | | zsqcl 10535 |
. . . . . . . . . . 11
⊢ (𝐵 ∈ ℤ → (𝐵↑2) ∈
ℤ) |
5 | 3, 4 | syl 14 |
. . . . . . . . . 10
⊢ (𝐵 ∈ ℕ → (𝐵↑2) ∈
ℤ) |
6 | 5 | 3ad2ant2 1014 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵↑2) ∈
ℤ) |
7 | | nnz 9220 |
. . . . . . . . . . 11
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℤ) |
8 | | zsqcl 10535 |
. . . . . . . . . . 11
⊢ (𝐴 ∈ ℤ → (𝐴↑2) ∈
ℤ) |
9 | 7, 8 | syl 14 |
. . . . . . . . . 10
⊢ (𝐴 ∈ ℕ → (𝐴↑2) ∈
ℤ) |
10 | 9 | 3ad2ant1 1013 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴↑2) ∈
ℤ) |
11 | | gcdadd 11929 |
. . . . . . . . 9
⊢ (((𝐵↑2) ∈ ℤ ∧
(𝐴↑2) ∈ ℤ)
→ ((𝐵↑2) gcd
(𝐴↑2)) = ((𝐵↑2) gcd ((𝐴↑2) + (𝐵↑2)))) |
12 | 6, 10, 11 | syl2anc 409 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵↑2) gcd (𝐴↑2)) = ((𝐵↑2) gcd ((𝐴↑2) + (𝐵↑2)))) |
13 | 6, 10 | gcdcomd 11918 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵↑2) gcd (𝐴↑2)) = ((𝐴↑2) gcd (𝐵↑2))) |
14 | 12, 13 | eqtr3d 2205 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵↑2) gcd ((𝐴↑2) + (𝐵↑2))) = ((𝐴↑2) gcd (𝐵↑2))) |
15 | 14 | adantr 274 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵↑2) gcd ((𝐴↑2) + (𝐵↑2))) = ((𝐴↑2) gcd (𝐵↑2))) |
16 | 2, 15 | eqtr3d 2205 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵↑2) gcd (𝐶↑2)) = ((𝐴↑2) gcd (𝐵↑2))) |
17 | | simpl2 996 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐵 ∈ ℕ) |
18 | | simpl3 997 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐶 ∈ ℕ) |
19 | | sqgcd 11973 |
. . . . . 6
⊢ ((𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵 gcd 𝐶)↑2) = ((𝐵↑2) gcd (𝐶↑2))) |
20 | 17, 18, 19 | syl2anc 409 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵 gcd 𝐶)↑2) = ((𝐵↑2) gcd (𝐶↑2))) |
21 | | simpl1 995 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐴 ∈ ℕ) |
22 | | sqgcd 11973 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵)↑2) = ((𝐴↑2) gcd (𝐵↑2))) |
23 | 21, 17, 22 | syl2anc 409 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐴 gcd 𝐵)↑2) = ((𝐴↑2) gcd (𝐵↑2))) |
24 | 16, 20, 23 | 3eqtr4d 2213 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵 gcd 𝐶)↑2) = ((𝐴 gcd 𝐵)↑2)) |
25 | 24 | 3adant3 1012 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐵 gcd 𝐶)↑2) = ((𝐴 gcd 𝐵)↑2)) |
26 | | simp3l 1020 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (𝐴 gcd 𝐵) = 1) |
27 | 26 | oveq1d 5866 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐴 gcd 𝐵)↑2) = (1↑2)) |
28 | 25, 27 | eqtrd 2203 |
. 2
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐵 gcd 𝐶)↑2) = (1↑2)) |
29 | 3 | 3ad2ant2 1014 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 ∈
ℤ) |
30 | | nnz 9220 |
. . . . . . 7
⊢ (𝐶 ∈ ℕ → 𝐶 ∈
ℤ) |
31 | 30 | 3ad2ant3 1015 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐶 ∈
ℤ) |
32 | 29, 31 | gcdcld 11912 |
. . . . 5
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵 gcd 𝐶) ∈
ℕ0) |
33 | 32 | nn0red 9178 |
. . . 4
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵 gcd 𝐶) ∈ ℝ) |
34 | 33 | 3ad2ant1 1013 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (𝐵 gcd 𝐶) ∈ ℝ) |
35 | 32 | nn0ge0d 9180 |
. . . 4
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 ≤
(𝐵 gcd 𝐶)) |
36 | 35 | 3ad2ant1 1013 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → 0 ≤ (𝐵 gcd 𝐶)) |
37 | | 1re 7908 |
. . . 4
⊢ 1 ∈
ℝ |
38 | | 0le1 8389 |
. . . 4
⊢ 0 ≤
1 |
39 | | sq11 10537 |
. . . 4
⊢ ((((𝐵 gcd 𝐶) ∈ ℝ ∧ 0 ≤ (𝐵 gcd 𝐶)) ∧ (1 ∈ ℝ ∧ 0 ≤ 1))
→ (((𝐵 gcd 𝐶)↑2) = (1↑2) ↔
(𝐵 gcd 𝐶) = 1)) |
40 | 37, 38, 39 | mpanr12 437 |
. . 3
⊢ (((𝐵 gcd 𝐶) ∈ ℝ ∧ 0 ≤ (𝐵 gcd 𝐶)) → (((𝐵 gcd 𝐶)↑2) = (1↑2) ↔ (𝐵 gcd 𝐶) = 1)) |
41 | 34, 36, 40 | syl2anc 409 |
. 2
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (((𝐵 gcd 𝐶)↑2) = (1↑2) ↔ (𝐵 gcd 𝐶) = 1)) |
42 | 28, 41 | mpbid 146 |
1
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (𝐵 gcd 𝐶) = 1) |