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

Theorem sn-addcand 42541
Description: addcand 11325 without ax-mulcom 11079. Note how the proof is almost identical to addcan 11306. (Contributed by SN, 5-May-2024.)
Hypotheses
Ref Expression
sn-addcand.a (𝜑𝐴 ∈ ℂ)
sn-addcand.b (𝜑𝐵 ∈ ℂ)
sn-addcand.c (𝜑𝐶 ∈ ℂ)
Assertion
Ref Expression
sn-addcand (𝜑 → ((𝐴 + 𝐵) = (𝐴 + 𝐶) ↔ 𝐵 = 𝐶))

Proof of Theorem sn-addcand
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 sn-addcand.a . . 3 (𝜑𝐴 ∈ ℂ)
2 sn-negex2 42540 . . 3 (𝐴 ∈ ℂ → ∃𝑥 ∈ ℂ (𝑥 + 𝐴) = 0)
31, 2syl 17 . 2 (𝜑 → ∃𝑥 ∈ ℂ (𝑥 + 𝐴) = 0)
4 oveq2 7362 . . . 4 ((𝐴 + 𝐵) = (𝐴 + 𝐶) → (𝑥 + (𝐴 + 𝐵)) = (𝑥 + (𝐴 + 𝐶)))
5 simprr 772 . . . . . . 7 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (𝑥 + 𝐴) = 0)
65oveq1d 7369 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐵) = (0 + 𝐵))
7 simprl 770 . . . . . . 7 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝑥 ∈ ℂ)
81adantr 480 . . . . . . 7 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝐴 ∈ ℂ)
9 sn-addcand.b . . . . . . . 8 (𝜑𝐵 ∈ ℂ)
109adantr 480 . . . . . . 7 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝐵 ∈ ℂ)
117, 8, 10addassd 11143 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐵) = (𝑥 + (𝐴 + 𝐵)))
12 sn-addlid 42525 . . . . . . 7 (𝐵 ∈ ℂ → (0 + 𝐵) = 𝐵)
1310, 12syl 17 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (0 + 𝐵) = 𝐵)
146, 11, 133eqtr3d 2776 . . . . 5 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (𝑥 + (𝐴 + 𝐵)) = 𝐵)
155oveq1d 7369 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐶) = (0 + 𝐶))
16 sn-addcand.c . . . . . . . 8 (𝜑𝐶 ∈ ℂ)
1716adantr 480 . . . . . . 7 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝐶 ∈ ℂ)
187, 8, 17addassd 11143 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐶) = (𝑥 + (𝐴 + 𝐶)))
19 sn-addlid 42525 . . . . . . 7 (𝐶 ∈ ℂ → (0 + 𝐶) = 𝐶)
2017, 19syl 17 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (0 + 𝐶) = 𝐶)
2115, 18, 203eqtr3d 2776 . . . . 5 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (𝑥 + (𝐴 + 𝐶)) = 𝐶)
2214, 21eqeq12d 2749 . . . 4 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + (𝐴 + 𝐵)) = (𝑥 + (𝐴 + 𝐶)) ↔ 𝐵 = 𝐶))
234, 22imbitrid 244 . . 3 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝐴 + 𝐵) = (𝐴 + 𝐶) → 𝐵 = 𝐶))
24 oveq2 7362 . . 3 (𝐵 = 𝐶 → (𝐴 + 𝐵) = (𝐴 + 𝐶))
2523, 24impbid1 225 . 2 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝐴 + 𝐵) = (𝐴 + 𝐶) ↔ 𝐵 = 𝐶))
263, 25rexlimddv 3140 1 (𝜑 → ((𝐴 + 𝐵) = (𝐴 + 𝐶) ↔ 𝐵 = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395   = wceq 1541  wcel 2113  wrex 3057  (class class class)co 7354  cc 11013  0cc0 11015   + caddc 11018
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2115  ax-9 2123  ax-10 2146  ax-11 2162  ax-12 2182  ax-ext 2705  ax-sep 5238  ax-nul 5248  ax-pow 5307  ax-pr 5374  ax-un 7676  ax-resscn 11072  ax-1cn 11073  ax-icn 11074  ax-addcl 11075  ax-addrcl 11076  ax-mulcl 11077  ax-mulrcl 11078  ax-addass 11080  ax-mulass 11081  ax-distr 11082  ax-i2m1 11083  ax-1ne0 11084  ax-1rid 11085  ax-rnegex 11086  ax-rrecex 11087  ax-cnre 11088  ax-pre-lttri 11089  ax-pre-lttrn 11090  ax-pre-ltadd 11091
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2537  df-eu 2566  df-clab 2712  df-cleq 2725  df-clel 2808  df-nfc 2882  df-ne 2930  df-nel 3034  df-ral 3049  df-rex 3058  df-rmo 3347  df-reu 3348  df-rab 3397  df-v 3439  df-sbc 3738  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-nul 4283  df-if 4477  df-pw 4553  df-sn 4578  df-pr 4580  df-op 4584  df-uni 4861  df-br 5096  df-opab 5158  df-mpt 5177  df-id 5516  df-po 5529  df-so 5530  df-xp 5627  df-rel 5628  df-cnv 5629  df-co 5630  df-dm 5631  df-rn 5632  df-res 5633  df-ima 5634  df-iota 6444  df-fun 6490  df-fn 6491  df-f 6492  df-f1 6493  df-fo 6494  df-f1o 6495  df-fv 6496  df-riota 7311  df-ov 7357  df-oprab 7358  df-mpo 7359  df-er 8630  df-en 8878  df-dom 8879  df-sdom 8880  df-pnf 11157  df-mnf 11158  df-ltxr 11160  df-2 12197  df-3 12198  df-resub 42487
This theorem is referenced by:  sn-addrid  42542  sn-addid0  42546  sn-subeu  42548  zaddcomlem  42584  zaddcom  42585
  Copyright terms: Public domain W3C validator