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 39421
Description: Lemma for pellex 39425. 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 11638 . . . 4 ℕ ∈ V
21, 1xpex 7470 . . 3 (ℕ × ℕ) ∈ V
3 opabssxp 5637 . . 3 {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ⊆ (ℕ × ℕ)
42, 3ssexi 5218 . 2 {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ∈ V
5 simprl 769 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 𝑎 ∈ ℚ)
6 simprrl 779 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 0 < 𝑎)
7 qgt0numnn 16085 . . . . . . . 8 ((𝑎 ∈ ℚ ∧ 0 < 𝑎) → (numer‘𝑎) ∈ ℕ)
85, 6, 7syl2anc 586 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (numer‘𝑎) ∈ ℕ)
9 qdencl 16075 . . . . . . . 8 (𝑎 ∈ ℚ → (denom‘𝑎) ∈ ℕ)
105, 9syl 17 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (denom‘𝑎) ∈ ℕ)
118, 10jca 514 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ))
12 simpll 765 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 𝐷 ∈ ℕ)
13 simplr 767 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ¬ (√‘𝐷) ∈ ℚ)
14 pellexlem1 39419 . . . . . . 7 (((𝐷 ∈ ℕ ∧ (numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ¬ (√‘𝐷) ∈ ℚ) → (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0)
1512, 8, 10, 13, 14syl31anc 1369 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0)
16 simprrr 780 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))
17 qeqnumdivden 16080 . . . . . . . . . . . 12 (𝑎 ∈ ℚ → 𝑎 = ((numer‘𝑎) / (denom‘𝑎)))
1817oveq1d 7165 . . . . . . . . . . 11 (𝑎 ∈ ℚ → (𝑎 − (√‘𝐷)) = (((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷)))
1918fveq2d 6668 . . . . . . . . . 10 (𝑎 ∈ ℚ → (abs‘(𝑎 − (√‘𝐷))) = (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))))
2019breq1d 5068 . . . . . . . . 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 234 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2))
23 pellexlem2 39420 . . . . . . 7 (((𝐷 ∈ ℕ ∧ (numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2)) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))
2412, 8, 10, 22, 23syl31anc 1369 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))
2511, 15, 24jca32 518 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))))
2625ex 415 . . . 4 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ((𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))) → (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))))
27 breq2 5062 . . . . . 6 (𝑥 = 𝑎 → (0 < 𝑥 ↔ 0 < 𝑎))
28 fvoveq1 7173 . . . . . . 7 (𝑥 = 𝑎 → (abs‘(𝑥 − (√‘𝐷))) = (abs‘(𝑎 − (√‘𝐷))))
29 fveq2 6664 . . . . . . . 8 (𝑥 = 𝑎 → (denom‘𝑥) = (denom‘𝑎))
3029oveq1d 7165 . . . . . . 7 (𝑥 = 𝑎 → ((denom‘𝑥)↑-2) = ((denom‘𝑎)↑-2))
3128, 30breq12d 5071 . . . . . 6 (𝑥 = 𝑎 → ((abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2) ↔ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))
3227, 31anbi12d 632 . . . . 5 (𝑥 = 𝑎 → ((0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2)) ↔ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))))
3332elrab 3679 . . . 4 (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ↔ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))))
34 fvex 6677 . . . . 5 (numer‘𝑎) ∈ V
35 fvex 6677 . . . . 5 (denom‘𝑎) ∈ V
36 eleq1 2900 . . . . . . 7 (𝑦 = (numer‘𝑎) → (𝑦 ∈ ℕ ↔ (numer‘𝑎) ∈ ℕ))
3736anbi1d 631 . . . . . 6 (𝑦 = (numer‘𝑎) → ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ↔ ((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ)))
38 oveq1 7157 . . . . . . . . 9 (𝑦 = (numer‘𝑎) → (𝑦↑2) = ((numer‘𝑎)↑2))
3938oveq1d 7165 . . . . . . . 8 (𝑦 = (numer‘𝑎) → ((𝑦↑2) − (𝐷 · (𝑧↑2))) = (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))))
4039neeq1d 3075 . . . . . . 7 (𝑦 = (numer‘𝑎) → (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ↔ (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0))
4139fveq2d 6668 . . . . . . . 8 (𝑦 = (numer‘𝑎) → (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) = (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))))
4241breq1d 5068 . . . . . . 7 (𝑦 = (numer‘𝑎) → ((abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))) ↔ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))
4340, 42anbi12d 632 . . . . . 6 (𝑦 = (numer‘𝑎) → ((((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))) ↔ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))))
4437, 43anbi12d 632 . . . . 5 (𝑦 = (numer‘𝑎) → (((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))) ↔ (((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))))
45 eleq1 2900 . . . . . . 7 (𝑧 = (denom‘𝑎) → (𝑧 ∈ ℕ ↔ (denom‘𝑎) ∈ ℕ))
4645anbi2d 630 . . . . . 6 (𝑧 = (denom‘𝑎) → (((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ↔ ((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ)))
47 oveq1 7157 . . . . . . . . . 10 (𝑧 = (denom‘𝑎) → (𝑧↑2) = ((denom‘𝑎)↑2))
4847oveq2d 7166 . . . . . . . . 9 (𝑧 = (denom‘𝑎) → (𝐷 · (𝑧↑2)) = (𝐷 · ((denom‘𝑎)↑2)))
4948oveq2d 7166 . . . . . . . 8 (𝑧 = (denom‘𝑎) → (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) = (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))))
5049neeq1d 3075 . . . . . . 7 (𝑧 = (denom‘𝑎) → ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ↔ (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0))
5149fveq2d 6668 . . . . . . . 8 (𝑧 = (denom‘𝑎) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) = (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))))
5251breq1d 5068 . . . . . . 7 (𝑧 = (denom‘𝑎) → ((abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))) ↔ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))
5350, 52anbi12d 632 . . . . . 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 632 . . . . 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 5421 . . . 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 298 . . 3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} → ⟨(numer‘𝑎), (denom‘𝑎)⟩ ∈ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))}))
57 ssrab2 4055 . . . . . 6 {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ⊆ ℚ
58 simprl 769 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})
5957, 58sseldi 3964 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑎 ∈ ℚ)
60 simprr 771 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})
6157, 60sseldi 3964 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑏 ∈ ℚ)
6234, 35opth 5360 . . . . . . 7 (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏)))
63 simprl 769 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → (numer‘𝑎) = (numer‘𝑏))
64 simprr 771 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → (denom‘𝑎) = (denom‘𝑏))
6563, 64oveq12d 7168 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → ((numer‘𝑎) / (denom‘𝑎)) = ((numer‘𝑏) / (denom‘𝑏)))
66 simpll 765 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 ∈ ℚ)
6766, 17syl 17 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 = ((numer‘𝑎) / (denom‘𝑎)))
68 simplr 767 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑏 ∈ ℚ)
69 qeqnumdivden 16080 . . . . . . . . . 10 (𝑏 ∈ ℚ → 𝑏 = ((numer‘𝑏) / (denom‘𝑏)))
7068, 69syl 17 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑏 = ((numer‘𝑏) / (denom‘𝑏)))
7165, 67, 703eqtr4d 2866 . . . . . . . 8 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 = 𝑏)
7271ex 415 . . . . . . 7 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏)) → 𝑎 = 𝑏))
7362, 72syl5bi 244 . . . . . 6 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ → 𝑎 = 𝑏))
74 fveq2 6664 . . . . . . 7 (𝑎 = 𝑏 → (numer‘𝑎) = (numer‘𝑏))
75 fveq2 6664 . . . . . . 7 (𝑎 = 𝑏 → (denom‘𝑎) = (denom‘𝑏))
7674, 75opeq12d 4804 . . . . . 6 (𝑎 = 𝑏 → ⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩)
7773, 76impbid1 227 . . . . 5 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏))
7859, 61, 77syl2anc 586 . . . 4 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏))
7978ex 415 . . 3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ((𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))}) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏)))
8056, 79dom2d 8544 . 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 208  wa 398   = wceq 1533  wcel 2110  wne 3016  {crab 3142  Vcvv 3494  cop 4566   class class class wbr 5058  {copab 5120   × cxp 5547  cfv 6349  (class class class)co 7150  cdom 8501  0cc0 10531  1c1 10532   + caddc 10534   · cmul 10536   < clt 10669  cmin 10864  -cneg 10865   / cdiv 11291  cn 11632  2c2 11686  cq 12342  cexp 13423  csqrt 14586  abscabs 14587  numercnumer 16067  denomcdenom 16068
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-rep 5182  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455  ax-cnex 10587  ax-resscn 10588  ax-1cn 10589  ax-icn 10590  ax-addcl 10591  ax-addrcl 10592  ax-mulcl 10593  ax-mulrcl 10594  ax-mulcom 10595  ax-addass 10596  ax-mulass 10597  ax-distr 10598  ax-i2m1 10599  ax-1ne0 10600  ax-1rid 10601  ax-rnegex 10602  ax-rrecex 10603  ax-cnre 10604  ax-pre-lttri 10605  ax-pre-lttrn 10606  ax-pre-ltadd 10607  ax-pre-mulgt0 10608  ax-pre-sup 10609
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-pss 3953  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4561  df-pr 4563  df-tp 4565  df-op 4567  df-uni 4832  df-iun 4913  df-br 5059  df-opab 5121  df-mpt 5139  df-tr 5165  df-id 5454  df-eprel 5459  df-po 5468  df-so 5469  df-fr 5508  df-we 5510  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-pred 6142  df-ord 6188  df-on 6189  df-lim 6190  df-suc 6191  df-iota 6308  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7575  df-1st 7683  df-2nd 7684  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-er 8283  df-en 8504  df-dom 8505  df-sdom 8506  df-sup 8900  df-inf 8901  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-div 11292  df-nn 11633  df-2 11694  df-3 11695  df-n0 11892  df-z 11976  df-uz 12238  df-q 12343  df-rp 12384  df-fl 13156  df-mod 13232  df-seq 13364  df-exp 13424  df-cj 14452  df-re 14453  df-im 14454  df-sqrt 14588  df-abs 14589  df-dvds 15602  df-gcd 15838  df-numer 16069  df-denom 16070
This theorem is referenced by:  pellexlem4  39422
  Copyright terms: Public domain W3C validator