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 39310
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 13328 . . . . . . . 8 (0...((abs‘𝑎) − 1)) ∈ Fin
2 xpfi 8777 . . . . . . . 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 9103 . . . . . . 7 (((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin ↔ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω)
53, 4mpbi 231 . . . . . 6 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω
6 nnenom 13336 . . . . . . 7 ℕ ≈ ω
76ensymi 8547 . . . . . 6 ω ≈ ℕ
8 sdomentr 8639 . . . . . 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 8546 . . . . . 6 ({⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
1110ad2antll 725 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
12 sdomentr 8639 . . . . 5 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ ∧ ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
139, 11, 12sylancr 587 . . . 4 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
14 opabssxp 5636 . . . . . . . 8 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ⊆ (ℕ × ℕ)
1514sseli 3960 . . . . . . 7 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑑 ∈ (ℕ × ℕ))
16 simprrl 777 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℕ)
1716nnzd 12074 . . . . . . . . . . 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 14673 . . . . . . . . . . . 12 ((𝑎 ∈ ℤ ∧ 𝑎 ≠ 0) → (abs‘𝑎) ∈ ℕ)
2118, 19, 20syl2anc 584 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (abs‘𝑎) ∈ ℕ)
22 zmodfz 13249 . . . . . . . . . . 11 (((1st𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2317, 21, 22syl2anc 584 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
24 simprrr 778 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℕ)
2524nnzd 12074 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℤ)
26 zmodfz 13249 . . . . . . . . . . 11 (((2nd𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2725, 21, 26syl2anc 584 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2823, 27jca 512 . . . . . . . . 9 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1))))
2928ex 413 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))))
30 elxp7 7713 . . . . . . . 8 (𝑑 ∈ (ℕ × ℕ) ↔ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)))
31 opelxp 5584 . . . . . . . 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 297 . . . . . . 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 407 . . . . 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 6663 . . . . . 6 (𝑑 = 𝑒 → (1st𝑑) = (1st𝑒))
3736oveq1d 7160 . . . . 5 (𝑑 = 𝑒 → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
38 fveq2 6663 . . . . . 6 (𝑑 = 𝑒 → (2nd𝑑) = (2nd𝑒))
3938oveq1d 7160 . . . . 5 (𝑑 = 𝑒 → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
4037, 39opeq12d 4803 . . . 4 (𝑑 = 𝑒 → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)
4113, 35, 40fphpd 39291 . . 3 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩))
42 eleq1w 2892 . . . . . . . . . . . 12 (𝑏 = 𝑓 → (𝑏 ∈ ℕ ↔ 𝑓 ∈ ℕ))
43 eleq1w 2892 . . . . . . . . . . . 12 (𝑐 = 𝑔 → (𝑐 ∈ ℕ ↔ 𝑔 ∈ ℕ))
4442, 43bi2anan9 635 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ↔ (𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ)))
45 oveq1 7152 . . . . . . . . . . . . 13 (𝑏 = 𝑓 → (𝑏↑2) = (𝑓↑2))
46 oveq1 7152 . . . . . . . . . . . . . 14 (𝑐 = 𝑔 → (𝑐↑2) = (𝑔↑2))
4746oveq2d 7161 . . . . . . . . . . . . 13 (𝑐 = 𝑔 → (𝐷 · (𝑐↑2)) = (𝐷 · (𝑔↑2)))
4845, 47oveqan12d 7164 . . . . . . . . . . . 12 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = ((𝑓↑2) − (𝐷 · (𝑔↑2))))
4948eqeq1d 2820 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎 ↔ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎))
5044, 49anbi12d 630 . . . . . . . . . 10 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎) ↔ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
5150cbvopabv 5129 . . . . . . . . 9 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} = {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}
5251eleq2i 2901 . . . . . . . 8 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
5352biimpi 217 . . . . . . 7 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
54 elopab 5405 . . . . . . . . 9 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ ∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)))
55 elopab 5405 . . . . . . . . . . . 12 (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} ↔ ∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
56 simp3ll 1236 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑏 ∈ ℕ)
57563expb 1112 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑏 ∈ ℕ)
58573ad2ant1 1125 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑏 ∈ ℕ)
59 simp3lr 1237 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑐 ∈ ℕ)
60593expb 1112 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑐 ∈ ℕ)
61603ad2ant1 1125 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑐 ∈ ℕ)
62 simp1lr 1229 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
63623adant1r 1169 . . . . . . . . . . . . . . 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 1125 . . . . . . . . . . . . . . 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 1125 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (√‘𝐷) ∈ ℚ)
68 simp2ll 1232 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
69683adant2l 1170 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
70 simp2lr 1233 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
71703adant2l 1170 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
72 simp2l 1191 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑒 = ⟨𝑓, 𝑔⟩)
73 simp1rl 1230 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑 = ⟨𝑏, 𝑐⟩)
74 simp3l 1193 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑𝑒)
75 simp3 1130 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑𝑒)
76 simp2 1129 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑 = ⟨𝑏, 𝑐⟩)
77 simp1 1128 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑒 = ⟨𝑓, 𝑔⟩)
7875, 76, 773netr3d 3089 . . . . . . . . . . . . . . . . 17 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩)
79 vex 3495 . . . . . . . . . . . . . . . . . . 19 𝑏 ∈ V
80 vex 3495 . . . . . . . . . . . . . . . . . . 19 𝑐 ∈ V
8179, 80opth 5359 . . . . . . . . . . . . . . . . . 18 (⟨𝑏, 𝑐⟩ = ⟨𝑓, 𝑔⟩ ↔ (𝑏 = 𝑓𝑐 = 𝑔))
8281necon3abii 3059 . . . . . . . . . . . . . . . . 17 (⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩ ↔ ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8378, 82sylib 219 . . . . . . . . . . . . . . . 16 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8472, 73, 74, 83syl3anc 1363 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
85 simp1lr 1229 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ≠ 0)
86 simp1rr 1231 . . . . . . . . . . . . . . . 16 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
87863adant1l 1168 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
88 simp2rr 1235 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)
89 simp3r 1194 . . . . . . . . . . . . . . . . 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 1130 . . . . . . . . . . . . . . . . . . 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 7178 . . . . . . . . . . . . . . . . . . . 20 ((1st𝑑) mod (abs‘𝑎)) ∈ V
92 ovex 7178 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑑) mod (abs‘𝑎)) ∈ V
9391, 92opth 5359 . . . . . . . . . . . . . . . . . . 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 219 . . . . . . . . . . . . . . . . . 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 6667 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = (1st ‘⟨𝑏, 𝑐⟩))
9879, 80op1st 7686 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑏, 𝑐⟩) = 𝑏
9997, 98syl6eq 2869 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = 𝑏)
10099oveq1d 7160 . . . . . . . . . . . . . . . . . . . . . 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 6667 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = (1st ‘⟨𝑓, 𝑔⟩))
103 vex 3495 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑓 ∈ V
104 vex 3495 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑔 ∈ V
105103, 104op1st 7686 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑓, 𝑔⟩) = 𝑓
106102, 105syl6eq 2869 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = 𝑓)
107106oveq1d 7160 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑒) mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
10895, 100, 1073eqtr3d 2861 . . . . . . . . . . . . . . . . . . . . 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 6667 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = (2nd ‘⟨𝑏, 𝑐⟩))
11179, 80op2nd 7687 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑏, 𝑐⟩) = 𝑐
112110, 111syl6eq 2869 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = 𝑐)
113112oveq1d 7160 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = (𝑐 mod (abs‘𝑎)))
114101fveq2d 6667 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = (2nd ‘⟨𝑓, 𝑔⟩))
115103, 104op2nd 7687 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑓, 𝑔⟩) = 𝑔
116114, 115syl6eq 2869 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = 𝑔)
117116oveq1d 7160 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑒) mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
118109, 113, 1173eqtr3d 2861 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
119108, 118jca 512 . . . . . . . . . . . . . . . . . . . 20 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎))))
120119ex 413 . . . . . . . . . . . . . . . . . . 19 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) → ((((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))))
1211203adant3 1124 . . . . . . . . . . . . . . . . . 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 1363 . . . . . . . . . . . . . . . 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 495 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
125123simprd 496 . . . . . . . . . . . . . . 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 39309 . . . . . . . . . . . . . 14 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
1271263exp 1111 . . . . . . . . . . . . 13 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
128127exlimdvv 1926 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
12955, 128syl5bi 243 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
130129ex 413 . . . . . . . . . 10 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
131130exlimdvv 1926 . . . . . . . . 9 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
13254, 131syl5bi 243 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
133132impd 411 . . . . . . 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 3290 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))
136135imp 407 . . . 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 39308 . 2 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑎 ∈ ℤ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ))
140138, 139r19.29a 3286 1 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  w3a 1079   = wceq 1528  wex 1771  wcel 2105  wne 3013  wrex 3136  Vcvv 3492  cop 4563   class class class wbr 5057  {copab 5119   × cxp 5546  cfv 6348  (class class class)co 7145  ωcom 7569  1st c1st 7676  2nd c2nd 7677  cen 8494  csdm 8496  Fincfn 8497  0cc0 10525  1c1 10526   · cmul 10530  cmin 10858  cn 11626  2c2 11680  cz 11969  cq 12336  ...cfz 12880   mod cmo 13225  cexp 13417  csqrt 14580  abscabs 14581
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-rep 5181  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450  ax-inf2 9092  ax-cnex 10581  ax-resscn 10582  ax-1cn 10583  ax-icn 10584  ax-addcl 10585  ax-addrcl 10586  ax-mulcl 10587  ax-mulrcl 10588  ax-mulcom 10589  ax-addass 10590  ax-mulass 10591  ax-distr 10592  ax-i2m1 10593  ax-1ne0 10594  ax-1rid 10595  ax-rnegex 10596  ax-rrecex 10597  ax-cnre 10598  ax-pre-lttri 10599  ax-pre-lttrn 10600  ax-pre-ltadd 10601  ax-pre-mulgt0 10602  ax-pre-sup 10603
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3or 1080  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-nel 3121  df-ral 3140  df-rex 3141  df-reu 3142  df-rmo 3143  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-pss 3951  df-nul 4289  df-if 4464  df-pw 4537  df-sn 4558  df-pr 4560  df-tp 4562  df-op 4564  df-uni 4831  df-int 4868  df-iun 4912  df-br 5058  df-opab 5120  df-mpt 5138  df-tr 5164  df-id 5453  df-eprel 5458  df-po 5467  df-so 5468  df-fr 5507  df-se 5508  df-we 5509  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-pred 6141  df-ord 6187  df-on 6188  df-lim 6189  df-suc 6190  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356  df-isom 6357  df-riota 7103  df-ov 7148  df-oprab 7149  df-mpo 7150  df-om 7570  df-1st 7678  df-2nd 7679  df-wrecs 7936  df-recs 7997  df-rdg 8035  df-1o 8091  df-oadd 8095  df-omul 8096  df-er 8278  df-map 8397  df-en 8498  df-dom 8499  df-sdom 8500  df-fin 8501  df-sup 8894  df-inf 8895  df-oi 8962  df-card 9356  df-acn 9359  df-pnf 10665  df-mnf 10666  df-xr 10667  df-ltxr 10668  df-le 10669  df-sub 10860  df-neg 10861  df-div 11286  df-nn 11627  df-2 11688  df-3 11689  df-n0 11886  df-xnn0 11956  df-z 11970  df-uz 12232  df-q 12337  df-rp 12378  df-ico 12732  df-fz 12881  df-fl 13150  df-mod 13226  df-seq 13358  df-exp 13418  df-hash 13679  df-cj 14446  df-re 14447  df-im 14448  df-sqrt 14582  df-abs 14583  df-dvds 15596  df-gcd 15832  df-numer 16063  df-denom 16064
This theorem is referenced by:  pellqrex  39354
  Copyright terms: Public domain W3C validator