Proof of Theorem pythagtriplem19
Step | Hyp | Ref
| Expression |
1 | | gcdnncl 11896 |
. . . . 5
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℕ) |
2 | 1 | 3adant3 1007 |
. . . 4
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℕ) |
3 | 2 | 3ad2ant1 1008 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (𝐴 gcd 𝐵) ∈ ℕ) |
4 | | nnz 9206 |
. . . . . . . . . . 11
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℤ) |
5 | | nnz 9206 |
. . . . . . . . . . 11
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℤ) |
6 | | gcddvds 11892 |
. . . . . . . . . . 11
⊢ ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) |
7 | 4, 5, 6 | syl2an 287 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) |
8 | 7 | 3adant3 1007 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) |
9 | 8 | simpld 111 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ∥ 𝐴) |
10 | 2 | nnzd 9308 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℤ) |
11 | 2 | nnne0d 8898 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ≠ 0) |
12 | 4 | 3ad2ant1 1008 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐴 ∈
ℤ) |
13 | | dvdsval2 11726 |
. . . . . . . . 9
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐴 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
14 | 10, 11, 12, 13 | syl3anc 1228 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
15 | 9, 14 | mpbid 146 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ) |
16 | | nnre 8860 |
. . . . . . . . 9
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℝ) |
17 | 16 | 3ad2ant1 1008 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐴 ∈
ℝ) |
18 | 2 | nnred 8866 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℝ) |
19 | | nngt0 8878 |
. . . . . . . . 9
⊢ (𝐴 ∈ ℕ → 0 <
𝐴) |
20 | 19 | 3ad2ant1 1008 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
𝐴) |
21 | 2 | nngt0d 8897 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
(𝐴 gcd 𝐵)) |
22 | 17, 18, 20, 21 | divgt0d 8826 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
(𝐴 / (𝐴 gcd 𝐵))) |
23 | | elnnz 9197 |
. . . . . . 7
⊢ ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ ↔ ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ 0 < (𝐴 / (𝐴 gcd 𝐵)))) |
24 | 15, 22, 23 | sylanbrc 414 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ) |
25 | 24 | 3ad2ant1 1008 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ) |
26 | 8 | simprd 113 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ∥ 𝐵) |
27 | 5 | 3ad2ant2 1009 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 ∈
ℤ) |
28 | | dvdsval2 11726 |
. . . . . . . . 9
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
29 | 10, 11, 27, 28 | syl3anc 1228 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
30 | 26, 29 | mpbid 146 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ) |
31 | | nnre 8860 |
. . . . . . . . 9
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℝ) |
32 | 31 | 3ad2ant2 1009 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 ∈
ℝ) |
33 | | nngt0 8878 |
. . . . . . . . 9
⊢ (𝐵 ∈ ℕ → 0 <
𝐵) |
34 | 33 | 3ad2ant2 1009 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
𝐵) |
35 | 32, 18, 34, 21 | divgt0d 8826 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
(𝐵 / (𝐴 gcd 𝐵))) |
36 | | elnnz 9197 |
. . . . . . 7
⊢ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ ↔ ((𝐵 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ 0 < (𝐵 / (𝐴 gcd 𝐵)))) |
37 | 30, 35, 36 | sylanbrc 414 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ) |
38 | 37 | 3ad2ant1 1008 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ) |
39 | | dvdssq 11960 |
. . . . . . . . . . . . . . 15
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ 𝐴 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐴↑2))) |
40 | 10, 12, 39 | syl2anc 409 |
. . . . . . . . . . . . . 14
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐴↑2))) |
41 | | dvdssq 11960 |
. . . . . . . . . . . . . . 15
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐵↑2))) |
42 | 10, 27, 41 | syl2anc 409 |
. . . . . . . . . . . . . 14
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐵 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐵↑2))) |
43 | 40, 42 | anbi12d 465 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵) ↔ (((𝐴 gcd 𝐵)↑2) ∥ (𝐴↑2) ∧ ((𝐴 gcd 𝐵)↑2) ∥ (𝐵↑2)))) |
44 | 8, 43 | mpbid 146 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴 gcd 𝐵)↑2) ∥ (𝐴↑2) ∧ ((𝐴 gcd 𝐵)↑2) ∥ (𝐵↑2))) |
45 | 2 | nnsqcld 10605 |
. . . . . . . . . . . . . 14
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵)↑2) ∈ ℕ) |
46 | 45 | nnzd 9308 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵)↑2) ∈ ℤ) |
47 | | nnsqcl 10520 |
. . . . . . . . . . . . . . 15
⊢ (𝐴 ∈ ℕ → (𝐴↑2) ∈
ℕ) |
48 | 47 | 3ad2ant1 1008 |
. . . . . . . . . . . . . 14
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴↑2) ∈
ℕ) |
49 | 48 | nnzd 9308 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴↑2) ∈
ℤ) |
50 | | nnsqcl 10520 |
. . . . . . . . . . . . . . 15
⊢ (𝐵 ∈ ℕ → (𝐵↑2) ∈
ℕ) |
51 | 50 | 3ad2ant2 1009 |
. . . . . . . . . . . . . 14
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵↑2) ∈
ℕ) |
52 | 51 | nnzd 9308 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵↑2) ∈
ℤ) |
53 | | dvds2add 11761 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 gcd 𝐵)↑2) ∈ ℤ ∧ (𝐴↑2) ∈ ℤ ∧
(𝐵↑2) ∈ ℤ)
→ ((((𝐴 gcd 𝐵)↑2) ∥ (𝐴↑2) ∧ ((𝐴 gcd 𝐵)↑2) ∥ (𝐵↑2)) → ((𝐴 gcd 𝐵)↑2) ∥ ((𝐴↑2) + (𝐵↑2)))) |
54 | 46, 49, 52, 53 | syl3anc 1228 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) →
((((𝐴 gcd 𝐵)↑2) ∥ (𝐴↑2) ∧ ((𝐴 gcd 𝐵)↑2) ∥ (𝐵↑2)) → ((𝐴 gcd 𝐵)↑2) ∥ ((𝐴↑2) + (𝐵↑2)))) |
55 | 44, 54 | mpd 13 |
. . . . . . . . . . 11
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵)↑2) ∥ ((𝐴↑2) + (𝐵↑2))) |
56 | 55 | adantr 274 |
. . . . . . . . . 10
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐴 gcd 𝐵)↑2) ∥ ((𝐴↑2) + (𝐵↑2))) |
57 | | simpr 109 |
. . . . . . . . . 10
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) |
58 | 56, 57 | breqtrd 4007 |
. . . . . . . . 9
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐴 gcd 𝐵)↑2) ∥ (𝐶↑2)) |
59 | | nnz 9206 |
. . . . . . . . . . . 12
⊢ (𝐶 ∈ ℕ → 𝐶 ∈
ℤ) |
60 | 59 | 3ad2ant3 1010 |
. . . . . . . . . . 11
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐶 ∈
ℤ) |
61 | | dvdssq 11960 |
. . . . . . . . . . 11
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ 𝐶 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐶 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐶↑2))) |
62 | 10, 60, 61 | syl2anc 409 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐶 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐶↑2))) |
63 | 62 | adantr 274 |
. . . . . . . . 9
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐴 gcd 𝐵) ∥ 𝐶 ↔ ((𝐴 gcd 𝐵)↑2) ∥ (𝐶↑2))) |
64 | 58, 63 | mpbird 166 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (𝐴 gcd 𝐵) ∥ 𝐶) |
65 | | dvdsval2 11726 |
. . . . . . . . . 10
⊢ (((𝐴 gcd 𝐵) ∈ ℤ ∧ (𝐴 gcd 𝐵) ≠ 0 ∧ 𝐶 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐶 ↔ (𝐶 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
66 | 10, 11, 60, 65 | syl3anc 1228 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) ∥ 𝐶 ↔ (𝐶 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
67 | 66 | adantr 274 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐴 gcd 𝐵) ∥ 𝐶 ↔ (𝐶 / (𝐴 gcd 𝐵)) ∈ ℤ)) |
68 | 64, 67 | mpbid 146 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (𝐶 / (𝐴 gcd 𝐵)) ∈ ℤ) |
69 | | nnre 8860 |
. . . . . . . . . 10
⊢ (𝐶 ∈ ℕ → 𝐶 ∈
ℝ) |
70 | 69 | 3ad2ant3 1010 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐶 ∈
ℝ) |
71 | | nngt0 8878 |
. . . . . . . . . 10
⊢ (𝐶 ∈ ℕ → 0 <
𝐶) |
72 | 71 | 3ad2ant3 1010 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
𝐶) |
73 | 70, 18, 72, 21 | divgt0d 8826 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 0 <
(𝐶 / (𝐴 gcd 𝐵))) |
74 | 73 | adantr 274 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 0 < (𝐶 / (𝐴 gcd 𝐵))) |
75 | | elnnz 9197 |
. . . . . . 7
⊢ ((𝐶 / (𝐴 gcd 𝐵)) ∈ ℕ ↔ ((𝐶 / (𝐴 gcd 𝐵)) ∈ ℤ ∧ 0 < (𝐶 / (𝐴 gcd 𝐵)))) |
76 | 68, 74, 75 | sylanbrc 414 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (𝐶 / (𝐴 gcd 𝐵)) ∈ ℕ) |
77 | 76 | 3adant3 1007 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (𝐶 / (𝐴 gcd 𝐵)) ∈ ℕ) |
78 | 48 | nncnd 8867 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴↑2) ∈
ℂ) |
79 | 51 | nncnd 8867 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵↑2) ∈
ℂ) |
80 | 45 | nncnd 8867 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵)↑2) ∈ ℂ) |
81 | 45 | nnap0d 8899 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵)↑2) # 0) |
82 | 78, 79, 80, 81 | divdirapd 8721 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴↑2) + (𝐵↑2)) / ((𝐴 gcd 𝐵)↑2)) = (((𝐴↑2) / ((𝐴 gcd 𝐵)↑2)) + ((𝐵↑2) / ((𝐴 gcd 𝐵)↑2)))) |
83 | 82 | 3ad2ant1 1008 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (((𝐴↑2) + (𝐵↑2)) / ((𝐴 gcd 𝐵)↑2)) = (((𝐴↑2) / ((𝐴 gcd 𝐵)↑2)) + ((𝐵↑2) / ((𝐴 gcd 𝐵)↑2)))) |
84 | | nncn 8861 |
. . . . . . . . . 10
⊢ (𝐶 ∈ ℕ → 𝐶 ∈
ℂ) |
85 | 84 | 3ad2ant3 1010 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐶 ∈
ℂ) |
86 | 2 | nncnd 8867 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℂ) |
87 | 2 | nnap0d 8899 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 gcd 𝐵) # 0) |
88 | 85, 86, 87 | sqdivapd 10597 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐶 / (𝐴 gcd 𝐵))↑2) = ((𝐶↑2) / ((𝐴 gcd 𝐵)↑2))) |
89 | 88 | 3ad2ant1 1008 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ((𝐶 / (𝐴 gcd 𝐵))↑2) = ((𝐶↑2) / ((𝐴 gcd 𝐵)↑2))) |
90 | | oveq1 5848 |
. . . . . . . 8
⊢ (((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) → (((𝐴↑2) + (𝐵↑2)) / ((𝐴 gcd 𝐵)↑2)) = ((𝐶↑2) / ((𝐴 gcd 𝐵)↑2))) |
91 | 90 | 3ad2ant2 1009 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (((𝐴↑2) + (𝐵↑2)) / ((𝐴 gcd 𝐵)↑2)) = ((𝐶↑2) / ((𝐴 gcd 𝐵)↑2))) |
92 | 89, 91 | eqtr4d 2201 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ((𝐶 / (𝐴 gcd 𝐵))↑2) = (((𝐴↑2) + (𝐵↑2)) / ((𝐴 gcd 𝐵)↑2))) |
93 | | nncn 8861 |
. . . . . . . . . 10
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℂ) |
94 | 93 | 3ad2ant1 1008 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐴 ∈
ℂ) |
95 | 94, 86, 87 | sqdivapd 10597 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 / (𝐴 gcd 𝐵))↑2) = ((𝐴↑2) / ((𝐴 gcd 𝐵)↑2))) |
96 | | nncn 8861 |
. . . . . . . . . 10
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℂ) |
97 | 96 | 3ad2ant2 1009 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 ∈
ℂ) |
98 | 97, 86, 87 | sqdivapd 10597 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐵 / (𝐴 gcd 𝐵))↑2) = ((𝐵↑2) / ((𝐴 gcd 𝐵)↑2))) |
99 | 95, 98 | oveq12d 5859 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴 / (𝐴 gcd 𝐵))↑2) + ((𝐵 / (𝐴 gcd 𝐵))↑2)) = (((𝐴↑2) / ((𝐴 gcd 𝐵)↑2)) + ((𝐵↑2) / ((𝐴 gcd 𝐵)↑2)))) |
100 | 99 | 3ad2ant1 1008 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (((𝐴 / (𝐴 gcd 𝐵))↑2) + ((𝐵 / (𝐴 gcd 𝐵))↑2)) = (((𝐴↑2) / ((𝐴 gcd 𝐵)↑2)) + ((𝐵↑2) / ((𝐴 gcd 𝐵)↑2)))) |
101 | 83, 92, 100 | 3eqtr4rd 2209 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (((𝐴 / (𝐴 gcd 𝐵))↑2) + ((𝐵 / (𝐴 gcd 𝐵))↑2)) = ((𝐶 / (𝐴 gcd 𝐵))↑2)) |
102 | | gcddiv 11948 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ ∧ (𝐴 gcd 𝐵) ∈ ℕ) ∧ ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) → ((𝐴 gcd 𝐵) / (𝐴 gcd 𝐵)) = ((𝐴 / (𝐴 gcd 𝐵)) gcd (𝐵 / (𝐴 gcd 𝐵)))) |
103 | 12, 27, 2, 8, 102 | syl31anc 1231 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) / (𝐴 gcd 𝐵)) = ((𝐴 / (𝐴 gcd 𝐵)) gcd (𝐵 / (𝐴 gcd 𝐵)))) |
104 | 86, 87 | dividapd 8678 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) / (𝐴 gcd 𝐵)) = 1) |
105 | 103, 104 | eqtr3d 2200 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 / (𝐴 gcd 𝐵)) gcd (𝐵 / (𝐴 gcd 𝐵))) = 1) |
106 | 105 | 3ad2ant1 1008 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ((𝐴 / (𝐴 gcd 𝐵)) gcd (𝐵 / (𝐴 gcd 𝐵))) = 1) |
107 | | simp3 989 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) |
108 | | pythagtriplem18 12209 |
. . . . 5
⊢ ((((𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐶 / (𝐴 gcd 𝐵)) ∈ ℕ) ∧ (((𝐴 / (𝐴 gcd 𝐵))↑2) + ((𝐵 / (𝐴 gcd 𝐵))↑2)) = ((𝐶 / (𝐴 gcd 𝐵))↑2) ∧ (((𝐴 / (𝐴 gcd 𝐵)) gcd (𝐵 / (𝐴 gcd 𝐵))) = 1 ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2)))) |
109 | 25, 38, 77, 101, 106, 107, 108 | syl312anc 1249 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2)))) |
110 | 94, 86, 87 | divcanap2d 8684 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) = 𝐴) |
111 | 110 | eqcomd 2171 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐴 = ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵)))) |
112 | 97, 86, 87 | divcanap2d 8684 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) = 𝐵) |
113 | 112 | eqcomd 2171 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 = ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵)))) |
114 | 85, 86, 87 | divcanap2d 8684 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵))) = 𝐶) |
115 | 114 | eqcomd 2171 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐶 = ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵)))) |
116 | 111, 113,
115 | 3jca 1167 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴 = ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵))))) |
117 | 116 | 3ad2ant1 1008 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (𝐴 = ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵))))) |
118 | | oveq2 5849 |
. . . . . . . . . 10
⊢ ((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) → ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2)))) |
119 | 118 | eqeq2d 2177 |
. . . . . . . . 9
⊢ ((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) → (𝐴 = ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) ↔ 𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))))) |
120 | 119 | 3ad2ant1 1008 |
. . . . . . . 8
⊢ (((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → (𝐴 = ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) ↔ 𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))))) |
121 | | oveq2 5849 |
. . . . . . . . . 10
⊢ ((𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) → ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛)))) |
122 | 121 | eqeq2d 2177 |
. . . . . . . . 9
⊢ ((𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) → (𝐵 = ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) ↔ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))))) |
123 | 122 | 3ad2ant2 1009 |
. . . . . . . 8
⊢ (((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → (𝐵 = ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) ↔ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))))) |
124 | | oveq2 5849 |
. . . . . . . . . 10
⊢ ((𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2)) → ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵))) = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))) |
125 | 124 | eqeq2d 2177 |
. . . . . . . . 9
⊢ ((𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2)) → (𝐶 = ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵))) ↔ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2))))) |
126 | 125 | 3ad2ant3 1010 |
. . . . . . . 8
⊢ (((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → (𝐶 = ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵))) ↔ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2))))) |
127 | 120, 123,
126 | 3anbi123d 1302 |
. . . . . . 7
⊢ (((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → ((𝐴 = ((𝐴 gcd 𝐵) · (𝐴 / (𝐴 gcd 𝐵))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (𝐵 / (𝐴 gcd 𝐵))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · (𝐶 / (𝐴 gcd 𝐵)))) ↔ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))))) |
128 | 117, 127 | syl5ibcom 154 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))))) |
129 | 128 | reximdv 2566 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (∃𝑚 ∈ ℕ ((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → ∃𝑚 ∈ ℕ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))))) |
130 | 129 | reximdv 2566 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ((𝐴 / (𝐴 gcd 𝐵)) = ((𝑚↑2) − (𝑛↑2)) ∧ (𝐵 / (𝐴 gcd 𝐵)) = (2 · (𝑚 · 𝑛)) ∧ (𝐶 / (𝐴 gcd 𝐵)) = ((𝑚↑2) + (𝑛↑2))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))))) |
131 | 109, 130 | mpd 13 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2))))) |
132 | | oveq1 5848 |
. . . . . . 7
⊢ (𝑘 = (𝐴 gcd 𝐵) → (𝑘 · ((𝑚↑2) − (𝑛↑2))) = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2)))) |
133 | 132 | eqeq2d 2177 |
. . . . . 6
⊢ (𝑘 = (𝐴 gcd 𝐵) → (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ↔ 𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))))) |
134 | | oveq1 5848 |
. . . . . . 7
⊢ (𝑘 = (𝐴 gcd 𝐵) → (𝑘 · (2 · (𝑚 · 𝑛))) = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛)))) |
135 | 134 | eqeq2d 2177 |
. . . . . 6
⊢ (𝑘 = (𝐴 gcd 𝐵) → (𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ↔ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))))) |
136 | | oveq1 5848 |
. . . . . . 7
⊢ (𝑘 = (𝐴 gcd 𝐵) → (𝑘 · ((𝑚↑2) + (𝑛↑2))) = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))) |
137 | 136 | eqeq2d 2177 |
. . . . . 6
⊢ (𝑘 = (𝐴 gcd 𝐵) → (𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))) ↔ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2))))) |
138 | 133, 135,
137 | 3anbi123d 1302 |
. . . . 5
⊢ (𝑘 = (𝐴 gcd 𝐵) → ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))))) |
139 | 138 | 2rexbidv 2490 |
. . . 4
⊢ (𝑘 = (𝐴 gcd 𝐵) → (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2)))))) |
140 | 139 | rspcev 2829 |
. . 3
⊢ (((𝐴 gcd 𝐵) ∈ ℕ ∧ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = ((𝐴 gcd 𝐵) · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = ((𝐴 gcd 𝐵) · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = ((𝐴 gcd 𝐵) · ((𝑚↑2) + (𝑛↑2))))) → ∃𝑘 ∈ ℕ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
141 | 3, 131, 140 | syl2anc 409 |
. 2
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ∃𝑘 ∈ ℕ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
142 | | rexcom 2629 |
. . 3
⊢
(∃𝑘 ∈
ℕ ∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑛 ∈ ℕ ∃𝑘 ∈ ℕ ∃𝑚 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
143 | | rexcom 2629 |
. . . 4
⊢
(∃𝑘 ∈
ℕ ∃𝑚 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
144 | 143 | rexbii 2472 |
. . 3
⊢
(∃𝑛 ∈
ℕ ∃𝑘 ∈
ℕ ∃𝑚 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
145 | 142, 144 | bitri 183 |
. 2
⊢
(∃𝑘 ∈
ℕ ∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
146 | 141, 145 | sylib 121 |
1
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |