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

Theorem ruclem1 15637
 Description: Lemma for ruc 15649 (the reals are uncountable). Substitutions for the function 𝐷. (Contributed by Mario Carneiro, 28-May-2014.) (Revised by Fan Zheng, 6-Jun-2016.)
Hypotheses
Ref Expression
ruc.1 (𝜑𝐹:ℕ⟶ℝ)
ruc.2 (𝜑𝐷 = (𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩)))
ruclem1.3 (𝜑𝐴 ∈ ℝ)
ruclem1.4 (𝜑𝐵 ∈ ℝ)
ruclem1.5 (𝜑𝑀 ∈ ℝ)
ruclem1.6 𝑋 = (1st ‘(⟨𝐴, 𝐵𝐷𝑀))
ruclem1.7 𝑌 = (2nd ‘(⟨𝐴, 𝐵𝐷𝑀))
Assertion
Ref Expression
ruclem1 (𝜑 → ((⟨𝐴, 𝐵𝐷𝑀) ∈ (ℝ × ℝ) ∧ 𝑋 = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)) ∧ 𝑌 = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵)))
Distinct variable groups:   𝑥,𝑚,𝑦,𝐴   𝐵,𝑚,𝑥,𝑦   𝑚,𝐹,𝑥,𝑦   𝑚,𝑀,𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑚)   𝐷(𝑥,𝑦,𝑚)   𝑋(𝑥,𝑦,𝑚)   𝑌(𝑥,𝑦,𝑚)

Proof of Theorem ruclem1
StepHypRef Expression
1 ruc.2 . . . . . 6 (𝜑𝐷 = (𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩)))
21oveqd 7172 . . . . 5 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) = (⟨𝐴, 𝐵⟩(𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))𝑀))
3 ruclem1.3 . . . . . . 7 (𝜑𝐴 ∈ ℝ)
4 ruclem1.4 . . . . . . 7 (𝜑𝐵 ∈ ℝ)
53, 4opelxpd 5565 . . . . . 6 (𝜑 → ⟨𝐴, 𝐵⟩ ∈ (ℝ × ℝ))
6 ruclem1.5 . . . . . 6 (𝜑𝑀 ∈ ℝ)
7 simpr 488 . . . . . . . . . . 11 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → 𝑦 = 𝑀)
87breq2d 5047 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (𝑚 < 𝑦𝑚 < 𝑀))
9 simpl 486 . . . . . . . . . . . 12 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → 𝑥 = ⟨𝐴, 𝐵⟩)
109fveq2d 6666 . . . . . . . . . . 11 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (1st𝑥) = (1st ‘⟨𝐴, 𝐵⟩))
1110opeq1d 4772 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ⟨(1st𝑥), 𝑚⟩ = ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩)
129fveq2d 6666 . . . . . . . . . . . . 13 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (2nd𝑥) = (2nd ‘⟨𝐴, 𝐵⟩))
1312oveq2d 7171 . . . . . . . . . . . 12 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (𝑚 + (2nd𝑥)) = (𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)))
1413oveq1d 7170 . . . . . . . . . . 11 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ((𝑚 + (2nd𝑥)) / 2) = ((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2))
1514, 12opeq12d 4774 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩ = ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩)
168, 11, 15ifbieq12d 4451 . . . . . . . . 9 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩) = if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
1716csbeq2dv 3814 . . . . . . . 8 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩) = (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
1810, 12oveq12d 7173 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ((1st𝑥) + (2nd𝑥)) = ((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)))
1918oveq1d 7170 . . . . . . . . 9 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2))
2019csbeq1d 3811 . . . . . . . 8 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
2117, 20eqtrd 2793 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
22 eqid 2758 . . . . . . 7 (𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩)) = (𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))
23 opex 5327 . . . . . . . . 9 ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩ ∈ V
24 opex 5327 . . . . . . . . 9 ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩ ∈ V
2523, 24ifex 4473 . . . . . . . 8 if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) ∈ V
2625csbex 5184 . . . . . . 7 (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) ∈ V
2721, 22, 26ovmpoa 7305 . . . . . 6 ((⟨𝐴, 𝐵⟩ ∈ (ℝ × ℝ) ∧ 𝑀 ∈ ℝ) → (⟨𝐴, 𝐵⟩(𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))𝑀) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
285, 6, 27syl2anc 587 . . . . 5 (𝜑 → (⟨𝐴, 𝐵⟩(𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))𝑀) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
292, 28eqtrd 2793 . . . 4 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
30 op1stg 7710 . . . . . . . . 9 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
313, 4, 30syl2anc 587 . . . . . . . 8 (𝜑 → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
32 op2ndg 7711 . . . . . . . . 9 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
333, 4, 32syl2anc 587 . . . . . . . 8 (𝜑 → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
3431, 33oveq12d 7173 . . . . . . 7 (𝜑 → ((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) = (𝐴 + 𝐵))
3534oveq1d 7170 . . . . . 6 (𝜑 → (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) = ((𝐴 + 𝐵) / 2))
3635csbeq1d 3811 . . . . 5 (𝜑(((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = ((𝐴 + 𝐵) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
37 ovex 7188 . . . . . . 7 ((𝐴 + 𝐵) / 2) ∈ V
38 breq1 5038 . . . . . . . 8 (𝑚 = ((𝐴 + 𝐵) / 2) → (𝑚 < 𝑀 ↔ ((𝐴 + 𝐵) / 2) < 𝑀))
39 opeq2 4766 . . . . . . . 8 (𝑚 = ((𝐴 + 𝐵) / 2) → ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩ = ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩)
40 oveq1 7162 . . . . . . . . . 10 (𝑚 = ((𝐴 + 𝐵) / 2) → (𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) = (((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)))
4140oveq1d 7170 . . . . . . . . 9 (𝑚 = ((𝐴 + 𝐵) / 2) → ((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) = ((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2))
4241opeq1d 4772 . . . . . . . 8 (𝑚 = ((𝐴 + 𝐵) / 2) → ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩ = ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩)
4338, 39, 42ifbieq12d 4451 . . . . . . 7 (𝑚 = ((𝐴 + 𝐵) / 2) → if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
4437, 43csbie 3842 . . . . . 6 ((𝐴 + 𝐵) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩)
4531opeq1d 4772 . . . . . . 7 (𝜑 → ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩ = ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩)
4633oveq2d 7171 . . . . . . . . 9 (𝜑 → (((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) = (((𝐴 + 𝐵) / 2) + 𝐵))
4746oveq1d 7170 . . . . . . . 8 (𝜑 → ((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) = ((((𝐴 + 𝐵) / 2) + 𝐵) / 2))
4847, 33opeq12d 4774 . . . . . . 7 (𝜑 → ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩ = ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)
4945, 48ifeq12d 4444 . . . . . 6 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
5044, 49syl5eq 2805 . . . . 5 (𝜑((𝐴 + 𝐵) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
5136, 50eqtrd 2793 . . . 4 (𝜑(((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
5229, 51eqtrd 2793 . . 3 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
533, 4readdcld 10713 . . . . . 6 (𝜑 → (𝐴 + 𝐵) ∈ ℝ)
5453rehalfcld 11926 . . . . 5 (𝜑 → ((𝐴 + 𝐵) / 2) ∈ ℝ)
553, 54opelxpd 5565 . . . 4 (𝜑 → ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩ ∈ (ℝ × ℝ))
5654, 4readdcld 10713 . . . . . 6 (𝜑 → (((𝐴 + 𝐵) / 2) + 𝐵) ∈ ℝ)
5756rehalfcld 11926 . . . . 5 (𝜑 → ((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ ℝ)
5857, 4opelxpd 5565 . . . 4 (𝜑 → ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩ ∈ (ℝ × ℝ))
5955, 58ifcld 4469 . . 3 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) ∈ (ℝ × ℝ))
6052, 59eqeltrd 2852 . 2 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) ∈ (ℝ × ℝ))
61 ruclem1.6 . . 3 𝑋 = (1st ‘(⟨𝐴, 𝐵𝐷𝑀))
6252fveq2d 6666 . . . 4 (𝜑 → (1st ‘(⟨𝐴, 𝐵𝐷𝑀)) = (1st ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)))
63 fvif 6678 . . . . 5 (1st ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
64 op1stg 7710 . . . . . . 7 ((𝐴 ∈ ℝ ∧ ((𝐴 + 𝐵) / 2) ∈ V) → (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = 𝐴)
653, 37, 64sylancl 589 . . . . . 6 (𝜑 → (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = 𝐴)
66 ovex 7188 . . . . . . 7 ((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ V
67 op1stg 7710 . . . . . . 7 ((((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ V ∧ 𝐵 ∈ ℝ) → (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = ((((𝐴 + 𝐵) / 2) + 𝐵) / 2))
6866, 4, 67sylancr 590 . . . . . 6 (𝜑 → (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = ((((𝐴 + 𝐵) / 2) + 𝐵) / 2))
6965, 68ifeq12d 4444 . . . . 5 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
7063, 69syl5eq 2805 . . . 4 (𝜑 → (1st ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
7162, 70eqtrd 2793 . . 3 (𝜑 → (1st ‘(⟨𝐴, 𝐵𝐷𝑀)) = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
7261, 71syl5eq 2805 . 2 (𝜑𝑋 = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
73 ruclem1.7 . . 3 𝑌 = (2nd ‘(⟨𝐴, 𝐵𝐷𝑀))
7452fveq2d 6666 . . . 4 (𝜑 → (2nd ‘(⟨𝐴, 𝐵𝐷𝑀)) = (2nd ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)))
75 fvif 6678 . . . . 5 (2nd ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
76 op2ndg 7711 . . . . . . 7 ((𝐴 ∈ ℝ ∧ ((𝐴 + 𝐵) / 2) ∈ V) → (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = ((𝐴 + 𝐵) / 2))
773, 37, 76sylancl 589 . . . . . 6 (𝜑 → (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = ((𝐴 + 𝐵) / 2))
78 op2ndg 7711 . . . . . . 7 ((((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ V ∧ 𝐵 ∈ ℝ) → (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = 𝐵)
7966, 4, 78sylancr 590 . . . . . 6 (𝜑 → (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = 𝐵)
8077, 79ifeq12d 4444 . . . . 5 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8175, 80syl5eq 2805 . . . 4 (𝜑 → (2nd ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8274, 81eqtrd 2793 . . 3 (𝜑 → (2nd ‘(⟨𝐴, 𝐵𝐷𝑀)) = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8373, 82syl5eq 2805 . 2 (𝜑𝑌 = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8460, 72, 833jca 1125 1 (𝜑 → ((⟨𝐴, 𝐵𝐷𝑀) ∈ (ℝ × ℝ) ∧ 𝑋 = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)) ∧ 𝑌 = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   ∧ w3a 1084   = wceq 1538   ∈ wcel 2111  Vcvv 3409  ⦋csb 3807  ifcif 4423  ⟨cop 4531   class class class wbr 5035   × cxp 5525  ⟶wf 6335  ‘cfv 6339  (class class class)co 7155   ∈ cmpo 7157  1st c1st 7696  2nd c2nd 7697  ℝcr 10579   + caddc 10583   < clt 10718   / cdiv 11340  ℕcn 11679  2c2 11734 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 2729  ax-sep 5172  ax-nul 5179  ax-pow 5237  ax-pr 5301  ax-un 7464  ax-resscn 10637  ax-1cn 10638  ax-icn 10639  ax-addcl 10640  ax-addrcl 10641  ax-mulcl 10642  ax-mulrcl 10643  ax-mulcom 10644  ax-addass 10645  ax-mulass 10646  ax-distr 10647  ax-i2m1 10648  ax-1ne0 10649  ax-1rid 10650  ax-rnegex 10651  ax-rrecex 10652  ax-cnre 10653  ax-pre-lttri 10654  ax-pre-lttrn 10655  ax-pre-ltadd 10656  ax-pre-mulgt0 10657 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 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rmo 3078  df-rab 3079  df-v 3411  df-sbc 3699  df-csb 3808  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4802  df-br 5036  df-opab 5098  df-mpt 5116  df-id 5433  df-po 5446  df-so 5447  df-xp 5533  df-rel 5534  df-cnv 5535  df-co 5536  df-dm 5537  df-rn 5538  df-res 5539  df-ima 5540  df-iota 6298  df-fun 6341  df-fn 6342  df-f 6343  df-f1 6344  df-fo 6345  df-f1o 6346  df-fv 6347  df-riota 7113  df-ov 7158  df-oprab 7159  df-mpo 7160  df-1st 7698  df-2nd 7699  df-er 8304  df-en 8533  df-dom 8534  df-sdom 8535  df-pnf 10720  df-mnf 10721  df-xr 10722  df-ltxr 10723  df-le 10724  df-sub 10915  df-neg 10916  df-div 11341  df-2 11742 This theorem is referenced by:  ruclem2  15638  ruclem3  15639  ruclem6  15641
 Copyright terms: Public domain W3C validator