Proof of Theorem pythagtriplem3
Step | Hyp | Ref
| Expression |
1 | | oveq2 5849 |
. . . . . . 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 9206 |
. . . . . . . . . . 11
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℤ) |
4 | | zsqcl 10521 |
. . . . . . . . . . 11
⊢ (𝐵 ∈ ℤ → (𝐵↑2) ∈
ℤ) |
5 | 3, 4 | syl 14 |
. . . . . . . . . 10
⊢ (𝐵 ∈ ℕ → (𝐵↑2) ∈
ℤ) |
6 | 5 | 3ad2ant2 1009 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵↑2) ∈
ℤ) |
7 | | nnz 9206 |
. . . . . . . . . . 11
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℤ) |
8 | | zsqcl 10521 |
. . . . . . . . . . 11
⊢ (𝐴 ∈ ℤ → (𝐴↑2) ∈
ℤ) |
9 | 7, 8 | syl 14 |
. . . . . . . . . 10
⊢ (𝐴 ∈ ℕ → (𝐴↑2) ∈
ℤ) |
10 | 9 | 3ad2ant1 1008 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴↑2) ∈
ℤ) |
11 | | gcdadd 11914 |
. . . . . . . . 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 11903 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵↑2) gcd (𝐴↑2)) = ((𝐴↑2) gcd (𝐵↑2))) |
14 | 12, 13 | eqtr3d 2200 |
. . . . . . 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 2200 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵↑2) gcd (𝐶↑2)) = ((𝐴↑2) gcd (𝐵↑2))) |
17 | | simpl2 991 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐵 ∈ ℕ) |
18 | | simpl3 992 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐶 ∈ ℕ) |
19 | | sqgcd 11958 |
. . . . . 6
⊢ ((𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵 gcd 𝐶)↑2) = ((𝐵↑2) gcd (𝐶↑2))) |
20 | 17, 18, 19 | syl2anc 409 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵 gcd 𝐶)↑2) = ((𝐵↑2) gcd (𝐶↑2))) |
21 | | simpl1 990 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐴 ∈ ℕ) |
22 | | sqgcd 11958 |
. . . . . 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 2208 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵 gcd 𝐶)↑2) = ((𝐴 gcd 𝐵)↑2)) |
25 | 24 | 3adant3 1007 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐵 gcd 𝐶)↑2) = ((𝐴 gcd 𝐵)↑2)) |
26 | | simp3l 1015 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (𝐴 gcd 𝐵) = 1) |
27 | 26 | oveq1d 5856 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐴 gcd 𝐵)↑2) = (1↑2)) |
28 | 25, 27 | eqtrd 2198 |
. 2
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐵 gcd 𝐶)↑2) = (1↑2)) |
29 | 3 | 3ad2ant2 1009 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 ∈
ℤ) |
30 | | nnz 9206 |
. . . . . . 7
⊢ (𝐶 ∈ ℕ → 𝐶 ∈
ℤ) |
31 | 30 | 3ad2ant3 1010 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐶 ∈
ℤ) |
32 | 29, 31 | gcdcld 11897 |
. . . . 5
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵 gcd 𝐶) ∈
ℕ0) |
33 | 32 | nn0red 9164 |
. . . 4
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵 gcd 𝐶) ∈ ℝ) |
34 | 33 | 3ad2ant1 1008 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (𝐵 gcd 𝐶) ∈ ℝ) |
35 | 32 | nn0ge0d 9166 |
. . . 4
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 ≤
(𝐵 gcd 𝐶)) |
36 | 35 | 3ad2ant1 1008 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → 0 ≤ (𝐵 gcd 𝐶)) |
37 | | 1re 7894 |
. . . 4
⊢ 1 ∈
ℝ |
38 | | 0le1 8375 |
. . . 4
⊢ 0 ≤
1 |
39 | | sq11 10523 |
. . . 4
⊢ ((((𝐵 gcd 𝐶) ∈ ℝ ∧ 0 ≤ (𝐵 gcd 𝐶)) ∧ (1 ∈ ℝ ∧ 0 ≤ 1))
→ (((𝐵 gcd 𝐶)↑2) = (1↑2) ↔
(𝐵 gcd 𝐶) = 1)) |
40 | 37, 38, 39 | mpanr12 436 |
. . 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) |