Proof of Theorem pythagtrip
Step | Hyp | Ref
| Expression |
1 | | divgcdodd 12071 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (¬ 2
∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))) |
2 | 1 | 3adant3 1007 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (¬ 2
∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))) |
3 | 2 | adantr 274 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)))) |
4 | | pythagtriplem19 12210 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
5 | 4 | 3expia 1195 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
6 | | simp12 1018 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → 𝐵 ∈ ℕ) |
7 | | simp11 1017 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → 𝐴 ∈ ℕ) |
8 | | simp13 1019 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → 𝐶 ∈ ℕ) |
9 | | nnsqcl 10520 |
. . . . . . . . . . . . . 14
⊢ (𝐴 ∈ ℕ → (𝐴↑2) ∈
ℕ) |
10 | 9 | nncnd 8867 |
. . . . . . . . . . . . 13
⊢ (𝐴 ∈ ℕ → (𝐴↑2) ∈
ℂ) |
11 | 10 | 3ad2ant1 1008 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐴↑2) ∈
ℂ) |
12 | | nnsqcl 10520 |
. . . . . . . . . . . . . 14
⊢ (𝐵 ∈ ℕ → (𝐵↑2) ∈
ℕ) |
13 | 12 | nncnd 8867 |
. . . . . . . . . . . . 13
⊢ (𝐵 ∈ ℕ → (𝐵↑2) ∈
ℂ) |
14 | 13 | 3ad2ant2 1009 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐵↑2) ∈
ℂ) |
15 | 11, 14 | addcomd 8045 |
. . . . . . . . . . 11
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ((𝐴↑2) + (𝐵↑2)) = ((𝐵↑2) + (𝐴↑2))) |
16 | 15 | eqeq1d 2174 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ↔ ((𝐵↑2) + (𝐴↑2)) = (𝐶↑2))) |
17 | 16 | biimpa 294 |
. . . . . . . . 9
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((𝐵↑2) + (𝐴↑2)) = (𝐶↑2)) |
18 | 17 | 3adant3 1007 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → ((𝐵↑2) + (𝐴↑2)) = (𝐶↑2)) |
19 | | nnz 9206 |
. . . . . . . . . . . . . 14
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℤ) |
20 | 19 | 3ad2ant1 1008 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐴 ∈
ℤ) |
21 | | nnz 9206 |
. . . . . . . . . . . . . . 15
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℤ) |
22 | 21 | 3ad2ant2 1009 |
. . . . . . . . . . . . . 14
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐵 ∈
ℤ) |
23 | 22 | adantr 274 |
. . . . . . . . . . . . 13
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → 𝐵 ∈ ℤ) |
24 | | gcdcom 11902 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝐴 gcd 𝐵) = (𝐵 gcd 𝐴)) |
25 | 20, 23, 24 | syl2an2r 585 |
. . . . . . . . . . . 12
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (𝐴 gcd 𝐵) = (𝐵 gcd 𝐴)) |
26 | 25 | oveq2d 5857 |
. . . . . . . . . . 11
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (𝐵 / (𝐴 gcd 𝐵)) = (𝐵 / (𝐵 gcd 𝐴))) |
27 | 26 | breq2d 3993 |
. . . . . . . . . 10
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (2 ∥ (𝐵 / (𝐴 gcd 𝐵)) ↔ 2 ∥ (𝐵 / (𝐵 gcd 𝐴)))) |
28 | 27 | notbid 657 |
. . . . . . . . 9
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)) ↔ ¬ 2 ∥ (𝐵 / (𝐵 gcd 𝐴)))) |
29 | 28 | biimp3a 1335 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → ¬ 2 ∥ (𝐵 / (𝐵 gcd 𝐴))) |
30 | | pythagtriplem19 12210 |
. . . . . . . 8
⊢ (((𝐵 ∈ ℕ ∧ 𝐴 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐵↑2) + (𝐴↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐵 gcd 𝐴))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
31 | 6, 7, 8, 18, 29, 30 | syl311anc 1242 |
. . . . . . 7
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
32 | 31 | 3expia 1195 |
. . . . . 6
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵)) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
33 | 5, 32 | orim12d 776 |
. . . . 5
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ((¬ 2 ∥ (𝐴 / (𝐴 gcd 𝐵)) ∨ ¬ 2 ∥ (𝐵 / (𝐴 gcd 𝐵))) → (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))))) |
34 | 3, 33 | mpd 13 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
35 | | simplll 523 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝐴 ∈
ℕ) |
36 | | simpllr 524 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝐵 ∈
ℕ) |
37 | | nnz 9206 |
. . . . . . . . . . . . 13
⊢ (𝑘 ∈ ℕ → 𝑘 ∈
ℤ) |
38 | 37 | adantl 275 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝑘 ∈
ℤ) |
39 | | simplrr 526 |
. . . . . . . . . . . . . . 15
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝑚 ∈
ℕ) |
40 | 39 | nnzd 9308 |
. . . . . . . . . . . . . 14
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝑚 ∈
ℤ) |
41 | | zsqcl 10521 |
. . . . . . . . . . . . . 14
⊢ (𝑚 ∈ ℤ → (𝑚↑2) ∈
ℤ) |
42 | 40, 41 | syl 14 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (𝑚↑2) ∈
ℤ) |
43 | | simplrl 525 |
. . . . . . . . . . . . . . 15
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝑛 ∈
ℕ) |
44 | 43 | nnzd 9308 |
. . . . . . . . . . . . . 14
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 𝑛 ∈
ℤ) |
45 | | zsqcl 10521 |
. . . . . . . . . . . . . 14
⊢ (𝑛 ∈ ℤ → (𝑛↑2) ∈
ℤ) |
46 | 44, 45 | syl 14 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (𝑛↑2) ∈
ℤ) |
47 | 42, 46 | zsubcld 9314 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → ((𝑚↑2) − (𝑛↑2)) ∈
ℤ) |
48 | 38, 47 | zmulcld 9315 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∈ ℤ) |
49 | | 2z 9215 |
. . . . . . . . . . . . . 14
⊢ 2 ∈
ℤ |
50 | 49 | a1i 9 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → 2 ∈
ℤ) |
51 | 40, 44 | zmulcld 9315 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (𝑚 · 𝑛) ∈ ℤ) |
52 | 50, 51 | zmulcld 9315 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (2
· (𝑚 · 𝑛)) ∈
ℤ) |
53 | 38, 52 | zmulcld 9315 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (𝑘 · (2 · (𝑚 · 𝑛))) ∈ ℤ) |
54 | | preq12bg 3752 |
. . . . . . . . . . 11
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ ((𝑘 · ((𝑚↑2) − (𝑛↑2))) ∈ ℤ ∧ (𝑘 · (2 · (𝑚 · 𝑛))) ∈ ℤ)) → ({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ↔ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))))) |
55 | 35, 36, 48, 53, 54 | syl22anc 1229 |
. . . . . . . . . 10
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → ({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ↔ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))))) |
56 | 55 | anbi1d 461 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) ∧ 𝑘 ∈ ℕ) → (({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
57 | 56 | rexbidva 2462 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝑛 ∈ ℕ ∧ 𝑚 ∈ ℕ)) →
(∃𝑘 ∈ ℕ
({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑘 ∈ ℕ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
58 | 57 | 2rexbidva 2488 |
. . . . . . 7
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) →
(∃𝑛 ∈ ℕ
∃𝑚 ∈ ℕ
∃𝑘 ∈ ℕ
({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
59 | | andir 809 |
. . . . . . . . . . 11
⊢ ((((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ((𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2)))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
60 | | df-3an 970 |
. . . . . . . . . . . 12
⊢ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
61 | | df-3an 970 |
. . . . . . . . . . . 12
⊢ ((𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ((𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2)))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
62 | 60, 61 | orbi12i 754 |
. . . . . . . . . . 11
⊢ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ((𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2)))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
63 | | 3ancoma 975 |
. . . . . . . . . . . 12
⊢ ((𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
64 | 63 | orbi2i 752 |
. . . . . . . . . . 11
⊢ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
65 | 59, 62, 64 | 3bitr2i 207 |
. . . . . . . . . 10
⊢ ((((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
66 | 65 | rexbii 2472 |
. . . . . . . . 9
⊢
(∃𝑘 ∈
ℕ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑘 ∈ ℕ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
67 | 66 | 2rexbii 2474 |
. . . . . . . 8
⊢
(∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ ∃𝑘 ∈
ℕ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
68 | | r19.43 2623 |
. . . . . . . . . 10
⊢
(∃𝑘 ∈
ℕ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ (∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
69 | 68 | 2rexbii 2474 |
. . . . . . . . 9
⊢
(∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ ∃𝑘 ∈
ℕ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ (∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
70 | | r19.43 2623 |
. . . . . . . . . . 11
⊢
(∃𝑚 ∈
ℕ (∃𝑘 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ (∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
71 | 70 | rexbii 2472 |
. . . . . . . . . 10
⊢
(∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ (∃𝑘 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ ∃𝑛 ∈ ℕ (∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
72 | | r19.43 2623 |
. . . . . . . . . 10
⊢
(∃𝑛 ∈
ℕ (∃𝑚 ∈
ℕ ∃𝑘 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
73 | 71, 72 | bitri 183 |
. . . . . . . . 9
⊢
(∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ (∃𝑘 ∈
ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
74 | 69, 73 | bitri 183 |
. . . . . . . 8
⊢
(∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ ∃𝑘 ∈
ℕ ((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
75 | 67, 74 | bitri 183 |
. . . . . . 7
⊢
(∃𝑛 ∈
ℕ ∃𝑚 ∈
ℕ ∃𝑘 ∈
ℕ (((𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛)))) ∨ (𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
76 | 58, 75 | bitrdi 195 |
. . . . . 6
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) →
(∃𝑛 ∈ ℕ
∃𝑚 ∈ ℕ
∃𝑘 ∈ ℕ
({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))))) |
77 | 76 | 3adant3 1007 |
. . . . 5
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) →
(∃𝑛 ∈ ℕ
∃𝑚 ∈ ℕ
∃𝑘 ∈ ℕ
({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))))) |
78 | 77 | adantr 274 |
. . . 4
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ ({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ↔ (∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐴 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐵 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) ∨ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ (𝐵 = (𝑘 · ((𝑚↑2) − (𝑛↑2))) ∧ 𝐴 = (𝑘 · (2 · (𝑚 · 𝑛))) ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))))) |
79 | 34, 78 | mpbird 166 |
. . 3
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2)) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ ({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2))))) |
80 | 79 | ex 114 |
. 2
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) → ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ ({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |
81 | | pythagtriplem2 12194 |
. . 3
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) →
(∃𝑛 ∈ ℕ
∃𝑚 ∈ ℕ
∃𝑘 ∈ ℕ
({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) → ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2))) |
82 | 81 | 3adant3 1007 |
. 2
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) →
(∃𝑛 ∈ ℕ
∃𝑚 ∈ ℕ
∃𝑘 ∈ ℕ
({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))) → ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2))) |
83 | 80, 82 | impbid 128 |
1
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ↔ ∃𝑛 ∈ ℕ ∃𝑚 ∈ ℕ ∃𝑘 ∈ ℕ ({𝐴, 𝐵} = {(𝑘 · ((𝑚↑2) − (𝑛↑2))), (𝑘 · (2 · (𝑚 · 𝑛)))} ∧ 𝐶 = (𝑘 · ((𝑚↑2) + (𝑛↑2)))))) |