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 40573
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 13620 . . . . . . . 8 (0...((abs‘𝑎) − 1)) ∈ Fin
2 xpfi 9015 . . . . . . . 8 (((0...((abs‘𝑎) − 1)) ∈ Fin ∧ (0...((abs‘𝑎) − 1)) ∈ Fin) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin)
31, 1, 2mp2an 688 . . . . . . 7 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin
4 isfinite 9340 . . . . . . 7 (((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin ↔ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω)
53, 4mpbi 229 . . . . . 6 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω
6 nnenom 13628 . . . . . . 7 ℕ ≈ ω
76ensymi 8745 . . . . . 6 ω ≈ ℕ
8 sdomentr 8847 . . . . . 6 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω ∧ ω ≈ ℕ) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ)
95, 7, 8mp2an 688 . . . . 5 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ
10 ensym 8744 . . . . . 6 ({⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
1110ad2antll 725 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
12 sdomentr 8847 . . . . 5 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ ∧ ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
139, 11, 12sylancr 586 . . . 4 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
14 opabssxp 5669 . . . . . . . 8 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ⊆ (ℕ × ℕ)
1514sseli 3913 . . . . . . 7 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑑 ∈ (ℕ × ℕ))
16 simprrl 777 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℕ)
1716nnzd 12354 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℤ)
18 simpllr 772 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → 𝑎 ∈ ℤ)
19 simplr 765 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → 𝑎 ≠ 0)
20 nnabscl 14965 . . . . . . . . . . . 12 ((𝑎 ∈ ℤ ∧ 𝑎 ≠ 0) → (abs‘𝑎) ∈ ℕ)
2118, 19, 20syl2anc 583 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (abs‘𝑎) ∈ ℕ)
22 zmodfz 13541 . . . . . . . . . . 11 (((1st𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2317, 21, 22syl2anc 583 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
24 simprrr 778 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℕ)
2524nnzd 12354 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℤ)
26 zmodfz 13541 . . . . . . . . . . 11 (((2nd𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2725, 21, 26syl2anc 583 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2823, 27jca 511 . . . . . . . . 9 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1))))
2928ex 412 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))))
30 elxp7 7839 . . . . . . . 8 (𝑑 ∈ (ℕ × ℕ) ↔ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)))
31 opelxp 5616 . . . . . . . 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 295 . . . . . . 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 406 . . . . 5 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))))
3534adantlrr 717 . . . 4 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) ∧ 𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))))
36 fveq2 6756 . . . . . 6 (𝑑 = 𝑒 → (1st𝑑) = (1st𝑒))
3736oveq1d 7270 . . . . 5 (𝑑 = 𝑒 → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
38 fveq2 6756 . . . . . 6 (𝑑 = 𝑒 → (2nd𝑑) = (2nd𝑒))
3938oveq1d 7270 . . . . 5 (𝑑 = 𝑒 → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
4037, 39opeq12d 4809 . . . 4 (𝑑 = 𝑒 → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)
4113, 35, 40fphpd 40554 . . 3 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩))
42 eleq1w 2821 . . . . . . . . . . . 12 (𝑏 = 𝑓 → (𝑏 ∈ ℕ ↔ 𝑓 ∈ ℕ))
43 eleq1w 2821 . . . . . . . . . . . 12 (𝑐 = 𝑔 → (𝑐 ∈ ℕ ↔ 𝑔 ∈ ℕ))
4442, 43bi2anan9 635 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ↔ (𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ)))
45 oveq1 7262 . . . . . . . . . . . . 13 (𝑏 = 𝑓 → (𝑏↑2) = (𝑓↑2))
46 oveq1 7262 . . . . . . . . . . . . . 14 (𝑐 = 𝑔 → (𝑐↑2) = (𝑔↑2))
4746oveq2d 7271 . . . . . . . . . . . . 13 (𝑐 = 𝑔 → (𝐷 · (𝑐↑2)) = (𝐷 · (𝑔↑2)))
4845, 47oveqan12d 7274 . . . . . . . . . . . 12 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = ((𝑓↑2) − (𝐷 · (𝑔↑2))))
4948eqeq1d 2740 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎 ↔ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎))
5044, 49anbi12d 630 . . . . . . . . . 10 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎) ↔ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
5150cbvopabv 5143 . . . . . . . . 9 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} = {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}
5251eleq2i 2830 . . . . . . . 8 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
5352biimpi 215 . . . . . . 7 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
54 elopab 5433 . . . . . . . . 9 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ ∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)))
55 elopab 5433 . . . . . . . . . . . 12 (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} ↔ ∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
56 simp3ll 1242 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑏 ∈ ℕ)
57563expb 1118 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑏 ∈ ℕ)
58573ad2ant1 1131 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑏 ∈ ℕ)
59 simp3lr 1243 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑐 ∈ ℕ)
60593expb 1118 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑐 ∈ ℕ)
61603ad2ant1 1131 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑐 ∈ ℕ)
62 simp1lr 1235 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
63623adant1r 1175 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
64 simp-4l 779 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝐷 ∈ ℕ)
65643ad2ant1 1131 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝐷 ∈ ℕ)
66 simp-4r 780 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ¬ (√‘𝐷) ∈ ℚ)
67663ad2ant1 1131 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (√‘𝐷) ∈ ℚ)
68 simp2ll 1238 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
69683adant2l 1176 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
70 simp2lr 1239 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
71703adant2l 1176 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
72 simp2l 1197 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑒 = ⟨𝑓, 𝑔⟩)
73 simp1rl 1236 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑 = ⟨𝑏, 𝑐⟩)
74 simp3l 1199 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑𝑒)
75 simp3 1136 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑𝑒)
76 simp2 1135 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑 = ⟨𝑏, 𝑐⟩)
77 simp1 1134 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑒 = ⟨𝑓, 𝑔⟩)
7875, 76, 773netr3d 3019 . . . . . . . . . . . . . . . . 17 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩)
79 vex 3426 . . . . . . . . . . . . . . . . . . 19 𝑏 ∈ V
80 vex 3426 . . . . . . . . . . . . . . . . . . 19 𝑐 ∈ V
8179, 80opth 5385 . . . . . . . . . . . . . . . . . 18 (⟨𝑏, 𝑐⟩ = ⟨𝑓, 𝑔⟩ ↔ (𝑏 = 𝑓𝑐 = 𝑔))
8281necon3abii 2989 . . . . . . . . . . . . . . . . 17 (⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩ ↔ ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8378, 82sylib 217 . . . . . . . . . . . . . . . 16 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8472, 73, 74, 83syl3anc 1369 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
85 simp1lr 1235 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ≠ 0)
86 simp1rr 1237 . . . . . . . . . . . . . . . 16 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
87863adant1l 1174 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
88 simp2rr 1241 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)
89 simp3r 1200 . . . . . . . . . . . . . . . . 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 1136 . . . . . . . . . . . . . . . . . . 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 7288 . . . . . . . . . . . . . . . . . . . 20 ((1st𝑑) mod (abs‘𝑎)) ∈ V
92 ovex 7288 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑑) mod (abs‘𝑎)) ∈ V
9391, 92opth 5385 . . . . . . . . . . . . . . . . . . 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 217 . . . . . . . . . . . . . . . . . 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 767 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
96 simpll 763 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → 𝑑 = ⟨𝑏, 𝑐⟩)
9796fveq2d 6760 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = (1st ‘⟨𝑏, 𝑐⟩))
9879, 80op1st 7812 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑏, 𝑐⟩) = 𝑏
9997, 98eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = 𝑏)
10099oveq1d 7270 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑑) mod (abs‘𝑎)) = (𝑏 mod (abs‘𝑎)))
101 simplr 765 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → 𝑒 = ⟨𝑓, 𝑔⟩)
102101fveq2d 6760 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = (1st ‘⟨𝑓, 𝑔⟩))
103 vex 3426 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑓 ∈ V
104 vex 3426 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑔 ∈ V
105103, 104op1st 7812 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑓, 𝑔⟩) = 𝑓
106102, 105eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = 𝑓)
107106oveq1d 7270 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑒) mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
10895, 100, 1073eqtr3d 2786 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
109 simprr 769 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
11096fveq2d 6760 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = (2nd ‘⟨𝑏, 𝑐⟩))
11179, 80op2nd 7813 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑏, 𝑐⟩) = 𝑐
112110, 111eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = 𝑐)
113112oveq1d 7270 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = (𝑐 mod (abs‘𝑎)))
114101fveq2d 6760 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = (2nd ‘⟨𝑓, 𝑔⟩))
115103, 104op2nd 7813 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑓, 𝑔⟩) = 𝑔
116114, 115eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = 𝑔)
117116oveq1d 7270 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑒) mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
118109, 113, 1173eqtr3d 2786 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
119108, 118jca 511 . . . . . . . . . . . . . . . . . . . 20 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎))))
120119ex 412 . . . . . . . . . . . . . . . . . . 19 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) → ((((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))))
1211203adant3 1130 . . . . . . . . . . . . . . . . . 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 1369 . . . . . . . . . . . . . . . 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 494 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
125123simprd 495 . . . . . . . . . . . . . . 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 40572 . . . . . . . . . . . . . 14 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
1271263exp 1117 . . . . . . . . . . . . 13 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
128127exlimdvv 1938 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
12955, 128syl5bi 241 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
130129ex 412 . . . . . . . . . 10 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
131130exlimdvv 1938 . . . . . . . . 9 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
13254, 131syl5bi 241 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
133132impd 410 . . . . . . 7 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ∧ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
13453, 133sylan2i 605 . . . . . 6 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ∧ 𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
135134rexlimdvv 3221 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))
136135imp 406 . . . 4 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
137136adantlrr 717 . . 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 683 . 2 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
139 pellexlem5 40571 . 2 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑎 ∈ ℤ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ))
140138, 139r19.29a 3217 1 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  wne 2942  wrex 3064  Vcvv 3422  cop 4564   class class class wbr 5070  {copab 5132   × cxp 5578  cfv 6418  (class class class)co 7255  ωcom 7687  1st c1st 7802  2nd c2nd 7803  cen 8688  csdm 8690  Fincfn 8691  0cc0 10802  1c1 10803   · cmul 10807  cmin 11135  cn 11903  2c2 11958  cz 12249  cq 12617  ...cfz 13168   mod cmo 13517  cexp 13710  csqrt 14872  abscabs 14873
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-inf2 9329  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
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-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-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-omul 8272  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-inf 9132  df-oi 9199  df-card 9628  df-acn 9631  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-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-q 12618  df-rp 12660  df-ico 13014  df-fz 13169  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-numer 16367  df-denom 16368
This theorem is referenced by:  pellqrex  40617
  Copyright terms: Public domain W3C validator