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

Theorem ruclem1 15166
Description: Lemma for ruc 15178 (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 6810 . . . . 5 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) = (⟨𝐴, 𝐵⟩(𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))𝑀))
3 ruclem1.3 . . . . . . 7 (𝜑𝐴 ∈ ℝ)
4 ruclem1.4 . . . . . . 7 (𝜑𝐵 ∈ ℝ)
5 opelxpi 5288 . . . . . . 7 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → ⟨𝐴, 𝐵⟩ ∈ (ℝ × ℝ))
63, 4, 5syl2anc 573 . . . . . 6 (𝜑 → ⟨𝐴, 𝐵⟩ ∈ (ℝ × ℝ))
7 ruclem1.5 . . . . . 6 (𝜑𝑀 ∈ ℝ)
8 simpr 471 . . . . . . . . . . 11 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → 𝑦 = 𝑀)
98breq2d 4798 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (𝑚 < 𝑦𝑚 < 𝑀))
10 simpl 468 . . . . . . . . . . . 12 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → 𝑥 = ⟨𝐴, 𝐵⟩)
1110fveq2d 6336 . . . . . . . . . . 11 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (1st𝑥) = (1st ‘⟨𝐴, 𝐵⟩))
1211opeq1d 4545 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ⟨(1st𝑥), 𝑚⟩ = ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩)
1310fveq2d 6336 . . . . . . . . . . . . 13 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (2nd𝑥) = (2nd ‘⟨𝐴, 𝐵⟩))
1413oveq2d 6809 . . . . . . . . . . . 12 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (𝑚 + (2nd𝑥)) = (𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)))
1514oveq1d 6808 . . . . . . . . . . 11 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ((𝑚 + (2nd𝑥)) / 2) = ((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2))
1615, 13opeq12d 4547 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩ = ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩)
179, 12, 16ifbieq12d 4252 . . . . . . . . 9 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩) = if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
1817csbeq2dv 4136 . . . . . . . 8 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩) = (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
1911, 13oveq12d 6811 . . . . . . . . . 10 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → ((1st𝑥) + (2nd𝑥)) = ((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)))
2019oveq1d 6808 . . . . . . . . 9 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2))
2120csbeq1d 3689 . . . . . . . 8 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
2218, 21eqtrd 2805 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ 𝑦 = 𝑀) → (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
23 eqid 2771 . . . . . . 7 (𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩)) = (𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))
24 opex 5060 . . . . . . . . 9 ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩ ∈ V
25 opex 5060 . . . . . . . . 9 ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩ ∈ V
2624, 25ifex 4295 . . . . . . . 8 if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) ∈ V
2726csbex 4927 . . . . . . 7 (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) ∈ V
2822, 23, 27ovmpt2a 6938 . . . . . 6 ((⟨𝐴, 𝐵⟩ ∈ (ℝ × ℝ) ∧ 𝑀 ∈ ℝ) → (⟨𝐴, 𝐵⟩(𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))𝑀) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
296, 7, 28syl2anc 573 . . . . 5 (𝜑 → (⟨𝐴, 𝐵⟩(𝑥 ∈ (ℝ × ℝ), 𝑦 ∈ ℝ ↦ (((1st𝑥) + (2nd𝑥)) / 2) / 𝑚if(𝑚 < 𝑦, ⟨(1st𝑥), 𝑚⟩, ⟨((𝑚 + (2nd𝑥)) / 2), (2nd𝑥)⟩))𝑀) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
302, 29eqtrd 2805 . . . 4 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) = (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
31 op1stg 7327 . . . . . . . . 9 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
323, 4, 31syl2anc 573 . . . . . . . 8 (𝜑 → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
33 op2ndg 7328 . . . . . . . . 9 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
343, 4, 33syl2anc 573 . . . . . . . 8 (𝜑 → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
3532, 34oveq12d 6811 . . . . . . 7 (𝜑 → ((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) = (𝐴 + 𝐵))
3635oveq1d 6808 . . . . . 6 (𝜑 → (((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) = ((𝐴 + 𝐵) / 2))
3736csbeq1d 3689 . . . . 5 (𝜑(((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = ((𝐴 + 𝐵) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
38 ovex 6823 . . . . . . 7 ((𝐴 + 𝐵) / 2) ∈ V
39 breq1 4789 . . . . . . . 8 (𝑚 = ((𝐴 + 𝐵) / 2) → (𝑚 < 𝑀 ↔ ((𝐴 + 𝐵) / 2) < 𝑀))
40 opeq2 4540 . . . . . . . 8 (𝑚 = ((𝐴 + 𝐵) / 2) → ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩ = ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩)
41 oveq1 6800 . . . . . . . . . 10 (𝑚 = ((𝐴 + 𝐵) / 2) → (𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) = (((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)))
4241oveq1d 6808 . . . . . . . . 9 (𝑚 = ((𝐴 + 𝐵) / 2) → ((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) = ((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2))
4342opeq1d 4545 . . . . . . . 8 (𝑚 = ((𝐴 + 𝐵) / 2) → ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩ = ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩)
4439, 40, 43ifbieq12d 4252 . . . . . . 7 (𝑚 = ((𝐴 + 𝐵) / 2) → if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩))
4538, 44csbie 3708 . . . . . 6 ((𝐴 + 𝐵) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩)
4632opeq1d 4545 . . . . . . 7 (𝜑 → ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩ = ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩)
4734oveq2d 6809 . . . . . . . . 9 (𝜑 → (((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) = (((𝐴 + 𝐵) / 2) + 𝐵))
4847oveq1d 6808 . . . . . . . 8 (𝜑 → ((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) = ((((𝐴 + 𝐵) / 2) + 𝐵) / 2))
4948, 34opeq12d 4547 . . . . . . 7 (𝜑 → ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩ = ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)
5046, 49ifeq12d 4245 . . . . . 6 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
5145, 50syl5eq 2817 . . . . 5 (𝜑((𝐴 + 𝐵) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
5237, 51eqtrd 2805 . . . 4 (𝜑(((1st ‘⟨𝐴, 𝐵⟩) + (2nd ‘⟨𝐴, 𝐵⟩)) / 2) / 𝑚if(𝑚 < 𝑀, ⟨(1st ‘⟨𝐴, 𝐵⟩), 𝑚⟩, ⟨((𝑚 + (2nd ‘⟨𝐴, 𝐵⟩)) / 2), (2nd ‘⟨𝐴, 𝐵⟩)⟩) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
5330, 52eqtrd 2805 . . 3 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) = if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
543, 4readdcld 10271 . . . . . 6 (𝜑 → (𝐴 + 𝐵) ∈ ℝ)
5554rehalfcld 11481 . . . . 5 (𝜑 → ((𝐴 + 𝐵) / 2) ∈ ℝ)
56 opelxpi 5288 . . . . 5 ((𝐴 ∈ ℝ ∧ ((𝐴 + 𝐵) / 2) ∈ ℝ) → ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩ ∈ (ℝ × ℝ))
573, 55, 56syl2anc 573 . . . 4 (𝜑 → ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩ ∈ (ℝ × ℝ))
5855, 4readdcld 10271 . . . . . 6 (𝜑 → (((𝐴 + 𝐵) / 2) + 𝐵) ∈ ℝ)
5958rehalfcld 11481 . . . . 5 (𝜑 → ((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ ℝ)
60 opelxpi 5288 . . . . 5 ((((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ ℝ ∧ 𝐵 ∈ ℝ) → ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩ ∈ (ℝ × ℝ))
6159, 4, 60syl2anc 573 . . . 4 (𝜑 → ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩ ∈ (ℝ × ℝ))
6257, 61ifcld 4270 . . 3 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) ∈ (ℝ × ℝ))
6353, 62eqeltrd 2850 . 2 (𝜑 → (⟨𝐴, 𝐵𝐷𝑀) ∈ (ℝ × ℝ))
64 ruclem1.6 . . 3 𝑋 = (1st ‘(⟨𝐴, 𝐵𝐷𝑀))
6553fveq2d 6336 . . . 4 (𝜑 → (1st ‘(⟨𝐴, 𝐵𝐷𝑀)) = (1st ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)))
66 fvif 6345 . . . . 5 (1st ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
67 op1stg 7327 . . . . . . 7 ((𝐴 ∈ ℝ ∧ ((𝐴 + 𝐵) / 2) ∈ V) → (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = 𝐴)
683, 38, 67sylancl 574 . . . . . 6 (𝜑 → (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = 𝐴)
69 ovex 6823 . . . . . . 7 ((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ V
70 op1stg 7327 . . . . . . 7 ((((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ V ∧ 𝐵 ∈ ℝ) → (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = ((((𝐴 + 𝐵) / 2) + 𝐵) / 2))
7169, 4, 70sylancr 575 . . . . . 6 (𝜑 → (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = ((((𝐴 + 𝐵) / 2) + 𝐵) / 2))
7268, 71ifeq12d 4245 . . . . 5 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, (1st ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (1st ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
7366, 72syl5eq 2817 . . . 4 (𝜑 → (1st ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
7465, 73eqtrd 2805 . . 3 (𝜑 → (1st ‘(⟨𝐴, 𝐵𝐷𝑀)) = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
7564, 74syl5eq 2817 . 2 (𝜑𝑋 = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)))
76 ruclem1.7 . . 3 𝑌 = (2nd ‘(⟨𝐴, 𝐵𝐷𝑀))
7753fveq2d 6336 . . . 4 (𝜑 → (2nd ‘(⟨𝐴, 𝐵𝐷𝑀)) = (2nd ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)))
78 fvif 6345 . . . . 5 (2nd ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩))
79 op2ndg 7328 . . . . . . 7 ((𝐴 ∈ ℝ ∧ ((𝐴 + 𝐵) / 2) ∈ V) → (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = ((𝐴 + 𝐵) / 2))
803, 38, 79sylancl 574 . . . . . 6 (𝜑 → (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩) = ((𝐴 + 𝐵) / 2))
81 op2ndg 7328 . . . . . . 7 ((((((𝐴 + 𝐵) / 2) + 𝐵) / 2) ∈ V ∧ 𝐵 ∈ ℝ) → (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = 𝐵)
8269, 4, 81sylancr 575 . . . . . 6 (𝜑 → (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩) = 𝐵)
8380, 82ifeq12d 4245 . . . . 5 (𝜑 → if(((𝐴 + 𝐵) / 2) < 𝑀, (2nd ‘⟨𝐴, ((𝐴 + 𝐵) / 2)⟩), (2nd ‘⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8478, 83syl5eq 2817 . . . 4 (𝜑 → (2nd ‘if(((𝐴 + 𝐵) / 2) < 𝑀, ⟨𝐴, ((𝐴 + 𝐵) / 2)⟩, ⟨((((𝐴 + 𝐵) / 2) + 𝐵) / 2), 𝐵⟩)) = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8577, 84eqtrd 2805 . . 3 (𝜑 → (2nd ‘(⟨𝐴, 𝐵𝐷𝑀)) = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8676, 85syl5eq 2817 . 2 (𝜑𝑌 = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵))
8763, 75, 863jca 1122 1 (𝜑 → ((⟨𝐴, 𝐵𝐷𝑀) ∈ (ℝ × ℝ) ∧ 𝑋 = if(((𝐴 + 𝐵) / 2) < 𝑀, 𝐴, ((((𝐴 + 𝐵) / 2) + 𝐵) / 2)) ∧ 𝑌 = if(((𝐴 + 𝐵) / 2) < 𝑀, ((𝐴 + 𝐵) / 2), 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382  w3a 1071   = wceq 1631  wcel 2145  Vcvv 3351  csb 3682  ifcif 4225  cop 4322   class class class wbr 4786   × cxp 5247  wf 6027  cfv 6031  (class class class)co 6793  cmpt2 6795  1st c1st 7313  2nd c2nd 7314  cr 10137   + caddc 10141   < clt 10276   / cdiv 10886  cn 11222  2c2 11272
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-sep 4915  ax-nul 4923  ax-pow 4974  ax-pr 5034  ax-un 7096  ax-resscn 10195  ax-1cn 10196  ax-icn 10197  ax-addcl 10198  ax-addrcl 10199  ax-mulcl 10200  ax-mulrcl 10201  ax-mulcom 10202  ax-addass 10203  ax-mulass 10204  ax-distr 10205  ax-i2m1 10206  ax-1ne0 10207  ax-1rid 10208  ax-rnegex 10209  ax-rrecex 10210  ax-cnre 10211  ax-pre-lttri 10212  ax-pre-lttrn 10213  ax-pre-ltadd 10214  ax-pre-mulgt0 10215
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 835  df-3or 1072  df-3an 1073  df-tru 1634  df-fal 1637  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-nel 3047  df-ral 3066  df-rex 3067  df-reu 3068  df-rmo 3069  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-nul 4064  df-if 4226  df-pw 4299  df-sn 4317  df-pr 4319  df-op 4323  df-uni 4575  df-br 4787  df-opab 4847  df-mpt 4864  df-id 5157  df-po 5170  df-so 5171  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-riota 6754  df-ov 6796  df-oprab 6797  df-mpt2 6798  df-1st 7315  df-2nd 7316  df-er 7896  df-en 8110  df-dom 8111  df-sdom 8112  df-pnf 10278  df-mnf 10279  df-xr 10280  df-ltxr 10281  df-le 10282  df-sub 10470  df-neg 10471  df-div 10887  df-2 11281
This theorem is referenced by:  ruclem2  15167  ruclem3  15168  ruclem6  15170
  Copyright terms: Public domain W3C validator