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

Theorem pellexlem3 39772
Description: Lemma for pellex 39776. To each good rational approximation of (√‘𝐷), there exists a near-solution. (Contributed by Stefan O'Rear, 14-Sep-2014.)
Assertion
Ref Expression
pellexlem3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ≼ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))})
Distinct variable group:   𝑥,𝐷,𝑦,𝑧

Proof of Theorem pellexlem3
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnex 11631 . . . 4 ℕ ∈ V
21, 1xpex 7456 . . 3 (ℕ × ℕ) ∈ V
3 opabssxp 5607 . . 3 {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ⊆ (ℕ × ℕ)
42, 3ssexi 5190 . 2 {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ∈ V
5 simprl 770 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 𝑎 ∈ ℚ)
6 simprrl 780 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 0 < 𝑎)
7 qgt0numnn 16081 . . . . . . . 8 ((𝑎 ∈ ℚ ∧ 0 < 𝑎) → (numer‘𝑎) ∈ ℕ)
85, 6, 7syl2anc 587 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (numer‘𝑎) ∈ ℕ)
9 qdencl 16071 . . . . . . . 8 (𝑎 ∈ ℚ → (denom‘𝑎) ∈ ℕ)
105, 9syl 17 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (denom‘𝑎) ∈ ℕ)
118, 10jca 515 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ))
12 simpll 766 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 𝐷 ∈ ℕ)
13 simplr 768 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ¬ (√‘𝐷) ∈ ℚ)
14 pellexlem1 39770 . . . . . . 7 (((𝐷 ∈ ℕ ∧ (numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ¬ (√‘𝐷) ∈ ℚ) → (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0)
1512, 8, 10, 13, 14syl31anc 1370 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0)
16 simprrr 781 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))
17 qeqnumdivden 16076 . . . . . . . . . . . 12 (𝑎 ∈ ℚ → 𝑎 = ((numer‘𝑎) / (denom‘𝑎)))
1817oveq1d 7150 . . . . . . . . . . 11 (𝑎 ∈ ℚ → (𝑎 − (√‘𝐷)) = (((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷)))
1918fveq2d 6649 . . . . . . . . . 10 (𝑎 ∈ ℚ → (abs‘(𝑎 − (√‘𝐷))) = (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))))
2019breq1d 5040 . . . . . . . . 9 (𝑎 ∈ ℚ → ((abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2) ↔ (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2)))
215, 20syl 17 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ((abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2) ↔ (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2)))
2216, 21mpbid 235 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2))
23 pellexlem2 39771 . . . . . . 7 (((𝐷 ∈ ℕ ∧ (numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2)) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))
2412, 8, 10, 22, 23syl31anc 1370 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))
2511, 15, 24jca32 519 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))))
2625ex 416 . . . 4 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ((𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))) → (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))))
27 breq2 5034 . . . . . 6 (𝑥 = 𝑎 → (0 < 𝑥 ↔ 0 < 𝑎))
28 fvoveq1 7158 . . . . . . 7 (𝑥 = 𝑎 → (abs‘(𝑥 − (√‘𝐷))) = (abs‘(𝑎 − (√‘𝐷))))
29 fveq2 6645 . . . . . . . 8 (𝑥 = 𝑎 → (denom‘𝑥) = (denom‘𝑎))
3029oveq1d 7150 . . . . . . 7 (𝑥 = 𝑎 → ((denom‘𝑥)↑-2) = ((denom‘𝑎)↑-2))
3128, 30breq12d 5043 . . . . . 6 (𝑥 = 𝑎 → ((abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2) ↔ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))
3227, 31anbi12d 633 . . . . 5 (𝑥 = 𝑎 → ((0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2)) ↔ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))))
3332elrab 3628 . . . 4 (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ↔ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))))
34 fvex 6658 . . . . 5 (numer‘𝑎) ∈ V
35 fvex 6658 . . . . 5 (denom‘𝑎) ∈ V
36 eleq1 2877 . . . . . . 7 (𝑦 = (numer‘𝑎) → (𝑦 ∈ ℕ ↔ (numer‘𝑎) ∈ ℕ))
3736anbi1d 632 . . . . . 6 (𝑦 = (numer‘𝑎) → ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ↔ ((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ)))
38 oveq1 7142 . . . . . . . . 9 (𝑦 = (numer‘𝑎) → (𝑦↑2) = ((numer‘𝑎)↑2))
3938oveq1d 7150 . . . . . . . 8 (𝑦 = (numer‘𝑎) → ((𝑦↑2) − (𝐷 · (𝑧↑2))) = (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))))
4039neeq1d 3046 . . . . . . 7 (𝑦 = (numer‘𝑎) → (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ↔ (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0))
4139fveq2d 6649 . . . . . . . 8 (𝑦 = (numer‘𝑎) → (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) = (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))))
4241breq1d 5040 . . . . . . 7 (𝑦 = (numer‘𝑎) → ((abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))) ↔ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))
4340, 42anbi12d 633 . . . . . 6 (𝑦 = (numer‘𝑎) → ((((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))) ↔ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))))
4437, 43anbi12d 633 . . . . 5 (𝑦 = (numer‘𝑎) → (((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))) ↔ (((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))))
45 eleq1 2877 . . . . . . 7 (𝑧 = (denom‘𝑎) → (𝑧 ∈ ℕ ↔ (denom‘𝑎) ∈ ℕ))
4645anbi2d 631 . . . . . 6 (𝑧 = (denom‘𝑎) → (((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ↔ ((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ)))
47 oveq1 7142 . . . . . . . . . 10 (𝑧 = (denom‘𝑎) → (𝑧↑2) = ((denom‘𝑎)↑2))
4847oveq2d 7151 . . . . . . . . 9 (𝑧 = (denom‘𝑎) → (𝐷 · (𝑧↑2)) = (𝐷 · ((denom‘𝑎)↑2)))
4948oveq2d 7151 . . . . . . . 8 (𝑧 = (denom‘𝑎) → (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) = (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))))
5049neeq1d 3046 . . . . . . 7 (𝑧 = (denom‘𝑎) → ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ↔ (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0))
5149fveq2d 6649 . . . . . . . 8 (𝑧 = (denom‘𝑎) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) = (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))))
5251breq1d 5040 . . . . . . 7 (𝑧 = (denom‘𝑎) → ((abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))) ↔ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))
5350, 52anbi12d 633 . . . . . 6 (𝑧 = (denom‘𝑎) → (((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))) ↔ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))))
5446, 53anbi12d 633 . . . . 5 (𝑧 = (denom‘𝑎) → ((((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))) ↔ (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))))
5534, 35, 44, 54opelopab 5394 . . . 4 (⟨(numer‘𝑎), (denom‘𝑎)⟩ ∈ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ↔ (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))))
5626, 33, 553imtr4g 299 . . 3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} → ⟨(numer‘𝑎), (denom‘𝑎)⟩ ∈ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))}))
57 ssrab2 4007 . . . . . 6 {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ⊆ ℚ
58 simprl 770 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})
5957, 58sseldi 3913 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑎 ∈ ℚ)
60 simprr 772 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})
6157, 60sseldi 3913 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑏 ∈ ℚ)
6234, 35opth 5333 . . . . . . 7 (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏)))
63 simprl 770 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → (numer‘𝑎) = (numer‘𝑏))
64 simprr 772 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → (denom‘𝑎) = (denom‘𝑏))
6563, 64oveq12d 7153 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → ((numer‘𝑎) / (denom‘𝑎)) = ((numer‘𝑏) / (denom‘𝑏)))
66 simpll 766 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 ∈ ℚ)
6766, 17syl 17 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 = ((numer‘𝑎) / (denom‘𝑎)))
68 simplr 768 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑏 ∈ ℚ)
69 qeqnumdivden 16076 . . . . . . . . . 10 (𝑏 ∈ ℚ → 𝑏 = ((numer‘𝑏) / (denom‘𝑏)))
7068, 69syl 17 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑏 = ((numer‘𝑏) / (denom‘𝑏)))
7165, 67, 703eqtr4d 2843 . . . . . . . 8 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 = 𝑏)
7271ex 416 . . . . . . 7 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏)) → 𝑎 = 𝑏))
7362, 72syl5bi 245 . . . . . 6 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ → 𝑎 = 𝑏))
74 fveq2 6645 . . . . . . 7 (𝑎 = 𝑏 → (numer‘𝑎) = (numer‘𝑏))
75 fveq2 6645 . . . . . . 7 (𝑎 = 𝑏 → (denom‘𝑎) = (denom‘𝑏))
7674, 75opeq12d 4773 . . . . . 6 (𝑎 = 𝑏 → ⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩)
7773, 76impbid1 228 . . . . 5 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏))
7859, 61, 77syl2anc 587 . . . 4 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏))
7978ex 416 . . 3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ((𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))}) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏)))
8056, 79dom2d 8533 . 2 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ({⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ∈ V → {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ≼ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))}))
814, 80mpi 20 1 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ≼ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wne 2987  {crab 3110  Vcvv 3441  cop 4531   class class class wbr 5030  {copab 5092   × cxp 5517  cfv 6324  (class class class)co 7135  cdom 8490  0cc0 10526  1c1 10527   + caddc 10529   · cmul 10531   < clt 10664  cmin 10859  -cneg 10860   / cdiv 11286  cn 11625  2c2 11680  cq 12336  cexp 13425  csqrt 14584  abscabs 14585  numercnumer 16063  denomcdenom 16064
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603  ax-pre-sup 10604
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-sup 8890  df-inf 8891  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287  df-nn 11626  df-2 11688  df-3 11689  df-n0 11886  df-z 11970  df-uz 12232  df-q 12337  df-rp 12378  df-fl 13157  df-mod 13233  df-seq 13365  df-exp 13426  df-cj 14450  df-re 14451  df-im 14452  df-sqrt 14586  df-abs 14587  df-dvds 15600  df-gcd 15834  df-numer 16065  df-denom 16066
This theorem is referenced by:  pellexlem4  39773
  Copyright terms: Public domain W3C validator