Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  pellex Structured version   Visualization version   GIF version

Theorem pellex 39439
Description: Every Pell equation has a nontrivial solution. Theorem 62 in [vandenDries] p. 43. (Contributed by Stefan O'Rear, 19-Oct-2014.)
Assertion
Ref Expression
pellex ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
Distinct variable group:   𝑥,𝐷,𝑦

Proof of Theorem pellex
Dummy variables 𝑎 𝑏 𝑐 𝑑 𝑒 𝑓 𝑔 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fzfi 13343 . . . . . . . 8 (0...((abs‘𝑎) − 1)) ∈ Fin
2 xpfi 8791 . . . . . . . 8 (((0...((abs‘𝑎) − 1)) ∈ Fin ∧ (0...((abs‘𝑎) − 1)) ∈ Fin) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin)
31, 1, 2mp2an 690 . . . . . . 7 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin
4 isfinite 9117 . . . . . . 7 (((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin ↔ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω)
53, 4mpbi 232 . . . . . 6 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω
6 nnenom 13351 . . . . . . 7 ℕ ≈ ω
76ensymi 8561 . . . . . 6 ω ≈ ℕ
8 sdomentr 8653 . . . . . 6 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω ∧ ω ≈ ℕ) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ)
95, 7, 8mp2an 690 . . . . 5 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ
10 ensym 8560 . . . . . 6 ({⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
1110ad2antll 727 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
12 sdomentr 8653 . . . . 5 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ ∧ ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
139, 11, 12sylancr 589 . . . 4 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
14 opabssxp 5645 . . . . . . . 8 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ⊆ (ℕ × ℕ)
1514sseli 3965 . . . . . . 7 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑑 ∈ (ℕ × ℕ))
16 simprrl 779 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℕ)
1716nnzd 12089 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℤ)
18 simpllr 774 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → 𝑎 ∈ ℤ)
19 simplr 767 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → 𝑎 ≠ 0)
20 nnabscl 14687 . . . . . . . . . . . 12 ((𝑎 ∈ ℤ ∧ 𝑎 ≠ 0) → (abs‘𝑎) ∈ ℕ)
2118, 19, 20syl2anc 586 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (abs‘𝑎) ∈ ℕ)
22 zmodfz 13264 . . . . . . . . . . 11 (((1st𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2317, 21, 22syl2anc 586 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
24 simprrr 780 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℕ)
2524nnzd 12089 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℤ)
26 zmodfz 13264 . . . . . . . . . . 11 (((2nd𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2725, 21, 26syl2anc 586 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2823, 27jca 514 . . . . . . . . 9 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1))))
2928ex 415 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))))
30 elxp7 7726 . . . . . . . 8 (𝑑 ∈ (ℕ × ℕ) ↔ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)))
31 opelxp 5593 . . . . . . . 8 (⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ↔ (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1))))
3229, 30, 313imtr4g 298 . . . . . . 7 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ (ℕ × ℕ) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1)))))
3315, 32syl5 34 . . . . . 6 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1)))))
3433imp 409 . . . . 5 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))))
3534adantlrr 719 . . . 4 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) ∧ 𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))))
36 fveq2 6672 . . . . . 6 (𝑑 = 𝑒 → (1st𝑑) = (1st𝑒))
3736oveq1d 7173 . . . . 5 (𝑑 = 𝑒 → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
38 fveq2 6672 . . . . . 6 (𝑑 = 𝑒 → (2nd𝑑) = (2nd𝑒))
3938oveq1d 7173 . . . . 5 (𝑑 = 𝑒 → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
4037, 39opeq12d 4813 . . . 4 (𝑑 = 𝑒 → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)
4113, 35, 40fphpd 39420 . . 3 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩))
42 eleq1w 2897 . . . . . . . . . . . 12 (𝑏 = 𝑓 → (𝑏 ∈ ℕ ↔ 𝑓 ∈ ℕ))
43 eleq1w 2897 . . . . . . . . . . . 12 (𝑐 = 𝑔 → (𝑐 ∈ ℕ ↔ 𝑔 ∈ ℕ))
4442, 43bi2anan9 637 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ↔ (𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ)))
45 oveq1 7165 . . . . . . . . . . . . 13 (𝑏 = 𝑓 → (𝑏↑2) = (𝑓↑2))
46 oveq1 7165 . . . . . . . . . . . . . 14 (𝑐 = 𝑔 → (𝑐↑2) = (𝑔↑2))
4746oveq2d 7174 . . . . . . . . . . . . 13 (𝑐 = 𝑔 → (𝐷 · (𝑐↑2)) = (𝐷 · (𝑔↑2)))
4845, 47oveqan12d 7177 . . . . . . . . . . . 12 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = ((𝑓↑2) − (𝐷 · (𝑔↑2))))
4948eqeq1d 2825 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎 ↔ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎))
5044, 49anbi12d 632 . . . . . . . . . 10 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎) ↔ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
5150cbvopabv 5140 . . . . . . . . 9 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} = {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}
5251eleq2i 2906 . . . . . . . 8 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
5352biimpi 218 . . . . . . 7 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
54 elopab 5416 . . . . . . . . 9 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ ∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)))
55 elopab 5416 . . . . . . . . . . . 12 (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} ↔ ∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
56 simp3ll 1240 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑏 ∈ ℕ)
57563expb 1116 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑏 ∈ ℕ)
58573ad2ant1 1129 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑏 ∈ ℕ)
59 simp3lr 1241 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑐 ∈ ℕ)
60593expb 1116 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑐 ∈ ℕ)
61603ad2ant1 1129 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑐 ∈ ℕ)
62 simp1lr 1233 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
63623adant1r 1173 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
64 simp-4l 781 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝐷 ∈ ℕ)
65643ad2ant1 1129 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝐷 ∈ ℕ)
66 simp-4r 782 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ¬ (√‘𝐷) ∈ ℚ)
67663ad2ant1 1129 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (√‘𝐷) ∈ ℚ)
68 simp2ll 1236 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
69683adant2l 1174 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
70 simp2lr 1237 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
71703adant2l 1174 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
72 simp2l 1195 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑒 = ⟨𝑓, 𝑔⟩)
73 simp1rl 1234 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑 = ⟨𝑏, 𝑐⟩)
74 simp3l 1197 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑𝑒)
75 simp3 1134 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑𝑒)
76 simp2 1133 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑 = ⟨𝑏, 𝑐⟩)
77 simp1 1132 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑒 = ⟨𝑓, 𝑔⟩)
7875, 76, 773netr3d 3094 . . . . . . . . . . . . . . . . 17 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩)
79 vex 3499 . . . . . . . . . . . . . . . . . . 19 𝑏 ∈ V
80 vex 3499 . . . . . . . . . . . . . . . . . . 19 𝑐 ∈ V
8179, 80opth 5370 . . . . . . . . . . . . . . . . . 18 (⟨𝑏, 𝑐⟩ = ⟨𝑓, 𝑔⟩ ↔ (𝑏 = 𝑓𝑐 = 𝑔))
8281necon3abii 3064 . . . . . . . . . . . . . . . . 17 (⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩ ↔ ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8378, 82sylib 220 . . . . . . . . . . . . . . . 16 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8472, 73, 74, 83syl3anc 1367 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
85 simp1lr 1233 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ≠ 0)
86 simp1rr 1235 . . . . . . . . . . . . . . . 16 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
87863adant1l 1172 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
88 simp2rr 1239 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)
89 simp3r 1198 . . . . . . . . . . . . . . . . 17 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)
90 simp3 1134 . . . . . . . . . . . . . . . . . . 19 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩ ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)
91 ovex 7191 . . . . . . . . . . . . . . . . . . . 20 ((1st𝑑) mod (abs‘𝑎)) ∈ V
92 ovex 7191 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑑) mod (abs‘𝑎)) ∈ V
9391, 92opth 5370 . . . . . . . . . . . . . . . . . . 19 (⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩ ↔ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))))
9490, 93sylib 220 . . . . . . . . . . . . . . . . . 18 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩ ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))))
95 simprl 769 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
96 simpll 765 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → 𝑑 = ⟨𝑏, 𝑐⟩)
9796fveq2d 6676 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = (1st ‘⟨𝑏, 𝑐⟩))
9879, 80op1st 7699 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑏, 𝑐⟩) = 𝑏
9997, 98syl6eq 2874 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = 𝑏)
10099oveq1d 7173 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑑) mod (abs‘𝑎)) = (𝑏 mod (abs‘𝑎)))
101 simplr 767 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → 𝑒 = ⟨𝑓, 𝑔⟩)
102101fveq2d 6676 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = (1st ‘⟨𝑓, 𝑔⟩))
103 vex 3499 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑓 ∈ V
104 vex 3499 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑔 ∈ V
105103, 104op1st 7699 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑓, 𝑔⟩) = 𝑓
106102, 105syl6eq 2874 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = 𝑓)
107106oveq1d 7173 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑒) mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
10895, 100, 1073eqtr3d 2866 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
109 simprr 771 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
11096fveq2d 6676 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = (2nd ‘⟨𝑏, 𝑐⟩))
11179, 80op2nd 7700 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑏, 𝑐⟩) = 𝑐
112110, 111syl6eq 2874 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = 𝑐)
113112oveq1d 7173 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = (𝑐 mod (abs‘𝑎)))
114101fveq2d 6676 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = (2nd ‘⟨𝑓, 𝑔⟩))
115103, 104op2nd 7700 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑓, 𝑔⟩) = 𝑔
116114, 115syl6eq 2874 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = 𝑔)
117116oveq1d 7173 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑒) mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
118109, 113, 1173eqtr3d 2866 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
119108, 118jca 514 . . . . . . . . . . . . . . . . . . . 20 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎))))
120119ex 415 . . . . . . . . . . . . . . . . . . 19 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) → ((((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))))
1211203adant3 1128 . . . . . . . . . . . . . . . . . 18 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩ ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ((((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))))
12294, 121mpd 15 . . . . . . . . . . . . . . . . 17 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩ ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎))))
12373, 72, 89, 122syl3anc 1367 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎))))
124123simpld 497 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
125123simprd 498 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
12658, 61, 63, 65, 67, 69, 71, 84, 85, 87, 88, 124, 125pellexlem6 39438 . . . . . . . . . . . . . 14 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
1271263exp 1115 . . . . . . . . . . . . 13 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
128127exlimdvv 1935 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
12955, 128syl5bi 244 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
130129ex 415 . . . . . . . . . 10 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
131130exlimdvv 1935 . . . . . . . . 9 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
13254, 131syl5bi 244 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
133132impd 413 . . . . . . 7 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ∧ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
13453, 133sylan2i 607 . . . . . 6 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ∧ 𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
135134rexlimdvv 3295 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))
136135imp 409 . . . 4 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
137136adantlrr 719 . . 3 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) ∧ ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
13841, 137mpdan 685 . 2 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
139 pellexlem5 39437 . 2 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑎 ∈ ℤ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ))
140138, 139r19.29a 3291 1 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398  w3a 1083   = wceq 1537  wex 1780  wcel 2114  wne 3018  wrex 3141  Vcvv 3496  cop 4575   class class class wbr 5068  {copab 5130   × cxp 5555  cfv 6357  (class class class)co 7158  ωcom 7582  1st c1st 7689  2nd c2nd 7690  cen 8508  csdm 8510  Fincfn 8511  0cc0 10539  1c1 10540   · cmul 10544  cmin 10872  cn 11640  2c2 11695  cz 11984  cq 12351  ...cfz 12895   mod cmo 13240  cexp 13432  csqrt 14594  abscabs 14595
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-rep 5192  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463  ax-inf2 9106  ax-cnex 10595  ax-resscn 10596  ax-1cn 10597  ax-icn 10598  ax-addcl 10599  ax-addrcl 10600  ax-mulcl 10601  ax-mulrcl 10602  ax-mulcom 10603  ax-addass 10604  ax-mulass 10605  ax-distr 10606  ax-i2m1 10607  ax-1ne0 10608  ax-1rid 10609  ax-rnegex 10610  ax-rrecex 10611  ax-cnre 10612  ax-pre-lttri 10613  ax-pre-lttrn 10614  ax-pre-ltadd 10615  ax-pre-mulgt0 10616  ax-pre-sup 10617
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-nel 3126  df-ral 3145  df-rex 3146  df-reu 3147  df-rmo 3148  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-pss 3956  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-tp 4574  df-op 4576  df-uni 4841  df-int 4879  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-tr 5175  df-id 5462  df-eprel 5467  df-po 5476  df-so 5477  df-fr 5516  df-se 5517  df-we 5518  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-pred 6150  df-ord 6196  df-on 6197  df-lim 6198  df-suc 6199  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-isom 6366  df-riota 7116  df-ov 7161  df-oprab 7162  df-mpo 7163  df-om 7583  df-1st 7691  df-2nd 7692  df-wrecs 7949  df-recs 8010  df-rdg 8048  df-1o 8104  df-oadd 8108  df-omul 8109  df-er 8291  df-map 8410  df-en 8512  df-dom 8513  df-sdom 8514  df-fin 8515  df-sup 8908  df-inf 8909  df-oi 8976  df-card 9370  df-acn 9373  df-pnf 10679  df-mnf 10680  df-xr 10681  df-ltxr 10682  df-le 10683  df-sub 10874  df-neg 10875  df-div 11300  df-nn 11641  df-2 11703  df-3 11704  df-n0 11901  df-xnn0 11971  df-z 11985  df-uz 12247  df-q 12352  df-rp 12393  df-ico 12747  df-fz 12896  df-fl 13165  df-mod 13241  df-seq 13373  df-exp 13433  df-hash 13694  df-cj 14460  df-re 14461  df-im 14462  df-sqrt 14596  df-abs 14597  df-dvds 15610  df-gcd 15846  df-numer 16077  df-denom 16078
This theorem is referenced by:  pellqrex  39483
  Copyright terms: Public domain W3C validator