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 40863
Description: Lemma for pellex 40867. 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 12049 . . . 4 ℕ ∈ V
21, 1xpex 7641 . . 3 (ℕ × ℕ) ∈ V
3 opabssxp 5695 . . 3 {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ⊆ (ℕ × ℕ)
42, 3ssexi 5259 . 2 {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))} ∈ V
5 simprl 768 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 𝑎 ∈ ℚ)
6 simprrl 778 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 0 < 𝑎)
7 qgt0numnn 16522 . . . . . . . 8 ((𝑎 ∈ ℚ ∧ 0 < 𝑎) → (numer‘𝑎) ∈ ℕ)
85, 6, 7syl2anc 584 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (numer‘𝑎) ∈ ℕ)
9 qdencl 16512 . . . . . . . 8 (𝑎 ∈ ℚ → (denom‘𝑎) ∈ ℕ)
105, 9syl 17 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (denom‘𝑎) ∈ ℕ)
118, 10jca 512 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ))
12 simpll 764 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → 𝐷 ∈ ℕ)
13 simplr 766 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → ¬ (√‘𝐷) ∈ ℚ)
14 pellexlem1 40861 . . . . . . 7 (((𝐷 ∈ ℕ ∧ (numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ¬ (√‘𝐷) ∈ ℚ) → (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0)
1512, 8, 10, 13, 14syl31anc 1372 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0)
16 simprrr 779 . . . . . . . 8 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))
17 qeqnumdivden 16517 . . . . . . . . . . . 12 (𝑎 ∈ ℚ → 𝑎 = ((numer‘𝑎) / (denom‘𝑎)))
1817oveq1d 7328 . . . . . . . . . . 11 (𝑎 ∈ ℚ → (𝑎 − (√‘𝐷)) = (((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷)))
1918fveq2d 6813 . . . . . . . . . 10 (𝑎 ∈ ℚ → (abs‘(𝑎 − (√‘𝐷))) = (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))))
2019breq1d 5095 . . . . . . . . 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 231 . . . . . . 7 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2))
23 pellexlem2 40862 . . . . . . 7 (((𝐷 ∈ ℕ ∧ (numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ (abs‘(((numer‘𝑎) / (denom‘𝑎)) − (√‘𝐷))) < ((denom‘𝑎)↑-2)) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))
2412, 8, 10, 22, 23syl31anc 1372 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))
2511, 15, 24jca32 516 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))) → (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷))))))
2625ex 413 . . . 4 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ((𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))) → (((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))))
27 breq2 5089 . . . . . 6 (𝑥 = 𝑎 → (0 < 𝑥 ↔ 0 < 𝑎))
28 fvoveq1 7336 . . . . . . 7 (𝑥 = 𝑎 → (abs‘(𝑥 − (√‘𝐷))) = (abs‘(𝑎 − (√‘𝐷))))
29 fveq2 6809 . . . . . . . 8 (𝑥 = 𝑎 → (denom‘𝑥) = (denom‘𝑎))
3029oveq1d 7328 . . . . . . 7 (𝑥 = 𝑎 → ((denom‘𝑥)↑-2) = ((denom‘𝑎)↑-2))
3128, 30breq12d 5098 . . . . . 6 (𝑥 = 𝑎 → ((abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2) ↔ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2)))
3227, 31anbi12d 631 . . . . 5 (𝑥 = 𝑎 → ((0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2)) ↔ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))))
3332elrab 3633 . . . 4 (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ↔ (𝑎 ∈ ℚ ∧ (0 < 𝑎 ∧ (abs‘(𝑎 − (√‘𝐷))) < ((denom‘𝑎)↑-2))))
34 fvex 6822 . . . . 5 (numer‘𝑎) ∈ V
35 fvex 6822 . . . . 5 (denom‘𝑎) ∈ V
36 eleq1 2825 . . . . . . 7 (𝑦 = (numer‘𝑎) → (𝑦 ∈ ℕ ↔ (numer‘𝑎) ∈ ℕ))
3736anbi1d 630 . . . . . 6 (𝑦 = (numer‘𝑎) → ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ↔ ((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ)))
38 oveq1 7320 . . . . . . . . 9 (𝑦 = (numer‘𝑎) → (𝑦↑2) = ((numer‘𝑎)↑2))
3938oveq1d 7328 . . . . . . . 8 (𝑦 = (numer‘𝑎) → ((𝑦↑2) − (𝐷 · (𝑧↑2))) = (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))))
4039neeq1d 3001 . . . . . . 7 (𝑦 = (numer‘𝑎) → (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ↔ (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0))
4139fveq2d 6813 . . . . . . . 8 (𝑦 = (numer‘𝑎) → (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) = (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))))
4241breq1d 5095 . . . . . . 7 (𝑦 = (numer‘𝑎) → ((abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))) ↔ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))
4340, 42anbi12d 631 . . . . . 6 (𝑦 = (numer‘𝑎) → ((((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))) ↔ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))))
4437, 43anbi12d 631 . . . . 5 (𝑦 = (numer‘𝑎) → (((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))))) ↔ (((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))))
45 eleq1 2825 . . . . . . 7 (𝑧 = (denom‘𝑎) → (𝑧 ∈ ℕ ↔ (denom‘𝑎) ∈ ℕ))
4645anbi2d 629 . . . . . 6 (𝑧 = (denom‘𝑎) → (((numer‘𝑎) ∈ ℕ ∧ 𝑧 ∈ ℕ) ↔ ((numer‘𝑎) ∈ ℕ ∧ (denom‘𝑎) ∈ ℕ)))
47 oveq1 7320 . . . . . . . . . 10 (𝑧 = (denom‘𝑎) → (𝑧↑2) = ((denom‘𝑎)↑2))
4847oveq2d 7329 . . . . . . . . 9 (𝑧 = (denom‘𝑎) → (𝐷 · (𝑧↑2)) = (𝐷 · ((denom‘𝑎)↑2)))
4948oveq2d 7329 . . . . . . . 8 (𝑧 = (denom‘𝑎) → (((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) = (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))))
5049neeq1d 3001 . . . . . . 7 (𝑧 = (denom‘𝑎) → ((((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ↔ (((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2))) ≠ 0))
5149fveq2d 6813 . . . . . . . 8 (𝑧 = (denom‘𝑎) → (abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) = (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))))
5251breq1d 5095 . . . . . . 7 (𝑧 = (denom‘𝑎) → ((abs‘(((numer‘𝑎)↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷))) ↔ (abs‘(((numer‘𝑎)↑2) − (𝐷 · ((denom‘𝑎)↑2)))) < (1 + (2 · (√‘𝐷)))))
5350, 52anbi12d 631 . . . . . 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 631 . . . . 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 5473 . . . 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 295 . . 3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} → ⟨(numer‘𝑎), (denom‘𝑎)⟩ ∈ {⟨𝑦, 𝑧⟩ ∣ ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (((𝑦↑2) − (𝐷 · (𝑧↑2))) ≠ 0 ∧ (abs‘((𝑦↑2) − (𝐷 · (𝑧↑2)))) < (1 + (2 · (√‘𝐷)))))}))
57 ssrab2 4023 . . . . . 6 {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ⊆ ℚ
58 simprl 768 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})
5957, 58sselid 3928 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑎 ∈ ℚ)
60 simprr 770 . . . . . 6 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})
6157, 60sselid 3928 . . . . 5 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → 𝑏 ∈ ℚ)
6234, 35opth 5408 . . . . . . 7 (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏)))
63 simprl 768 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → (numer‘𝑎) = (numer‘𝑏))
64 simprr 770 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → (denom‘𝑎) = (denom‘𝑏))
6563, 64oveq12d 7331 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → ((numer‘𝑎) / (denom‘𝑎)) = ((numer‘𝑏) / (denom‘𝑏)))
66 simpll 764 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 ∈ ℚ)
6766, 17syl 17 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 = ((numer‘𝑎) / (denom‘𝑎)))
68 simplr 766 . . . . . . . . . 10 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑏 ∈ ℚ)
69 qeqnumdivden 16517 . . . . . . . . . 10 (𝑏 ∈ ℚ → 𝑏 = ((numer‘𝑏) / (denom‘𝑏)))
7068, 69syl 17 . . . . . . . . 9 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑏 = ((numer‘𝑏) / (denom‘𝑏)))
7165, 67, 703eqtr4d 2787 . . . . . . . 8 (((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) ∧ ((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏))) → 𝑎 = 𝑏)
7271ex 413 . . . . . . 7 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (((numer‘𝑎) = (numer‘𝑏) ∧ (denom‘𝑎) = (denom‘𝑏)) → 𝑎 = 𝑏))
7362, 72biimtrid 241 . . . . . 6 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ → 𝑎 = 𝑏))
74 fveq2 6809 . . . . . . 7 (𝑎 = 𝑏 → (numer‘𝑎) = (numer‘𝑏))
75 fveq2 6809 . . . . . . 7 (𝑎 = 𝑏 → (denom‘𝑎) = (denom‘𝑏))
7674, 75opeq12d 4821 . . . . . 6 (𝑎 = 𝑏 → ⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩)
7773, 76impbid1 224 . . . . 5 ((𝑎 ∈ ℚ ∧ 𝑏 ∈ ℚ) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏))
7859, 61, 77syl2anc 584 . . . 4 (((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) ∧ (𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))})) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏))
7978ex 413 . . 3 ((𝐷 ∈ ℕ ∧ ¬ (√‘𝐷) ∈ ℚ) → ((𝑎 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))} ∧ 𝑏 ∈ {𝑥 ∈ ℚ ∣ (0 < 𝑥 ∧ (abs‘(𝑥 − (√‘𝐷))) < ((denom‘𝑥)↑-2))}) → (⟨(numer‘𝑎), (denom‘𝑎)⟩ = ⟨(numer‘𝑏), (denom‘𝑏)⟩ ↔ 𝑎 = 𝑏)))
8056, 79dom2d 8829 . 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 205  wa 396   = wceq 1540  wcel 2105  wne 2941  {crab 3404  Vcvv 3441  cop 4575   class class class wbr 5085  {copab 5147   × cxp 5603  cfv 6463  (class class class)co 7313  cdom 8777  0cc0 10941  1c1 10942   + caddc 10944   · cmul 10946   < clt 11079  cmin 11275  -cneg 11276   / cdiv 11702  cn 12043  2c2 12098  cq 12758  cexp 13852  csqrt 15013  abscabs 15014  numercnumer 16504  denomcdenom 16505
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2708  ax-rep 5222  ax-sep 5236  ax-nul 5243  ax-pow 5301  ax-pr 5365  ax-un 7626  ax-cnex 10997  ax-resscn 10998  ax-1cn 10999  ax-icn 11000  ax-addcl 11001  ax-addrcl 11002  ax-mulcl 11003  ax-mulrcl 11004  ax-mulcom 11005  ax-addass 11006  ax-mulass 11007  ax-distr 11008  ax-i2m1 11009  ax-1ne0 11010  ax-1rid 11011  ax-rnegex 11012  ax-rrecex 11013  ax-cnre 11014  ax-pre-lttri 11015  ax-pre-lttrn 11016  ax-pre-ltadd 11017  ax-pre-mulgt0 11018  ax-pre-sup 11019
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-rmo 3350  df-reu 3351  df-rab 3405  df-v 3443  df-sbc 3726  df-csb 3842  df-dif 3899  df-un 3901  df-in 3903  df-ss 3913  df-pss 3915  df-nul 4267  df-if 4470  df-pw 4545  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4849  df-iun 4937  df-br 5086  df-opab 5148  df-mpt 5169  df-tr 5203  df-id 5505  df-eprel 5511  df-po 5519  df-so 5520  df-fr 5560  df-we 5562  df-xp 5611  df-rel 5612  df-cnv 5613  df-co 5614  df-dm 5615  df-rn 5616  df-res 5617  df-ima 5618  df-pred 6222  df-ord 6289  df-on 6290  df-lim 6291  df-suc 6292  df-iota 6415  df-fun 6465  df-fn 6466  df-f 6467  df-f1 6468  df-fo 6469  df-f1o 6470  df-fv 6471  df-riota 7270  df-ov 7316  df-oprab 7317  df-mpo 7318  df-om 7756  df-1st 7874  df-2nd 7875  df-frecs 8142  df-wrecs 8173  df-recs 8247  df-rdg 8286  df-er 8544  df-en 8780  df-dom 8781  df-sdom 8782  df-sup 9269  df-inf 9270  df-pnf 11081  df-mnf 11082  df-xr 11083  df-ltxr 11084  df-le 11085  df-sub 11277  df-neg 11278  df-div 11703  df-nn 12044  df-2 12106  df-3 12107  df-n0 12304  df-z 12390  df-uz 12653  df-q 12759  df-rp 12801  df-fl 13582  df-mod 13660  df-seq 13792  df-exp 13853  df-cj 14879  df-re 14880  df-im 14881  df-sqrt 15015  df-abs 15016  df-dvds 16033  df-gcd 16271  df-numer 16506  df-denom 16507
This theorem is referenced by:  pellexlem4  40864
  Copyright terms: Public domain W3C validator