Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > addcan | Structured version Visualization version GIF version |
Description: Cancellation law for addition. Theorem I.1 of [Apostol] p. 18. (Contributed by NM, 22-Nov-1994.) (Proof shortened by Mario Carneiro, 27-May-2016.) |
Ref | Expression |
---|---|
addcan | ⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ((𝐴 + 𝐵) = (𝐴 + 𝐶) ↔ 𝐵 = 𝐶)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | cnegex2 10893 | . . 3 ⊢ (𝐴 ∈ ℂ → ∃𝑥 ∈ ℂ (𝑥 + 𝐴) = 0) | |
2 | 1 | 3ad2ant1 1134 | . 2 ⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ∃𝑥 ∈ ℂ (𝑥 + 𝐴) = 0) |
3 | oveq2 7172 | . . . 4 ⊢ ((𝐴 + 𝐵) = (𝐴 + 𝐶) → (𝑥 + (𝐴 + 𝐵)) = (𝑥 + (𝐴 + 𝐶))) | |
4 | simprr 773 | . . . . . . 7 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (𝑥 + 𝐴) = 0) | |
5 | 4 | oveq1d 7179 | . . . . . 6 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐵) = (0 + 𝐵)) |
6 | simprl 771 | . . . . . . 7 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝑥 ∈ ℂ) | |
7 | simpl1 1192 | . . . . . . 7 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝐴 ∈ ℂ) | |
8 | simpl2 1193 | . . . . . . 7 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝐵 ∈ ℂ) | |
9 | 6, 7, 8 | addassd 10734 | . . . . . 6 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐵) = (𝑥 + (𝐴 + 𝐵))) |
10 | addid2 10894 | . . . . . . 7 ⊢ (𝐵 ∈ ℂ → (0 + 𝐵) = 𝐵) | |
11 | 8, 10 | syl 17 | . . . . . 6 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (0 + 𝐵) = 𝐵) |
12 | 5, 9, 11 | 3eqtr3d 2781 | . . . . 5 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (𝑥 + (𝐴 + 𝐵)) = 𝐵) |
13 | 4 | oveq1d 7179 | . . . . . 6 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐶) = (0 + 𝐶)) |
14 | simpl3 1194 | . . . . . . 7 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → 𝐶 ∈ ℂ) | |
15 | 6, 7, 14 | addassd 10734 | . . . . . 6 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + 𝐴) + 𝐶) = (𝑥 + (𝐴 + 𝐶))) |
16 | addid2 10894 | . . . . . . 7 ⊢ (𝐶 ∈ ℂ → (0 + 𝐶) = 𝐶) | |
17 | 14, 16 | syl 17 | . . . . . 6 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (0 + 𝐶) = 𝐶) |
18 | 13, 15, 17 | 3eqtr3d 2781 | . . . . 5 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → (𝑥 + (𝐴 + 𝐶)) = 𝐶) |
19 | 12, 18 | eqeq12d 2754 | . . . 4 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝑥 + (𝐴 + 𝐵)) = (𝑥 + (𝐴 + 𝐶)) ↔ 𝐵 = 𝐶)) |
20 | 3, 19 | syl5ib 247 | . . 3 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝐴 + 𝐵) = (𝐴 + 𝐶) → 𝐵 = 𝐶)) |
21 | oveq2 7172 | . . 3 ⊢ (𝐵 = 𝐶 → (𝐴 + 𝐵) = (𝐴 + 𝐶)) | |
22 | 20, 21 | impbid1 228 | . 2 ⊢ (((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) ∧ (𝑥 ∈ ℂ ∧ (𝑥 + 𝐴) = 0)) → ((𝐴 + 𝐵) = (𝐴 + 𝐶) ↔ 𝐵 = 𝐶)) |
23 | 2, 22 | rexlimddv 3200 | 1 ⊢ ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ∧ 𝐶 ∈ ℂ) → ((𝐴 + 𝐵) = (𝐴 + 𝐶) ↔ 𝐵 = 𝐶)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 ∧ wa 399 ∧ w3a 1088 = wceq 1542 ∈ wcel 2113 ∃wrex 3054 (class class class)co 7164 ℂcc 10606 0cc0 10608 + caddc 10611 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1802 ax-4 1816 ax-5 1916 ax-6 1974 ax-7 2019 ax-8 2115 ax-9 2123 ax-10 2144 ax-11 2161 ax-12 2178 ax-ext 2710 ax-sep 5164 ax-nul 5171 ax-pow 5229 ax-pr 5293 ax-un 7473 ax-resscn 10665 ax-1cn 10666 ax-icn 10667 ax-addcl 10668 ax-addrcl 10669 ax-mulcl 10670 ax-mulrcl 10671 ax-mulcom 10672 ax-addass 10673 ax-mulass 10674 ax-distr 10675 ax-i2m1 10676 ax-1ne0 10677 ax-1rid 10678 ax-rnegex 10679 ax-rrecex 10680 ax-cnre 10681 ax-pre-lttri 10682 ax-pre-lttrn 10683 ax-pre-ltadd 10684 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 847 df-3or 1089 df-3an 1090 df-tru 1545 df-fal 1555 df-ex 1787 df-nf 1791 df-sb 2074 df-mo 2540 df-eu 2570 df-clab 2717 df-cleq 2730 df-clel 2811 df-nfc 2881 df-ne 2935 df-nel 3039 df-ral 3058 df-rex 3059 df-rab 3062 df-v 3399 df-sbc 3680 df-csb 3789 df-dif 3844 df-un 3846 df-in 3848 df-ss 3858 df-nul 4210 df-if 4412 df-pw 4487 df-sn 4514 df-pr 4516 df-op 4520 df-uni 4794 df-br 5028 df-opab 5090 df-mpt 5108 df-id 5425 df-po 5438 df-so 5439 df-xp 5525 df-rel 5526 df-cnv 5527 df-co 5528 df-dm 5529 df-rn 5530 df-res 5531 df-ima 5532 df-iota 6291 df-fun 6335 df-fn 6336 df-f 6337 df-f1 6338 df-fo 6339 df-f1o 6340 df-fv 6341 df-ov 7167 df-er 8313 df-en 8549 df-dom 8550 df-sdom 8551 df-pnf 10748 df-mnf 10749 df-ltxr 10751 |
This theorem is referenced by: addcom 10897 addcani 10904 addcomd 10913 addcand 10914 subcan 11012 addsubeq0 44306 |
Copyright terms: Public domain | W3C validator |