Users' Mathboxes Mathbox for Steven Nguyen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  resubidaddlidlem Structured version   Visualization version   GIF version

Theorem resubidaddlidlem 43638
Description: Lemma for resubidaddlid 43639. A special case of npncan 11606. (Contributed by Steven Nguyen, 8-Jan-2023.)
Hypotheses
Ref Expression
resubidaddridlem.a (𝜑 → 𝐴 ∈ ℝ)
resubidaddridlem.b (𝜑 → 𝐵 ∈ ℝ)
resubidaddridlem.c (𝜑 → 𝐶 ∈ ℝ)
resubidaddridlem.1 (𝜑 → (𝐴 −ℝ 𝐵) = (𝐵 −ℝ 𝐶))
Assertion
Ref Expression
resubidaddlidlem (𝜑 → ((𝐴 −ℝ 𝐵) + (𝐵 −ℝ 𝐶)) = (𝐴 −ℝ 𝐶))

Proof of Theorem resubidaddlidlem
StepHypRef Expression
1 resubidaddridlem.c . 2 (𝜑 → 𝐶 ∈ ℝ)
2 resubidaddridlem.a . . . 4 (𝜑 → 𝐴 ∈ ℝ)
3 resubidaddridlem.b . . . 4 (𝜑 → 𝐵 ∈ ℝ)
4 rersubcl 43622 . . . 4 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (𝐴 −ℝ 𝐵) ∈ ℝ)
52, 3, 4syl2anc 596 . . 3 (𝜑 → (𝐴 −ℝ 𝐵) ∈ ℝ)
6 rersubcl 43622 . . . 4 ((𝐵 ∈ ℝ ∧ 𝐶 ∈ ℝ) → (𝐵 −ℝ 𝐶) ∈ ℝ)
73, 1, 6syl2anc 596 . . 3 (𝜑 → (𝐵 −ℝ 𝐶) ∈ ℝ)
85, 7readdcld 11365 . 2 (𝜑 → ((𝐴 −ℝ 𝐵) + (𝐵 −ℝ 𝐶)) ∈ ℝ)
9 resubidaddridlem.1 . . . . . 6 (𝜑 → (𝐴 −ℝ 𝐵) = (𝐵 −ℝ 𝐶))
109eqcomd 2769 . . . . 5 (𝜑 → (𝐵 −ℝ 𝐶) = (𝐴 −ℝ 𝐵))
113, 1, 5resubaddd 43624 . . . . 5 (𝜑 → ((𝐵 −ℝ 𝐶) = (𝐴 −ℝ 𝐵) ↔ (𝐶 + (𝐴 −ℝ 𝐵)) = 𝐵))
1210, 11mpbid 235 . . . 4 (𝜑 → (𝐶 + (𝐴 −ℝ 𝐵)) = 𝐵)
1312oveq1d 7458 . . 3 (𝜑 → ((𝐶 + (𝐴 −ℝ 𝐵)) + (𝐵 −ℝ 𝐶)) = (𝐵 + (𝐵 −ℝ 𝐶)))
141recnd 11364 . . . 4 (𝜑 → 𝐶 ∈ ℂ)
155recnd 11364 . . . 4 (𝜑 → (𝐴 −ℝ 𝐵) ∈ ℂ)
167recnd 11364 . . . 4 (𝜑 → (𝐵 −ℝ 𝐶) ∈ ℂ)
1714, 15, 16addassd 11358 . . 3 (𝜑 → ((𝐶 + (𝐴 −ℝ 𝐵)) + (𝐵 −ℝ 𝐶)) = (𝐶 + ((𝐴 −ℝ 𝐵) + (𝐵 −ℝ 𝐶))))
182, 3, 7resubaddd 43624 . . . 4 (𝜑 → ((𝐴 −ℝ 𝐵) = (𝐵 −ℝ 𝐶) ↔ (𝐵 + (𝐵 −ℝ 𝐶)) = 𝐴))
199, 18mpbid 235 . . 3 (𝜑 → (𝐵 + (𝐵 −ℝ 𝐶)) = 𝐴)
2013, 17, 193eqtr3d 2806 . 2 (𝜑 → (𝐶 + ((𝐴 −ℝ 𝐵) + (𝐵 −ℝ 𝐶))) = 𝐴)
211, 8, 20reladdrsub 43629 1 (𝜑 → ((𝐴 −ℝ 𝐵) + (𝐵 −ℝ 𝐶)) = (𝐴 −ℝ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2147  (class class class)co 7443  ℝcr 11226   + caddc 11230   −ℝ cresub 43609
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-resscn 11284  ax-addrcl 11288  ax-addass 11292  ax-rnegex 11298  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-po 5563  df-so 5564  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-riota 7400  df-ov 7446  df-oprab 7447  df-mpo 7448  df-er 8745  df-en 9002  df-dom 9003  df-sdom 9004  df-pnf 11372  df-mnf 11373  df-ltxr 11375  df-resub 43610
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator