Intuitionistic Logic Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  ILE Home  >  Th. List  >  addcan2 GIF version

 Description: Cancellation law for addition. (Contributed by NM, 30-Jul-2004.) (Revised by Scott Fenton, 3-Jan-2013.)
Assertion
Ref Expression
addcan2 ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) ↔ 𝐴 = 𝐵))

Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 cnegex 7252 . . 3 (𝐶 ∈ ℂ → ∃𝑥 ∈ ℂ (𝐶 + 𝑥) = 0)
213ad2ant3 938 . 2 ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ∃𝑥 ∈ ℂ (𝐶 + 𝑥) = 0)
3 oveq1 5547 . . . 4 ((𝐴 + 𝐶) = (𝐵 + 𝐶) → ((𝐴 + 𝐶) + 𝑥) = ((𝐵 + 𝐶) + 𝑥))
4 simpl1 918 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝐴 ∈ ℂ)
5 simpl3 920 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝐶 ∈ ℂ)
6 simprl 491 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝑥 ∈ ℂ)
74, 5, 6addassd 7107 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) + 𝑥) = (𝐴 + (𝐶 + 𝑥)))
8 simprr 492 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐶 + 𝑥) = 0)
98oveq2d 5556 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐴 + (𝐶 + 𝑥)) = (𝐴 + 0))
10 addid1 7212 . . . . . . 7 (𝐴 ∈ ℂ → (𝐴 + 0) = 𝐴)
114, 10syl 14 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐴 + 0) = 𝐴)
127, 9, 113eqtrd 2092 . . . . 5 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) + 𝑥) = 𝐴)
13 simpl2 919 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝐵 ∈ ℂ)
1413, 5, 6addassd 7107 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐵 + 𝐶) + 𝑥) = (𝐵 + (𝐶 + 𝑥)))
158oveq2d 5556 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐵 + (𝐶 + 𝑥)) = (𝐵 + 0))
16 addid1 7212 . . . . . . 7 (𝐵 ∈ ℂ → (𝐵 + 0) = 𝐵)
1713, 16syl 14 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐵 + 0) = 𝐵)
1814, 15, 173eqtrd 2092 . . . . 5 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐵 + 𝐶) + 𝑥) = 𝐵)
1912, 18eqeq12d 2070 . . . 4 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (((𝐴 + 𝐶) + 𝑥) = ((𝐵 + 𝐶) + 𝑥) ↔ 𝐴 = 𝐵))
203, 19syl5ib 147 . . 3 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) → 𝐴 = 𝐵))
21 oveq1 5547 . . 3 (𝐴 = 𝐵 → (𝐴 + 𝐶) = (𝐵 + 𝐶))
2220, 21impbid1 134 . 2 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) ↔ 𝐴 = 𝐵))
232, 22rexlimddv 2454 1 ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) ↔ 𝐴 = 𝐵))
 Colors of variables: wff set class Syntax hints:   → wi 4   ∧ wa 101   ↔ wb 102   ∧ w3a 896   = wceq 1259   ∈ wcel 1409  ∃wrex 2324  (class class class)co 5540  ℂcc 6945  0cc0 6947   + caddc 6950 This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 103  ax-ia2 104  ax-ia3 105  ax-io 640  ax-5 1352  ax-7 1353  ax-gen 1354  ax-ie1 1398  ax-ie2 1399  ax-8 1411  ax-10 1412  ax-11 1413  ax-i12 1414  ax-bndl 1415  ax-4 1416  ax-17 1435  ax-i9 1439  ax-ial 1443  ax-i5r 1444  ax-ext 2038  ax-resscn 7034  ax-1cn 7035  ax-icn 7037  ax-addcl 7038  ax-addrcl 7039  ax-mulcl 7040  ax-addcom 7042  ax-addass 7044  ax-distr 7046  ax-i2m1 7047  ax-0id 7050  ax-rnegex 7051  ax-cnre 7053 This theorem depends on definitions:  df-bi 114  df-3an 898  df-tru 1262  df-nf 1366  df-sb 1662  df-clab 2043  df-cleq 2049  df-clel 2052  df-nfc 2183  df-ral 2328  df-rex 2329  df-v 2576  df-un 2950  df-in 2952  df-ss 2959  df-sn 3409  df-pr 3410  df-op 3412  df-uni 3609  df-br 3793  df-iota 4895  df-fv 4938  df-ov 5543 This theorem is referenced by:  addcan2i  7257  addcan2d  7259  muleqadd  7723
 Copyright terms: Public domain W3C validator