MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  2sqreunnlem1 Structured version   Visualization version   GIF version

Theorem 2sqreunnlem1 26502
Description: Lemma 1 for 2sqreunn 26510. (Contributed by AV, 11-Jun-2023.)
Assertion
Ref Expression
2sqreunnlem1 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
Distinct variable group:   𝑃,𝑎,𝑏

Proof of Theorem 2sqreunnlem1
Dummy variables 𝑐 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 2sqnn 26492 . . 3 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑃 = ((𝑥↑2) + (𝑦↑2)))
2 simpll 763 . . . . . . . . 9 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → 𝑥 ∈ ℕ)
32adantl 481 . . . . . . . 8 ((𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → 𝑥 ∈ ℕ)
4 breq1 5073 . . . . . . . . . . 11 (𝑎 = 𝑥 → (𝑎𝑏𝑥𝑏))
5 oveq1 7262 . . . . . . . . . . . . 13 (𝑎 = 𝑥 → (𝑎↑2) = (𝑥↑2))
65oveq1d 7270 . . . . . . . . . . . 12 (𝑎 = 𝑥 → ((𝑎↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑏↑2)))
76eqeq1d 2740 . . . . . . . . . . 11 (𝑎 = 𝑥 → (((𝑎↑2) + (𝑏↑2)) = 𝑃 ↔ ((𝑥↑2) + (𝑏↑2)) = 𝑃))
84, 7anbi12d 630 . . . . . . . . . 10 (𝑎 = 𝑥 → ((𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃)))
98reubidv 3315 . . . . . . . . 9 (𝑎 = 𝑥 → (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃)))
109adantl 481 . . . . . . . 8 (((𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) ∧ 𝑎 = 𝑥) → (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃)))
11 simpr 484 . . . . . . . . . . . . . . 15 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → 𝑦 ∈ ℕ)
1211adantr 480 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → 𝑦 ∈ ℕ)
13 breq2 5074 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑦 → (𝑥𝑏𝑥𝑦))
14 oveq1 7262 . . . . . . . . . . . . . . . . . . 19 (𝑏 = 𝑦 → (𝑏↑2) = (𝑦↑2))
1514oveq2d 7271 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝑦 → ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))
1615eqeq1d 2740 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑦 → (((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ ((𝑥↑2) + (𝑦↑2)) = ((𝑥↑2) + (𝑦↑2))))
1713, 16anbi12d 630 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑦 → ((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ↔ (𝑥𝑦 ∧ ((𝑥↑2) + (𝑦↑2)) = ((𝑥↑2) + (𝑦↑2)))))
18 equequ1 2029 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝑦 → (𝑏 = 𝑐𝑦 = 𝑐))
1918imbi2d 340 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑦 → (((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐) ↔ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐)))
2019ralbidv 3120 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑦 → (∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐) ↔ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐)))
2117, 20anbi12d 630 . . . . . . . . . . . . . . 15 (𝑏 = 𝑦 → (((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)) ↔ ((𝑥𝑦 ∧ ((𝑥↑2) + (𝑦↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐))))
2221adantl 481 . . . . . . . . . . . . . 14 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑏 = 𝑦) → (((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)) ↔ ((𝑥𝑦 ∧ ((𝑥↑2) + (𝑦↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐))))
23 simpr 484 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → 𝑥𝑦)
24 eqidd 2739 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → ((𝑥↑2) + (𝑦↑2)) = ((𝑥↑2) + (𝑦↑2)))
25 nnre 11910 . . . . . . . . . . . . . . . . . . . . 21 (𝑐 ∈ ℕ → 𝑐 ∈ ℝ)
2625resqcld 13893 . . . . . . . . . . . . . . . . . . . 20 (𝑐 ∈ ℕ → (𝑐↑2) ∈ ℝ)
2726adantl 481 . . . . . . . . . . . . . . . . . . 19 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → (𝑐↑2) ∈ ℝ)
28 nnre 11910 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ ℕ → 𝑦 ∈ ℝ)
2928resqcld 13893 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ ℕ → (𝑦↑2) ∈ ℝ)
3029adantl 481 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦↑2) ∈ ℝ)
3130ad2antrr 722 . . . . . . . . . . . . . . . . . . 19 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → (𝑦↑2) ∈ ℝ)
32 nnre 11910 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 ∈ ℕ → 𝑥 ∈ ℝ)
3332resqcld 13893 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ ℕ → (𝑥↑2) ∈ ℝ)
3433adantr 480 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥↑2) ∈ ℝ)
3534ad2antrr 722 . . . . . . . . . . . . . . . . . . 19 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → (𝑥↑2) ∈ ℝ)
36 readdcan 11079 . . . . . . . . . . . . . . . . . . 19 (((𝑐↑2) ∈ ℝ ∧ (𝑦↑2) ∈ ℝ ∧ (𝑥↑2) ∈ ℝ) → (((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ (𝑐↑2) = (𝑦↑2)))
3727, 31, 35, 36syl3anc 1369 . . . . . . . . . . . . . . . . . 18 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → (((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ (𝑐↑2) = (𝑦↑2)))
3828ad4antlr 729 . . . . . . . . . . . . . . . . . . . 20 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → 𝑦 ∈ ℝ)
3925ad2antlr 723 . . . . . . . . . . . . . . . . . . . 20 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → 𝑐 ∈ ℝ)
40 nnnn0 12170 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
4140nn0ge0d 12226 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ ℕ → 0 ≤ 𝑦)
4241ad4antlr 729 . . . . . . . . . . . . . . . . . . . 20 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → 0 ≤ 𝑦)
43 nnnn0 12170 . . . . . . . . . . . . . . . . . . . . . 22 (𝑐 ∈ ℕ → 𝑐 ∈ ℕ0)
4443nn0ge0d 12226 . . . . . . . . . . . . . . . . . . . . 21 (𝑐 ∈ ℕ → 0 ≤ 𝑐)
4544ad2antlr 723 . . . . . . . . . . . . . . . . . . . 20 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → 0 ≤ 𝑐)
46 simpr 484 . . . . . . . . . . . . . . . . . . . . 21 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → (𝑐↑2) = (𝑦↑2))
4746eqcomd 2744 . . . . . . . . . . . . . . . . . . . 20 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → (𝑦↑2) = (𝑐↑2))
4838, 39, 42, 45, 47sq11d 13903 . . . . . . . . . . . . . . . . . . 19 (((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑦↑2)) → 𝑦 = 𝑐)
4948ex 412 . . . . . . . . . . . . . . . . . 18 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → ((𝑐↑2) = (𝑦↑2) → 𝑦 = 𝑐))
5037, 49sylbid 239 . . . . . . . . . . . . . . . . 17 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → (((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)) → 𝑦 = 𝑐))
5150adantld 490 . . . . . . . . . . . . . . . 16 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) ∧ 𝑐 ∈ ℕ) → ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐))
5251ralrimiva 3107 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐))
5323, 24, 52jca31 514 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → ((𝑥𝑦 ∧ ((𝑥↑2) + (𝑦↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑦 = 𝑐)))
5412, 22, 53rspcedvd 3555 . . . . . . . . . . . . 13 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → ∃𝑏 ∈ ℕ ((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)))
55 breq2 5074 . . . . . . . . . . . . . . 15 (𝑏 = 𝑐 → (𝑥𝑏𝑥𝑐))
56 oveq1 7262 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑐 → (𝑏↑2) = (𝑐↑2))
5756oveq2d 7271 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑐 → ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑐↑2)))
5857eqeq1d 2740 . . . . . . . . . . . . . . 15 (𝑏 = 𝑐 → (((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))))
5955, 58anbi12d 630 . . . . . . . . . . . . . 14 (𝑏 = 𝑐 → ((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ↔ (𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)))))
6059reu8 3663 . . . . . . . . . . . . 13 (∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ↔ ∃𝑏 ∈ ℕ ((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑥𝑐 ∧ ((𝑥↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)))
6154, 60sylibr 233 . . . . . . . . . . . 12 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑥𝑦) → ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))))
6261ex 412 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥𝑦 → ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
6362adantr 480 . . . . . . . . . 10 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → (𝑥𝑦 → ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
6463impcom 407 . . . . . . . . 9 ((𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))))
65 eqeq2 2750 . . . . . . . . . . . . 13 (𝑃 = ((𝑥↑2) + (𝑦↑2)) → (((𝑥↑2) + (𝑏↑2)) = 𝑃 ↔ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))))
6665anbi2d 628 . . . . . . . . . . . 12 (𝑃 = ((𝑥↑2) + (𝑦↑2)) → ((𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
6766reubidv 3315 . . . . . . . . . . 11 (𝑃 = ((𝑥↑2) + (𝑦↑2)) → (∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
6867adantl 481 . . . . . . . . . 10 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → (∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
6968adantl 481 . . . . . . . . 9 ((𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → (∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
7064, 69mpbird 256 . . . . . . . 8 ((𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → ∃!𝑏 ∈ ℕ (𝑥𝑏 ∧ ((𝑥↑2) + (𝑏↑2)) = 𝑃))
713, 10, 70rspcedvd 3555 . . . . . . 7 ((𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
7211adantr 480 . . . . . . . . 9 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → 𝑦 ∈ ℕ)
7372adantl 481 . . . . . . . 8 ((¬ 𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → 𝑦 ∈ ℕ)
74 breq1 5073 . . . . . . . . . . 11 (𝑎 = 𝑦 → (𝑎𝑏𝑦𝑏))
75 oveq1 7262 . . . . . . . . . . . . 13 (𝑎 = 𝑦 → (𝑎↑2) = (𝑦↑2))
7675oveq1d 7270 . . . . . . . . . . . 12 (𝑎 = 𝑦 → ((𝑎↑2) + (𝑏↑2)) = ((𝑦↑2) + (𝑏↑2)))
7776eqeq1d 2740 . . . . . . . . . . 11 (𝑎 = 𝑦 → (((𝑎↑2) + (𝑏↑2)) = 𝑃 ↔ ((𝑦↑2) + (𝑏↑2)) = 𝑃))
7874, 77anbi12d 630 . . . . . . . . . 10 (𝑎 = 𝑦 → ((𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃)))
7978reubidv 3315 . . . . . . . . 9 (𝑎 = 𝑦 → (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃)))
8079adantl 481 . . . . . . . 8 (((¬ 𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) ∧ 𝑎 = 𝑦) → (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃)))
81 simpll 763 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → 𝑥 ∈ ℕ)
82 breq2 5074 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑥 → (𝑦𝑏𝑦𝑥))
83 oveq1 7262 . . . . . . . . . . . . . . . . . . 19 (𝑏 = 𝑥 → (𝑏↑2) = (𝑥↑2))
8483oveq2d 7271 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝑥 → ((𝑦↑2) + (𝑏↑2)) = ((𝑦↑2) + (𝑥↑2)))
8584eqeq1d 2740 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑥 → (((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2))))
8682, 85anbi12d 630 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑥 → ((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ↔ (𝑦𝑥 ∧ ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2)))))
87 equequ1 2029 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝑥 → (𝑏 = 𝑐𝑥 = 𝑐))
8887imbi2d 340 . . . . . . . . . . . . . . . . 17 (𝑏 = 𝑥 → (((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐) ↔ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐)))
8988ralbidv 3120 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑥 → (∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐) ↔ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐)))
9086, 89anbi12d 630 . . . . . . . . . . . . . . 15 (𝑏 = 𝑥 → (((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)) ↔ ((𝑦𝑥 ∧ ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐))))
9190adantl 481 . . . . . . . . . . . . . 14 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) ∧ 𝑏 = 𝑥) → (((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)) ↔ ((𝑦𝑥 ∧ ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐))))
92 ltnle 10985 . . . . . . . . . . . . . . . . . 18 ((𝑦 ∈ ℝ ∧ 𝑥 ∈ ℝ) → (𝑦 < 𝑥 ↔ ¬ 𝑥𝑦))
9328, 32, 92syl2anr 596 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦 < 𝑥 ↔ ¬ 𝑥𝑦))
9428ad2antlr 723 . . . . . . . . . . . . . . . . . . 19 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑦 < 𝑥) → 𝑦 ∈ ℝ)
9532ad2antrr 722 . . . . . . . . . . . . . . . . . . 19 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑦 < 𝑥) → 𝑥 ∈ ℝ)
96 simpr 484 . . . . . . . . . . . . . . . . . . 19 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑦 < 𝑥) → 𝑦 < 𝑥)
9794, 95, 96ltled 11053 . . . . . . . . . . . . . . . . . 18 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑦 < 𝑥) → 𝑦𝑥)
9897ex 412 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦 < 𝑥𝑦𝑥))
9993, 98sylbird 259 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (¬ 𝑥𝑦𝑦𝑥))
10099imp 406 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → 𝑦𝑥)
10129recnd 10934 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ ℕ → (𝑦↑2) ∈ ℂ)
102101adantl 481 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦↑2) ∈ ℂ)
10333recnd 10934 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℕ → (𝑥↑2) ∈ ℂ)
104103adantr 480 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥↑2) ∈ ℂ)
105102, 104addcomd 11107 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2)))
106105adantr 480 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2)))
10734recnd 10934 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥↑2) ∈ ℂ)
108107adantr 480 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (𝑥↑2) ∈ ℂ)
10930recnd 10934 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑦↑2) ∈ ℂ)
110109adantr 480 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (𝑦↑2) ∈ ℂ)
111108, 110addcomd 11107 . . . . . . . . . . . . . . . . . . . . 21 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → ((𝑥↑2) + (𝑦↑2)) = ((𝑦↑2) + (𝑥↑2)))
112111eqeq2d 2749 . . . . . . . . . . . . . . . . . . . 20 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ ((𝑦↑2) + (𝑐↑2)) = ((𝑦↑2) + (𝑥↑2))))
11326adantl 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (𝑐↑2) ∈ ℝ)
11433ad2antrr 722 . . . . . . . . . . . . . . . . . . . . 21 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (𝑥↑2) ∈ ℝ)
11529ad2antlr 723 . . . . . . . . . . . . . . . . . . . . 21 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (𝑦↑2) ∈ ℝ)
116 readdcan 11079 . . . . . . . . . . . . . . . . . . . . 21 (((𝑐↑2) ∈ ℝ ∧ (𝑥↑2) ∈ ℝ ∧ (𝑦↑2) ∈ ℝ) → (((𝑦↑2) + (𝑐↑2)) = ((𝑦↑2) + (𝑥↑2)) ↔ (𝑐↑2) = (𝑥↑2)))
117113, 114, 115, 116syl3anc 1369 . . . . . . . . . . . . . . . . . . . 20 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (((𝑦↑2) + (𝑐↑2)) = ((𝑦↑2) + (𝑥↑2)) ↔ (𝑐↑2) = (𝑥↑2)))
118112, 117bitrd 278 . . . . . . . . . . . . . . . . . . 19 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ (𝑐↑2) = (𝑥↑2)))
11925ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → 𝑐 ∈ ℝ)
12032adantr 480 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → 𝑥 ∈ ℝ)
121120ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → 𝑥 ∈ ℝ)
12244ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → 0 ≤ 𝑐)
123 nnnn0 12170 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
124123nn0ge0d 12226 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 ∈ ℕ → 0 ≤ 𝑥)
125124adantr 480 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → 0 ≤ 𝑥)
126125ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → 0 ≤ 𝑥)
127 simpr 484 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → (𝑐↑2) = (𝑥↑2))
128119, 121, 122, 126, 127sq11d 13903 . . . . . . . . . . . . . . . . . . . . 21 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → 𝑐 = 𝑥)
129128eqcomd 2744 . . . . . . . . . . . . . . . . . . . 20 ((((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) ∧ (𝑐↑2) = (𝑥↑2)) → 𝑥 = 𝑐)
130129ex 412 . . . . . . . . . . . . . . . . . . 19 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → ((𝑐↑2) = (𝑥↑2) → 𝑥 = 𝑐))
131118, 130sylbid 239 . . . . . . . . . . . . . . . . . 18 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → (((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)) → 𝑥 = 𝑐))
132131adantld 490 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑐 ∈ ℕ) → ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐))
133132ralrimiva 3107 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐))
134133adantr 480 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐))
135100, 106, 134jca31 514 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → ((𝑦𝑥 ∧ ((𝑦↑2) + (𝑥↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑥 = 𝑐)))
13681, 91, 135rspcedvd 3555 . . . . . . . . . . . . 13 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → ∃𝑏 ∈ ℕ ((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)))
137 breq2 5074 . . . . . . . . . . . . . . 15 (𝑏 = 𝑐 → (𝑦𝑏𝑦𝑐))
13856oveq2d 7271 . . . . . . . . . . . . . . . 16 (𝑏 = 𝑐 → ((𝑦↑2) + (𝑏↑2)) = ((𝑦↑2) + (𝑐↑2)))
139138eqeq1d 2740 . . . . . . . . . . . . . . 15 (𝑏 = 𝑐 → (((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)) ↔ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))))
140137, 139anbi12d 630 . . . . . . . . . . . . . 14 (𝑏 = 𝑐 → ((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ↔ (𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2)))))
141140reu8 3663 . . . . . . . . . . . . 13 (∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ↔ ∃𝑏 ∈ ℕ ((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))) ∧ ∀𝑐 ∈ ℕ ((𝑦𝑐 ∧ ((𝑦↑2) + (𝑐↑2)) = ((𝑥↑2) + (𝑦↑2))) → 𝑏 = 𝑐)))
142136, 141sylibr 233 . . . . . . . . . . . 12 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ ¬ 𝑥𝑦) → ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))))
143142ex 412 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (¬ 𝑥𝑦 → ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
144143adantr 480 . . . . . . . . . 10 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → (¬ 𝑥𝑦 → ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
145144impcom 407 . . . . . . . . 9 ((¬ 𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))))
146 eqeq2 2750 . . . . . . . . . . . . 13 (𝑃 = ((𝑥↑2) + (𝑦↑2)) → (((𝑦↑2) + (𝑏↑2)) = 𝑃 ↔ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2))))
147146anbi2d 628 . . . . . . . . . . . 12 (𝑃 = ((𝑥↑2) + (𝑦↑2)) → ((𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
148147reubidv 3315 . . . . . . . . . . 11 (𝑃 = ((𝑥↑2) + (𝑦↑2)) → (∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
149148adantl 481 . . . . . . . . . 10 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → (∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
150149adantl 481 . . . . . . . . 9 ((¬ 𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → (∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = ((𝑥↑2) + (𝑦↑2)))))
151145, 150mpbird 256 . . . . . . . 8 ((¬ 𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → ∃!𝑏 ∈ ℕ (𝑦𝑏 ∧ ((𝑦↑2) + (𝑏↑2)) = 𝑃))
15273, 80, 151rspcedvd 3555 . . . . . . 7 ((¬ 𝑥𝑦 ∧ ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2)))) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
15371, 152pm2.61ian 808 . . . . . 6 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑃 = ((𝑥↑2) + (𝑦↑2))) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
154153ex 412 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑃 = ((𝑥↑2) + (𝑦↑2)) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
155154adantl 481 . . . 4 (((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) ∧ (𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ)) → (𝑃 = ((𝑥↑2) + (𝑦↑2)) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
156155rexlimdvva 3222 . . 3 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑃 = ((𝑥↑2) + (𝑦↑2)) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
1571, 156mpd 15 . 2 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
158 reurex 3352 . . . . 5 (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
159158a1i 11 . . . 4 (((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) ∧ 𝑎 ∈ ℕ) → (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
160159ralrimiva 3107 . . 3 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∀𝑎 ∈ ℕ (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
161 2sqmo 26490 . . . . 5 (𝑃 ∈ ℙ → ∃*𝑎 ∈ ℕ0𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
162 nnssnn0 12166 . . . . . 6 ℕ ⊆ ℕ0
163 nfcv 2906 . . . . . . 7 𝑎
164 nfcv 2906 . . . . . . 7 𝑎0
165163, 164ssrmof 3982 . . . . . 6 (ℕ ⊆ ℕ0 → (∃*𝑎 ∈ ℕ0𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
166162, 165ax-mp 5 . . . . 5 (∃*𝑎 ∈ ℕ0𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
167 ssrexv 3984 . . . . . . 7 (ℕ ⊆ ℕ0 → (∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
168162, 167ax-mp 5 . . . . . 6 (∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
169168rmoimi 3672 . . . . 5 (∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ0 (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
170161, 166, 1693syl 18 . . . 4 (𝑃 ∈ ℙ → ∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
171170adantr 480 . . 3 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
172 rmoim 3670 . . 3 (∀𝑎 ∈ ℕ (∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) → (∃*𝑎 ∈ ℕ ∃𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) → ∃*𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
173160, 171, 172sylc 65 . 2 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃*𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
174 reu5 3351 . 2 (∃!𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (∃𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃*𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))
175157, 173, 174sylanbrc 582 1 ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑎 ∈ ℕ ∃!𝑏 ∈ ℕ (𝑎𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  ∃!wreu 3065  ∃*wrmo 3066  wss 3883   class class class wbr 5070  (class class class)co 7255  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   < clt 10940  cle 10941  cn 11903  2c2 11958  4c4 11960  0cn0 12163   mod cmo 13517  cexp 13710  cprime 16304
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880  ax-addf 10881  ax-mulf 10882
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-iin 4924  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511  df-ofr 7512  df-om 7688  df-1st 7804  df-2nd 7805  df-supp 7949  df-tpos 8013  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-er 8456  df-ec 8458  df-qs 8462  df-map 8575  df-pm 8576  df-ixp 8644  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-fsupp 9059  df-sup 9131  df-inf 9132  df-oi 9199  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-4 11968  df-5 11969  df-6 11970  df-7 11971  df-8 11972  df-9 11973  df-n0 12164  df-xnn0 12236  df-z 12250  df-dec 12367  df-uz 12512  df-q 12618  df-rp 12660  df-fz 13169  df-fzo 13312  df-fl 13440  df-mod 13518  df-seq 13650  df-exp 13711  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-dvds 15892  df-gcd 16130  df-prm 16305  df-phi 16395  df-pc 16466  df-gz 16559  df-struct 16776  df-sets 16793  df-slot 16811  df-ndx 16823  df-base 16841  df-ress 16868  df-plusg 16901  df-mulr 16902  df-starv 16903  df-sca 16904  df-vsca 16905  df-ip 16906  df-tset 16907  df-ple 16908  df-ds 16910  df-unif 16911  df-hom 16912  df-cco 16913  df-0g 17069  df-gsum 17070  df-prds 17075  df-pws 17077  df-imas 17136  df-qus 17137  df-mre 17212  df-mrc 17213  df-acs 17215  df-mgm 18241  df-sgrp 18290  df-mnd 18301  df-mhm 18345  df-submnd 18346  df-grp 18495  df-minusg 18496  df-sbg 18497  df-mulg 18616  df-subg 18667  df-nsg 18668  df-eqg 18669  df-ghm 18747  df-cntz 18838  df-cmn 19303  df-abl 19304  df-mgp 19636  df-ur 19653  df-srg 19657  df-ring 19700  df-cring 19701  df-oppr 19777  df-dvdsr 19798  df-unit 19799  df-invr 19829  df-dvr 19840  df-rnghom 19874  df-drng 19908  df-field 19909  df-subrg 19937  df-lmod 20040  df-lss 20109  df-lsp 20149  df-sra 20349  df-rgmod 20350  df-lidl 20351  df-rsp 20352  df-2idl 20416  df-nzr 20442  df-rlreg 20467  df-domn 20468  df-idom 20469  df-cnfld 20511  df-zring 20583  df-zrh 20617  df-zn 20620  df-assa 20970  df-asp 20971  df-ascl 20972  df-psr 21022  df-mvr 21023  df-mpl 21024  df-opsr 21026  df-evls 21192  df-evl 21193  df-psr1 21261  df-vr1 21262  df-ply1 21263  df-coe1 21264  df-evl1 21392  df-mdeg 25122  df-deg1 25123  df-mon1 25200  df-uc1p 25201  df-q1p 25202  df-r1p 25203  df-lgs 26348
This theorem is referenced by:  2sqreunnltlem  26503  2sqreunn  26510
  Copyright terms: Public domain W3C validator