MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  aalioulem6 Structured version   Visualization version   GIF version

Theorem aalioulem6 24933
Description: Lemma for aaliou 24934. (Contributed by Stefan O'Rear, 16-Nov-2014.)
Hypotheses
Ref Expression
aalioulem2.a 𝑁 = (deg‘𝐹)
aalioulem2.b (𝜑𝐹 ∈ (Poly‘ℤ))
aalioulem2.c (𝜑𝑁 ∈ ℕ)
aalioulem2.d (𝜑𝐴 ∈ ℝ)
aalioulem3.e (𝜑 → (𝐹𝐴) = 0)
Assertion
Ref Expression
aalioulem6 (𝜑 → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
Distinct variable groups:   𝜑,𝑥,𝑝,𝑞   𝑥,𝐴,𝑝,𝑞   𝑥,𝐹,𝑝,𝑞   𝑥,𝑁
Allowed substitution hints:   𝑁(𝑞,𝑝)

Proof of Theorem aalioulem6
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 aalioulem2.a . . . 4 𝑁 = (deg‘𝐹)
2 aalioulem2.b . . . 4 (𝜑𝐹 ∈ (Poly‘ℤ))
3 aalioulem2.c . . . 4 (𝜑𝑁 ∈ ℕ)
4 aalioulem2.d . . . 4 (𝜑𝐴 ∈ ℝ)
51, 2, 3, 4aalioulem2 24929 . . 3 (𝜑 → ∃𝑎 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6 aalioulem3.e . . . 4 (𝜑 → (𝐹𝐴) = 0)
71, 2, 3, 4, 6aalioulem5 24932 . . 3 (𝜑 → ∃𝑏 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
8 reeanv 3320 . . 3 (∃𝑎 ∈ ℝ+𝑏 ∈ ℝ+ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) ↔ (∃𝑎 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∃𝑏 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))))
95, 7, 8sylanbrc 586 . 2 (𝜑 → ∃𝑎 ∈ ℝ+𝑏 ∈ ℝ+ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))))
10 r19.26-2 3138 . . . 4 (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) ↔ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))))
11 ifcl 4469 . . . . . 6 ((𝑎 ∈ ℝ+𝑏 ∈ ℝ+) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+)
1211adantl 485 . . . . 5 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+)
13 simpr 488 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → (𝐹‘(𝑝 / 𝑞)) = 0)
1411ad2antlr 726 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+)
15 nnrp 12388 . . . . . . . . . . . . . . . . . . 19 (𝑞 ∈ ℕ → 𝑞 ∈ ℝ+)
1615ad2antll 728 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑞 ∈ ℝ+)
173ad2antrr 725 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑁 ∈ ℕ)
1817nnzd 12074 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑁 ∈ ℤ)
1916, 18rpexpcld 13604 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑞𝑁) ∈ ℝ+)
2014, 19rpdivcld 12436 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ+)
2120rpred 12419 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ)
22 simplrl 776 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑎 ∈ ℝ+)
2322, 19rpdivcld 12436 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑎 / (𝑞𝑁)) ∈ ℝ+)
2423rpred 12419 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑎 / (𝑞𝑁)) ∈ ℝ)
254ad2antrr 725 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝐴 ∈ ℝ)
26 znq 12340 . . . . . . . . . . . . . . . . . . . 20 ((𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ) → (𝑝 / 𝑞) ∈ ℚ)
27 qre 12341 . . . . . . . . . . . . . . . . . . . 20 ((𝑝 / 𝑞) ∈ ℚ → (𝑝 / 𝑞) ∈ ℝ)
2826, 27syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ) → (𝑝 / 𝑞) ∈ ℝ)
2928adantl 485 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑝 / 𝑞) ∈ ℝ)
3025, 29resubcld 11057 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝐴 − (𝑝 / 𝑞)) ∈ ℝ)
3130recnd 10658 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝐴 − (𝑝 / 𝑞)) ∈ ℂ)
3231abscld 14788 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ)
3321, 24, 323jca 1125 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑎 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
3433adantr 484 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑎 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
3514rpred 12419 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ)
3622rpred 12419 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑎 ∈ ℝ)
37 simplrr 777 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑏 ∈ ℝ+)
3837rpred 12419 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑏 ∈ ℝ)
39 min1 12570 . . . . . . . . . . . . . . . 16 ((𝑎 ∈ ℝ ∧ 𝑏 ∈ ℝ) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑎)
4036, 38, 39syl2anc 587 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑎)
4135, 36, 19, 40lediv1dd 12477 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑎 / (𝑞𝑁)))
4241anim1i 617 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑎 / (𝑞𝑁)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
43 letr 10723 . . . . . . . . . . . . 13 (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑎 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ) → (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑎 / (𝑞𝑁)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
4434, 42, 43sylc 65 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))
4544ex 416 . . . . . . . . . . 11 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
4645adantr 484 . . . . . . . . . 10 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → ((𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
4746orim2d 964 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → ((𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
4813, 47embantd 59 . . . . . . . 8 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
4948adantrd 495 . . . . . . 7 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → ((((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
50 simpr 488 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → (𝐹‘(𝑝 / 𝑞)) ≠ 0)
5137, 19rpdivcld 12436 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑏 / (𝑞𝑁)) ∈ ℝ+)
5251rpred 12419 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑏 / (𝑞𝑁)) ∈ ℝ)
5321, 52, 323jca 1125 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑏 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
5453adantr 484 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑏 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
55 min2 12571 . . . . . . . . . . . . . . . 16 ((𝑎 ∈ ℝ ∧ 𝑏 ∈ ℝ) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑏)
5636, 38, 55syl2anc 587 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑏)
5735, 38, 19, 56lediv1dd 12477 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑏 / (𝑞𝑁)))
5857anim1i 617 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑏 / (𝑞𝑁)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
59 letr 10723 . . . . . . . . . . . . 13 (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑏 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ) → (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑏 / (𝑞𝑁)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
6054, 58, 59sylc 65 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))
6160ex 416 . . . . . . . . . . 11 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
6261adantr 484 . . . . . . . . . 10 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → ((𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
6362orim2d 964 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → ((𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6450, 63embantd 59 . . . . . . . 8 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → (((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6564adantld 494 . . . . . . 7 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → ((((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6649, 65pm2.61dane 3074 . . . . . 6 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6766ralimdvva 3146 . . . . 5 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
68 oveq1 7142 . . . . . . . . 9 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → (𝑥 / (𝑞𝑁)) = (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)))
6968breq1d 5040 . . . . . . . 8 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → ((𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) ↔ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
7069orbi2d 913 . . . . . . 7 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → ((𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) ↔ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
71702ralbidv 3164 . . . . . 6 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) ↔ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
7271rspcev 3571 . . . . 5 ((if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+ ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
7312, 67, 72syl6an 683 . . . 4 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
7410, 73syl5bir 246 . . 3 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → ((∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
7574rexlimdvva 3253 . 2 (𝜑 → (∃𝑎 ∈ ℝ+𝑏 ∈ ℝ+ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
769, 75mpd 15 1 (𝜑 → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wne 2987  wral 3106  wrex 3107  ifcif 4425   class class class wbr 5030  cfv 6324  (class class class)co 7135  cr 10525  0cc0 10526  cle 10665  cmin 10859   / cdiv 11286  cn 11625  cz 11969  cq 12336  +crp 12377  cexp 13425  abscabs 14585  Polycply 24781  degcdgr 24784
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-inf2 9088  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  ax-addf 10605  ax-mulf 10606
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  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-int 4839  df-iun 4883  df-iin 4884  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-se 5479  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-isom 6333  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-of 7389  df-om 7561  df-1st 7671  df-2nd 7672  df-supp 7814  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-1o 8085  df-2o 8086  df-oadd 8089  df-er 8272  df-map 8391  df-pm 8392  df-ixp 8445  df-en 8493  df-dom 8494  df-sdom 8495  df-fin 8496  df-fsupp 8818  df-fi 8859  df-sup 8890  df-inf 8891  df-oi 8958  df-dju 9314  df-card 9352  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-4 11690  df-5 11691  df-6 11692  df-7 11693  df-8 11694  df-9 11695  df-n0 11886  df-xnn0 11956  df-z 11970  df-dec 12087  df-uz 12232  df-q 12337  df-rp 12378  df-xneg 12495  df-xadd 12496  df-xmul 12497  df-ioo 12730  df-ico 12732  df-icc 12733  df-fz 12886  df-fzo 13029  df-fl 13157  df-seq 13365  df-exp 13426  df-hash 13687  df-cj 14450  df-re 14451  df-im 14452  df-sqrt 14586  df-abs 14587  df-clim 14837  df-rlim 14838  df-sum 15035  df-struct 16477  df-ndx 16478  df-slot 16479  df-base 16481  df-sets 16482  df-ress 16483  df-plusg 16570  df-mulr 16571  df-starv 16572  df-sca 16573  df-vsca 16574  df-ip 16575  df-tset 16576  df-ple 16577  df-ds 16579  df-unif 16580  df-hom 16581  df-cco 16582  df-rest 16688  df-topn 16689  df-0g 16707  df-gsum 16708  df-topgen 16709  df-pt 16710  df-prds 16713  df-xrs 16767  df-qtop 16772  df-imas 16773  df-xps 16775  df-mre 16849  df-mrc 16850  df-acs 16852  df-mgm 17844  df-sgrp 17893  df-mnd 17904  df-submnd 17949  df-grp 18098  df-minusg 18099  df-mulg 18217  df-subg 18268  df-cntz 18439  df-cmn 18900  df-mgp 19233  df-ur 19245  df-ring 19292  df-cring 19293  df-subrg 19526  df-psmet 20083  df-xmet 20084  df-met 20085  df-bl 20086  df-mopn 20087  df-fbas 20088  df-fg 20089  df-cnfld 20092  df-top 21499  df-topon 21516  df-topsp 21538  df-bases 21551  df-cld 21624  df-ntr 21625  df-cls 21626  df-nei 21703  df-lp 21741  df-perf 21742  df-cn 21832  df-cnp 21833  df-haus 21920  df-cmp 21992  df-tx 22167  df-hmeo 22360  df-fil 22451  df-fm 22543  df-flim 22544  df-flf 22545  df-xms 22927  df-ms 22928  df-tms 22929  df-cncf 23483  df-0p 24274  df-limc 24469  df-dv 24470  df-dvn 24471  df-cpn 24472  df-ply 24785  df-idp 24786  df-coe 24787  df-dgr 24788  df-quot 24887
This theorem is referenced by:  aaliou  24934
  Copyright terms: Public domain W3C validator