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

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

Proof of Theorem addcan2
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 cnegex 7189 . . 3 (𝐶 ∈ ℂ → ∃𝑥 ∈ ℂ (𝐶 + 𝑥) = 0)
213ad2ant3 927 . 2 ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ∃𝑥 ∈ ℂ (𝐶 + 𝑥) = 0)
3 oveq1 5519 . . . 4 ((𝐴 + 𝐶) = (𝐵 + 𝐶) → ((𝐴 + 𝐶) + 𝑥) = ((𝐵 + 𝐶) + 𝑥))
4 simpl1 907 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝐴 ∈ ℂ)
5 simpl3 909 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝐶 ∈ ℂ)
6 simprl 483 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝑥 ∈ ℂ)
74, 5, 6addassd 7049 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) + 𝑥) = (𝐴 + (𝐶 + 𝑥)))
8 simprr 484 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐶 + 𝑥) = 0)
98oveq2d 5528 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐴 + (𝐶 + 𝑥)) = (𝐴 + 0))
10 addid1 7151 . . . . . . 7 (𝐴 ∈ ℂ → (𝐴 + 0) = 𝐴)
114, 10syl 14 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐴 + 0) = 𝐴)
127, 9, 113eqtrd 2076 . . . . 5 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) + 𝑥) = 𝐴)
13 simpl2 908 . . . . . . 7 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → 𝐵 ∈ ℂ)
1413, 5, 6addassd 7049 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐵 + 𝐶) + 𝑥) = (𝐵 + (𝐶 + 𝑥)))
158oveq2d 5528 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐵 + (𝐶 + 𝑥)) = (𝐵 + 0))
16 addid1 7151 . . . . . . 7 (𝐵 ∈ ℂ → (𝐵 + 0) = 𝐵)
1713, 16syl 14 . . . . . 6 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (𝐵 + 0) = 𝐵)
1814, 15, 173eqtrd 2076 . . . . 5 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐵 + 𝐶) + 𝑥) = 𝐵)
1912, 18eqeq12d 2054 . . . 4 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → (((𝐴 + 𝐶) + 𝑥) = ((𝐵 + 𝐶) + 𝑥) ↔ 𝐴 = 𝐵))
203, 19syl5ib 143 . . 3 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) → 𝐴 = 𝐵))
21 oveq1 5519 . . 3 (𝐴 = 𝐵 → (𝐴 + 𝐶) = (𝐵 + 𝐶))
2220, 21impbid1 130 . 2 (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝐶 + 𝑥) = 0)) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) ↔ 𝐴 = 𝐵))
232, 22rexlimddv 2437 1 ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ((𝐴 + 𝐶) = (𝐵 + 𝐶) ↔ 𝐴 = 𝐵))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 97  wb 98  w3a 885   = wceq 1243  wcel 1393  wrex 2307  (class class class)co 5512  cc 6887  0cc0 6889   + caddc 6892
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-resscn 6976  ax-1cn 6977  ax-icn 6979  ax-addcl 6980  ax-addrcl 6981  ax-mulcl 6982  ax-addcom 6984  ax-addass 6986  ax-distr 6988  ax-i2m1 6989  ax-0id 6992  ax-rnegex 6993  ax-cnre 6995
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-ral 2311  df-rex 2312  df-v 2559  df-un 2922  df-in 2924  df-ss 2931  df-sn 3381  df-pr 3382  df-op 3384  df-uni 3581  df-br 3765  df-iota 4867  df-fv 4910  df-ov 5515
This theorem is referenced by:  addcan2i  7194  addcan2d  7196  muleqadd  7649
  Copyright terms: Public domain W3C validator