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 36417
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 12633 . . . . . . . 8 (0...((abs‘𝑎) − 1)) ∈ Fin
2 xpfi 8116 . . . . . . . 8 (((0...((abs‘𝑎) − 1)) ∈ Fin ∧ (0...((abs‘𝑎) − 1)) ∈ Fin) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin)
31, 1, 2mp2an 704 . . . . . . 7 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin
4 isfinite 8432 . . . . . . 7 (((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ∈ Fin ↔ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω)
53, 4mpbi 219 . . . . . 6 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω
6 nnenom 12641 . . . . . . 7 ℕ ≈ ω
76ensymi 7892 . . . . . 6 ω ≈ ℕ
8 sdomentr 7979 . . . . . 6 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ω ∧ ω ≈ ℕ) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ)
95, 7, 8mp2an 704 . . . . 5 ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ
10 ensym 7891 . . . . . 6 ({⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
1110ad2antll 761 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
12 sdomentr 7979 . . . . 5 ((((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ ℕ ∧ ℕ ≈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
139, 11, 12sylancr 694 . . . 4 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))) ≺ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)})
14 opabssxp 5116 . . . . . . . 8 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ⊆ (ℕ × ℕ)
1514sseli 3564 . . . . . . 7 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑑 ∈ (ℕ × ℕ))
16 simprrl 800 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℕ)
1716nnzd 11357 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (1st𝑑) ∈ ℤ)
18 simpllr 795 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → 𝑎 ∈ ℤ)
19 simplr 788 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → 𝑎 ≠ 0)
20 nnabscl 13913 . . . . . . . . . . . 12 ((𝑎 ∈ ℤ ∧ 𝑎 ≠ 0) → (abs‘𝑎) ∈ ℕ)
2118, 19, 20syl2anc 691 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (abs‘𝑎) ∈ ℕ)
22 zmodfz 12554 . . . . . . . . . . 11 (((1st𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2317, 21, 22syl2anc 691 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
24 simprrr 801 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℕ)
2524nnzd 11357 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (2nd𝑑) ∈ ℤ)
26 zmodfz 12554 . . . . . . . . . . 11 (((2nd𝑑) ∈ ℤ ∧ (abs‘𝑎) ∈ ℕ) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2725, 21, 26syl2anc 691 . . . . . . . . . 10 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))
2823, 27jca 553 . . . . . . . . 9 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ))) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1))))
2928ex 449 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)) → (((1st𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)) ∧ ((2nd𝑑) mod (abs‘𝑎)) ∈ (0...((abs‘𝑎) − 1)))))
30 elxp7 7092 . . . . . . . 8 (𝑑 ∈ (ℕ × ℕ) ↔ (𝑑 ∈ (V × V) ∧ ((1st𝑑) ∈ ℕ ∧ (2nd𝑑) ∈ ℕ)))
31 opelxp 5070 . . . . . . . 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 284 . . . . . . 7 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ (ℕ × ℕ) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1)))))
3315, 32syl5 33 . . . . . 6 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1)))))
3433imp 444 . . . . 5 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))))
3534adantlrr 753 . . . 4 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) ∧ 𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ ∈ ((0...((abs‘𝑎) − 1)) × (0...((abs‘𝑎) − 1))))
36 fveq2 6103 . . . . . 6 (𝑑 = 𝑒 → (1st𝑑) = (1st𝑒))
3736oveq1d 6564 . . . . 5 (𝑑 = 𝑒 → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
38 fveq2 6103 . . . . . 6 (𝑑 = 𝑒 → (2nd𝑑) = (2nd𝑒))
3938oveq1d 6564 . . . . 5 (𝑑 = 𝑒 → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
4037, 39opeq12d 4348 . . . 4 (𝑑 = 𝑒 → ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)
4113, 35, 40fphpd 36398 . . 3 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩))
42 eleq1 2676 . . . . . . . . . . . 12 (𝑏 = 𝑓 → (𝑏 ∈ ℕ ↔ 𝑓 ∈ ℕ))
43 eleq1 2676 . . . . . . . . . . . 12 (𝑐 = 𝑔 → (𝑐 ∈ ℕ ↔ 𝑔 ∈ ℕ))
4442, 43bi2anan9 913 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ↔ (𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ)))
45 oveq1 6556 . . . . . . . . . . . . 13 (𝑏 = 𝑓 → (𝑏↑2) = (𝑓↑2))
46 oveq1 6556 . . . . . . . . . . . . . 14 (𝑐 = 𝑔 → (𝑐↑2) = (𝑔↑2))
4746oveq2d 6565 . . . . . . . . . . . . 13 (𝑐 = 𝑔 → (𝐷 · (𝑐↑2)) = (𝐷 · (𝑔↑2)))
4845, 47oveqan12d 6568 . . . . . . . . . . . 12 ((𝑏 = 𝑓𝑐 = 𝑔) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = ((𝑓↑2) − (𝐷 · (𝑔↑2))))
4948eqeq1d 2612 . . . . . . . . . . 11 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎 ↔ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎))
5044, 49anbi12d 743 . . . . . . . . . 10 ((𝑏 = 𝑓𝑐 = 𝑔) → (((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎) ↔ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
5150cbvopabv 4654 . . . . . . . . 9 {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} = {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}
5251eleq2i 2680 . . . . . . . 8 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
5352biimpi 205 . . . . . . 7 (𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)})
54 elopab 4908 . . . . . . . . 9 (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ↔ ∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)))
55 elopab 4908 . . . . . . . . . . . 12 (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} ↔ ∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)))
56 simp3ll 1125 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑏 ∈ ℕ)
57563expb 1258 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑏 ∈ ℕ)
58573ad2ant1 1075 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑏 ∈ ℕ)
59 simp3lr 1126 . . . . . . . . . . . . . . . . 17 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → 𝑐 ∈ ℕ)
60593expb 1258 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝑐 ∈ ℕ)
61603ad2ant1 1075 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑐 ∈ ℕ)
62 simp1lr 1118 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
63623adant1r 1311 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ∈ ℤ)
64 simp-4l 802 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → 𝐷 ∈ ℕ)
65643ad2ant1 1075 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝐷 ∈ ℕ)
66 simp-4r 803 . . . . . . . . . . . . . . . 16 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ¬ (√‘𝐷) ∈ ℚ)
67663ad2ant1 1075 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (√‘𝐷) ∈ ℚ)
68 simp2ll 1121 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
69683adant2l 1312 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑓 ∈ ℕ)
70 simp2lr 1122 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
71703adant2l 1312 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑔 ∈ ℕ)
72 simp2l 1080 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑒 = ⟨𝑓, 𝑔⟩)
73 simp1rl 1119 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑 = ⟨𝑏, 𝑐⟩)
74 simp3l 1082 . . . . . . . . . . . . . . . 16 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑑𝑒)
75 simp3 1056 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑𝑒)
76 simp2 1055 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑑 = ⟨𝑏, 𝑐⟩)
77 simp1 1054 . . . . . . . . . . . . . . . . . 18 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → 𝑒 = ⟨𝑓, 𝑔⟩)
7875, 76, 773netr3d 2858 . . . . . . . . . . . . . . . . 17 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩)
79 vex 3176 . . . . . . . . . . . . . . . . . . 19 𝑏 ∈ V
80 vex 3176 . . . . . . . . . . . . . . . . . . 19 𝑐 ∈ V
8179, 80opth 4871 . . . . . . . . . . . . . . . . . 18 (⟨𝑏, 𝑐⟩ = ⟨𝑓, 𝑔⟩ ↔ (𝑏 = 𝑓𝑐 = 𝑔))
8281necon3abii 2828 . . . . . . . . . . . . . . . . 17 (⟨𝑏, 𝑐⟩ ≠ ⟨𝑓, 𝑔⟩ ↔ ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8378, 82sylib 207 . . . . . . . . . . . . . . . 16 ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ 𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑑𝑒) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
8472, 73, 74, 83syl3anc 1318 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ¬ (𝑏 = 𝑓𝑐 = 𝑔))
85 simp1lr 1118 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → 𝑎 ≠ 0)
86 simp1rr 1120 . . . . . . . . . . . . . . . 16 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
87863adant1l 1310 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)
88 simp2rr 1124 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)
89 simp3r 1083 . . . . . . . . . . . . . . . . 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 1056 . . . . . . . . . . . . . . . . . . 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 6577 . . . . . . . . . . . . . . . . . . . 20 ((1st𝑑) mod (abs‘𝑎)) ∈ V
92 ovex 6577 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑑) mod (abs‘𝑎)) ∈ V
9391, 92opth 4871 . . . . . . . . . . . . . . . . . . 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 207 . . . . . . . . . . . . . . . . . 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 790 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)))
96 simpll 786 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → 𝑑 = ⟨𝑏, 𝑐⟩)
9796fveq2d 6107 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = (1st ‘⟨𝑏, 𝑐⟩))
9879, 80op1st 7067 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑏, 𝑐⟩) = 𝑏
9997, 98syl6eq 2660 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑑) = 𝑏)
10099oveq1d 6564 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑑) mod (abs‘𝑎)) = (𝑏 mod (abs‘𝑎)))
101 simplr 788 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → 𝑒 = ⟨𝑓, 𝑔⟩)
102101fveq2d 6107 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = (1st ‘⟨𝑓, 𝑔⟩))
103 vex 3176 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑓 ∈ V
104 vex 3176 . . . . . . . . . . . . . . . . . . . . . . . . 25 𝑔 ∈ V
105103, 104op1st 7067 . . . . . . . . . . . . . . . . . . . . . . . 24 (1st ‘⟨𝑓, 𝑔⟩) = 𝑓
106102, 105syl6eq 2660 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (1st𝑒) = 𝑓)
107106oveq1d 6564 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((1st𝑒) mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
10895, 100, 1073eqtr3d 2652 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
109 simprr 792 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))
11096fveq2d 6107 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = (2nd ‘⟨𝑏, 𝑐⟩))
11179, 80op2nd 7068 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑏, 𝑐⟩) = 𝑐
112110, 111syl6eq 2660 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑑) = 𝑐)
113112oveq1d 6564 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑑) mod (abs‘𝑎)) = (𝑐 mod (abs‘𝑎)))
114101fveq2d 6107 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = (2nd ‘⟨𝑓, 𝑔⟩))
115103, 104op2nd 7068 . . . . . . . . . . . . . . . . . . . . . . . 24 (2nd ‘⟨𝑓, 𝑔⟩) = 𝑔
116114, 115syl6eq 2660 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (2nd𝑒) = 𝑔)
117116oveq1d 6564 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((2nd𝑒) mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
118109, 113, 1173eqtr3d 2652 . . . . . . . . . . . . . . . . . . . . 21 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))
119108, 118jca 553 . . . . . . . . . . . . . . . . . . . 20 (((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) ∧ (((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎)))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎))))
120119ex 449 . . . . . . . . . . . . . . . . . . 19 ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ 𝑒 = ⟨𝑓, 𝑔⟩) → ((((1st𝑑) mod (abs‘𝑎)) = ((1st𝑒) mod (abs‘𝑎)) ∧ ((2nd𝑑) mod (abs‘𝑎)) = ((2nd𝑒) mod (abs‘𝑎))) → ((𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)) ∧ (𝑐 mod (abs‘𝑎)) = (𝑔 mod (abs‘𝑎)))))
1211203adant3 1074 . . . . . . . . . . . . . . . . . 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 1318 . . . . . . . . . . . . . . . 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 474 . . . . . . . . . . . . . . 15 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → (𝑏 mod (abs‘𝑎)) = (𝑓 mod (abs‘𝑎)))
125123simprd 478 . . . . . . . . . . . . . . 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 36416 . . . . . . . . . . . . . 14 ((((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) ∧ (𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) ∧ (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
1271263exp 1256 . . . . . . . . . . . . 13 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → ((𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
128127exlimdvv 1849 . . . . . . . . . . . 12 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (∃𝑓𝑔(𝑒 = ⟨𝑓, 𝑔⟩ ∧ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
12955, 128syl5bi 231 . . . . . . . . . . 11 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ (𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎))) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
130129ex 449 . . . . . . . . . 10 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
131130exlimdvv 1849 . . . . . . . . 9 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑏𝑐(𝑑 = ⟨𝑏, 𝑐⟩ ∧ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)) → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
13254, 131syl5bi 231 . . . . . . . 8 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} → (𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)} → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))))
133132impd 446 . . . . . . 7 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ∧ 𝑒 ∈ {⟨𝑓, 𝑔⟩ ∣ ((𝑓 ∈ ℕ ∧ 𝑔 ∈ ℕ) ∧ ((𝑓↑2) − (𝐷 · (𝑔↑2))) = 𝑎)}) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
13453, 133sylan2i 685 . . . . . 6 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → ((𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ∧ 𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}) → ((𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)))
135134rexlimdvv 3019 . . . . 5 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) → (∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1))
136135imp 444 . . . 4 (((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ 𝑎 ≠ 0) ∧ ∃𝑑 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)}∃𝑒 ∈ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} (𝑑𝑒 ∧ ⟨((1st𝑑) mod (abs‘𝑎)), ((2nd𝑑) mod (abs‘𝑎))⟩ = ⟨((1st𝑒) mod (abs‘𝑎)), ((2nd𝑒) mod (abs‘𝑎))⟩)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
137136adantlrr 753 . . 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 699 . 2 ((((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ 𝑎 ∈ ℤ) ∧ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ)) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
139 pellexlem5 36415 . 2 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑎 ∈ ℤ (𝑎 ≠ 0 ∧ {⟨𝑏, 𝑐⟩ ∣ ((𝑏 ∈ ℕ ∧ 𝑐 ∈ ℕ) ∧ ((𝑏↑2) − (𝐷 · (𝑐↑2))) = 𝑎)} ≈ ℕ))
140138, 139r19.29a 3060 1 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ ((𝑥↑2) − (𝐷 · (𝑦↑2))) = 1)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 383  w3a 1031   = wceq 1475  wex 1695  wcel 1977  wne 2780  wrex 2897  Vcvv 3173  cop 4131   class class class wbr 4583  {copab 4642   × cxp 5036  cfv 5804  (class class class)co 6549  ωcom 6957  1st c1st 7057  2nd c2nd 7058  cen 7838  csdm 7840  Fincfn 7841  0cc0 9815  1c1 9816   · cmul 9820  cmin 10145  cn 10897  2c2 10947  cz 11254  cq 11664  ...cfz 12197   mod cmo 12530  cexp 12722  csqrt 13821  abscabs 13822
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847  ax-inf2 8421  ax-cnex 9871  ax-resscn 9872  ax-1cn 9873  ax-icn 9874  ax-addcl 9875  ax-addrcl 9876  ax-mulcl 9877  ax-mulrcl 9878  ax-mulcom 9879  ax-addass 9880  ax-mulass 9881  ax-distr 9882  ax-i2m1 9883  ax-1ne0 9884  ax-1rid 9885  ax-rnegex 9886  ax-rrecex 9887  ax-cnre 9888  ax-pre-lttri 9889  ax-pre-lttrn 9890  ax-pre-ltadd 9891  ax-pre-mulgt0 9892  ax-pre-sup 9893
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-nel 2783  df-ral 2901  df-rex 2902  df-reu 2903  df-rmo 2904  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-pss 3556  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-tp 4130  df-op 4132  df-uni 4373  df-int 4411  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-tr 4681  df-eprel 4949  df-id 4953  df-po 4959  df-so 4960  df-fr 4997  df-se 4998  df-we 4999  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-pred 5597  df-ord 5643  df-on 5644  df-lim 5645  df-suc 5646  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-isom 5813  df-riota 6511  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-om 6958  df-1st 7059  df-2nd 7060  df-wrecs 7294  df-recs 7355  df-rdg 7393  df-1o 7447  df-oadd 7451  df-omul 7452  df-er 7629  df-map 7746  df-en 7842  df-dom 7843  df-sdom 7844  df-fin 7845  df-sup 8231  df-inf 8232  df-oi 8298  df-card 8648  df-acn 8651  df-pnf 9955  df-mnf 9956  df-xr 9957  df-ltxr 9958  df-le 9959  df-sub 10147  df-neg 10148  df-div 10564  df-nn 10898  df-2 10956  df-3 10957  df-n0 11170  df-xnn0 11241  df-z 11255  df-uz 11564  df-q 11665  df-rp 11709  df-ico 12052  df-fz 12198  df-fl 12455  df-mod 12531  df-seq 12664  df-exp 12723  df-hash 12980  df-cj 13687  df-re 13688  df-im 13689  df-sqrt 13823  df-abs 13824  df-dvds 14822  df-gcd 15055  df-numer 15281  df-denom 15282
This theorem is referenced by:  pellqrex  36461
  Copyright terms: Public domain W3C validator