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

Theorem aalioulem6 26365
Description: Lemma for aaliou 26366. (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 26361 . . 3 (𝜑 → ∃𝑎 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6 aalioulem3.e . . . 4 (𝜑 → (𝐹𝐴) = 0)
71, 2, 3, 4, 6aalioulem5 26364 . . 3 (𝜑 → ∃𝑏 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
8 reeanv 3217 . . 3 (∃𝑎 ∈ ℝ+𝑏 ∈ ℝ+ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) ↔ (∃𝑎 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∃𝑏 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))))
95, 7, 8sylanbrc 581 . 2 (𝜑 → ∃𝑎 ∈ ℝ+𝑏 ∈ ℝ+ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))))
10 r19.26-2 3128 . . . 4 (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) ↔ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))))
11 ifcl 4578 . . . . . 6 ((𝑎 ∈ ℝ+𝑏 ∈ ℝ+) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+)
1211adantl 480 . . . . 5 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+)
13 simpr 483 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → (𝐹‘(𝑝 / 𝑞)) = 0)
1411ad2antlr 725 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+)
15 nnrp 13039 . . . . . . . . . . . . . . . . . . 19 (𝑞 ∈ ℕ → 𝑞 ∈ ℝ+)
1615ad2antll 727 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑞 ∈ ℝ+)
173ad2antrr 724 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑁 ∈ ℕ)
1817nnzd 12637 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑁 ∈ ℤ)
1916, 18rpexpcld 14264 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑞𝑁) ∈ ℝ+)
2014, 19rpdivcld 13087 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ+)
2120rpred 13070 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ)
22 simplrl 775 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑎 ∈ ℝ+)
2322, 19rpdivcld 13087 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑎 / (𝑞𝑁)) ∈ ℝ+)
2423rpred 13070 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑎 / (𝑞𝑁)) ∈ ℝ)
254ad2antrr 724 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝐴 ∈ ℝ)
26 znq 12988 . . . . . . . . . . . . . . . . . . . 20 ((𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ) → (𝑝 / 𝑞) ∈ ℚ)
27 qre 12989 . . . . . . . . . . . . . . . . . . . 20 ((𝑝 / 𝑞) ∈ ℚ → (𝑝 / 𝑞) ∈ ℝ)
2826, 27syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ) → (𝑝 / 𝑞) ∈ ℝ)
2928adantl 480 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑝 / 𝑞) ∈ ℝ)
3025, 29resubcld 11692 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝐴 − (𝑝 / 𝑞)) ∈ ℝ)
3130recnd 11292 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝐴 − (𝑝 / 𝑞)) ∈ ℂ)
3231abscld 15441 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ)
3321, 24, 323jca 1125 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑎 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
3433adantr 479 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑎 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
3514rpred 13070 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ)
3622rpred 13070 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑎 ∈ ℝ)
37 simplrr 776 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑏 ∈ ℝ+)
3837rpred 13070 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → 𝑏 ∈ ℝ)
39 min1 13222 . . . . . . . . . . . . . . . 16 ((𝑎 ∈ ℝ ∧ 𝑏 ∈ ℝ) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑎)
4036, 38, 39syl2anc 582 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑎)
4135, 36, 19, 40lediv1dd 13128 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑎 / (𝑞𝑁)))
4241anim1i 613 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑎 / (𝑞𝑁)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
43 letr 11358 . . . . . . . . . . . . 13 (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑎 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ) → (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑎 / (𝑞𝑁)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
4434, 42, 43sylc 65 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))
4544ex 411 . . . . . . . . . . 11 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
4645adantr 479 . . . . . . . . . 10 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → ((𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
4746orim2d 964 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → ((𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
4813, 47embantd 59 . . . . . . . 8 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
4948adantrd 490 . . . . . . 7 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) = 0) → ((((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
50 simpr 483 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → (𝐹‘(𝑝 / 𝑞)) ≠ 0)
5137, 19rpdivcld 13087 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑏 / (𝑞𝑁)) ∈ ℝ+)
5251rpred 13070 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (𝑏 / (𝑞𝑁)) ∈ ℝ)
5321, 52, 323jca 1125 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑏 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
5453adantr 479 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑏 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ))
55 min2 13223 . . . . . . . . . . . . . . . 16 ((𝑎 ∈ ℝ ∧ 𝑏 ∈ ℝ) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑏)
5636, 38, 55syl2anc 582 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → if(𝑎𝑏, 𝑎, 𝑏) ≤ 𝑏)
5735, 38, 19, 56lediv1dd 13128 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑏 / (𝑞𝑁)))
5857anim1i 613 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → ((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑏 / (𝑞𝑁)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
59 letr 11358 . . . . . . . . . . . . 13 (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ∈ ℝ ∧ (𝑏 / (𝑞𝑁)) ∈ ℝ ∧ (abs‘(𝐴 − (𝑝 / 𝑞))) ∈ ℝ) → (((if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (𝑏 / (𝑞𝑁)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
6054, 58, 59sylc 65 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))
6160ex 411 . . . . . . . . . . 11 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
6261adantr 479 . . . . . . . . . 10 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → ((𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) → (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
6362orim2d 964 . . . . . . . . 9 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → ((𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6450, 63embantd 59 . . . . . . . 8 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → (((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6564adantld 489 . . . . . . 7 ((((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) ∧ (𝐹‘(𝑝 / 𝑞)) ≠ 0) → ((((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6649, 65pm2.61dane 3019 . . . . . 6 (((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) ∧ (𝑝 ∈ ℤ ∧ 𝑞 ∈ ℕ)) → ((((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
6766ralimdvva 3195 . . . . 5 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
68 oveq1 7431 . . . . . . . . 9 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → (𝑥 / (𝑞𝑁)) = (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)))
6968breq1d 5163 . . . . . . . 8 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → ((𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))) ↔ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
7069orbi2d 913 . . . . . . 7 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → ((𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) ↔ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
71702ralbidv 3209 . . . . . 6 (𝑥 = if(𝑎𝑏, 𝑎, 𝑏) → (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))) ↔ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
7271rspcev 3608 . . . . 5 ((if(𝑎𝑏, 𝑎, 𝑏) ∈ ℝ+ ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (if(𝑎𝑏, 𝑎, 𝑏) / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
7312, 67, 72syl6an 682 . . . 4 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
7410, 73biimtrrid 242 . . 3 ((𝜑 ∧ (𝑎 ∈ ℝ+𝑏 ∈ ℝ+)) → ((∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
7574rexlimdvva 3202 . 2 (𝜑 → (∃𝑎 ∈ ℝ+𝑏 ∈ ℝ+ (∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) = 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑎 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))) ∧ ∀𝑝 ∈ ℤ ∀𝑞 ∈ ℕ ((𝐹‘(𝑝 / 𝑞)) ≠ 0 → (𝐴 = (𝑝 / 𝑞) ∨ (𝑏 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))) → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞))))))
769, 75mpd 15 1 (𝜑 → ∃𝑥 ∈ ℝ+𝑝 ∈ ℤ ∀𝑞 ∈ ℕ (𝐴 = (𝑝 / 𝑞) ∨ (𝑥 / (𝑞𝑁)) ≤ (abs‘(𝐴 − (𝑝 / 𝑞)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 394  wo 845  w3a 1084   = wceq 1534  wcel 2099  wne 2930  wral 3051  wrex 3060  ifcif 4533   class class class wbr 5153  cfv 6554  (class class class)co 7424  cr 11157  0cc0 11158  cle 11299  cmin 11494   / cdiv 11921  cn 12264  cz 12610  cq 12984  +crp 13028  cexp 14081  abscabs 15239  Polycply 26211  degcdgr 26214
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1906  ax-6 1964  ax-7 2004  ax-8 2101  ax-9 2109  ax-10 2130  ax-11 2147  ax-12 2167  ax-ext 2697  ax-rep 5290  ax-sep 5304  ax-nul 5311  ax-pow 5369  ax-pr 5433  ax-un 7746  ax-inf2 9684  ax-cnex 11214  ax-resscn 11215  ax-1cn 11216  ax-icn 11217  ax-addcl 11218  ax-addrcl 11219  ax-mulcl 11220  ax-mulrcl 11221  ax-mulcom 11222  ax-addass 11223  ax-mulass 11224  ax-distr 11225  ax-i2m1 11226  ax-1ne0 11227  ax-1rid 11228  ax-rnegex 11229  ax-rrecex 11230  ax-cnre 11231  ax-pre-lttri 11232  ax-pre-lttrn 11233  ax-pre-ltadd 11234  ax-pre-mulgt0 11235  ax-pre-sup 11236  ax-addf 11237
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1537  df-fal 1547  df-ex 1775  df-nf 1779  df-sb 2061  df-mo 2529  df-eu 2558  df-clab 2704  df-cleq 2718  df-clel 2803  df-nfc 2878  df-ne 2931  df-nel 3037  df-ral 3052  df-rex 3061  df-rmo 3364  df-reu 3365  df-rab 3420  df-v 3464  df-sbc 3777  df-csb 3893  df-dif 3950  df-un 3952  df-in 3954  df-ss 3964  df-pss 3967  df-nul 4326  df-if 4534  df-pw 4609  df-sn 4634  df-pr 4636  df-tp 4638  df-op 4640  df-uni 4914  df-int 4955  df-iun 5003  df-iin 5004  df-br 5154  df-opab 5216  df-mpt 5237  df-tr 5271  df-id 5580  df-eprel 5586  df-po 5594  df-so 5595  df-fr 5637  df-se 5638  df-we 5639  df-xp 5688  df-rel 5689  df-cnv 5690  df-co 5691  df-dm 5692  df-rn 5693  df-res 5694  df-ima 5695  df-pred 6312  df-ord 6379  df-on 6380  df-lim 6381  df-suc 6382  df-iota 6506  df-fun 6556  df-fn 6557  df-f 6558  df-f1 6559  df-fo 6560  df-f1o 6561  df-fv 6562  df-isom 6563  df-riota 7380  df-ov 7427  df-oprab 7428  df-mpo 7429  df-of 7690  df-om 7877  df-1st 8003  df-2nd 8004  df-supp 8175  df-frecs 8296  df-wrecs 8327  df-recs 8401  df-rdg 8440  df-1o 8496  df-2o 8497  df-oadd 8500  df-er 8734  df-map 8857  df-pm 8858  df-ixp 8927  df-en 8975  df-dom 8976  df-sdom 8977  df-fin 8978  df-fsupp 9406  df-fi 9454  df-sup 9485  df-inf 9486  df-oi 9553  df-dju 9944  df-card 9982  df-pnf 11300  df-mnf 11301  df-xr 11302  df-ltxr 11303  df-le 11304  df-sub 11496  df-neg 11497  df-div 11922  df-nn 12265  df-2 12327  df-3 12328  df-4 12329  df-5 12330  df-6 12331  df-7 12332  df-8 12333  df-9 12334  df-n0 12525  df-xnn0 12597  df-z 12611  df-dec 12730  df-uz 12875  df-q 12985  df-rp 13029  df-xneg 13146  df-xadd 13147  df-xmul 13148  df-ioo 13382  df-ico 13384  df-icc 13385  df-fz 13539  df-fzo 13682  df-fl 13812  df-seq 14022  df-exp 14082  df-hash 14348  df-cj 15104  df-re 15105  df-im 15106  df-sqrt 15240  df-abs 15241  df-clim 15490  df-rlim 15491  df-sum 15691  df-struct 17149  df-sets 17166  df-slot 17184  df-ndx 17196  df-base 17214  df-ress 17243  df-plusg 17279  df-mulr 17280  df-starv 17281  df-sca 17282  df-vsca 17283  df-ip 17284  df-tset 17285  df-ple 17286  df-ds 17288  df-unif 17289  df-hom 17290  df-cco 17291  df-rest 17437  df-topn 17438  df-0g 17456  df-gsum 17457  df-topgen 17458  df-pt 17459  df-prds 17462  df-xrs 17517  df-qtop 17522  df-imas 17523  df-xps 17525  df-mre 17599  df-mrc 17600  df-acs 17602  df-mgm 18633  df-sgrp 18712  df-mnd 18728  df-submnd 18774  df-grp 18931  df-minusg 18932  df-mulg 19062  df-subg 19117  df-cntz 19311  df-cmn 19780  df-abl 19781  df-mgp 20118  df-rng 20136  df-ur 20165  df-ring 20218  df-cring 20219  df-subrng 20528  df-subrg 20553  df-psmet 21335  df-xmet 21336  df-met 21337  df-bl 21338  df-mopn 21339  df-fbas 21340  df-fg 21341  df-cnfld 21344  df-top 22887  df-topon 22904  df-topsp 22926  df-bases 22940  df-cld 23014  df-ntr 23015  df-cls 23016  df-nei 23093  df-lp 23131  df-perf 23132  df-cn 23222  df-cnp 23223  df-haus 23310  df-cmp 23382  df-tx 23557  df-hmeo 23750  df-fil 23841  df-fm 23933  df-flim 23934  df-flf 23935  df-xms 24317  df-ms 24318  df-tms 24319  df-cncf 24889  df-0p 25690  df-limc 25886  df-dv 25887  df-dvn 25888  df-cpn 25889  df-ply 26215  df-idp 26216  df-coe 26217  df-dgr 26218  df-quot 26319
This theorem is referenced by:  aaliou  26366
  Copyright terms: Public domain W3C validator