Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > zaddcl | Structured version Visualization version GIF version |
Description: Closure of addition of integers. (Contributed by NM, 9-May-2004.) (Proof shortened by Mario Carneiro, 16-May-2014.) |
Ref | Expression |
---|---|
zaddcl | ⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 + 𝑁) ∈ ℤ) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | elz2 12346 | . 2 ⊢ (𝑀 ∈ ℤ ↔ ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦)) | |
2 | elz2 12346 | . 2 ⊢ (𝑁 ∈ ℤ ↔ ∃𝑧 ∈ ℕ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤)) | |
3 | reeanv 3295 | . . 3 ⊢ (∃𝑥 ∈ ℕ ∃𝑧 ∈ ℕ (∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦) ∧ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤)) ↔ (∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦) ∧ ∃𝑧 ∈ ℕ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤))) | |
4 | reeanv 3295 | . . . . 5 ⊢ (∃𝑦 ∈ ℕ ∃𝑤 ∈ ℕ (𝑀 = (𝑥 − 𝑦) ∧ 𝑁 = (𝑧 − 𝑤)) ↔ (∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦) ∧ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤))) | |
5 | nnaddcl 12005 | . . . . . . . . . 10 ⊢ ((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) → (𝑥 + 𝑧) ∈ ℕ) | |
6 | 5 | adantr 481 | . . . . . . . . 9 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (𝑥 + 𝑧) ∈ ℕ) |
7 | nnaddcl 12005 | . . . . . . . . . 10 ⊢ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) → (𝑦 + 𝑤) ∈ ℕ) | |
8 | 7 | adantl 482 | . . . . . . . . 9 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (𝑦 + 𝑤) ∈ ℕ) |
9 | nncn 11990 | . . . . . . . . . . . 12 ⊢ (𝑥 ∈ ℕ → 𝑥 ∈ ℂ) | |
10 | nncn 11990 | . . . . . . . . . . . 12 ⊢ (𝑧 ∈ ℕ → 𝑧 ∈ ℂ) | |
11 | 9, 10 | anim12i 613 | . . . . . . . . . . 11 ⊢ ((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) → (𝑥 ∈ ℂ ∧ 𝑧 ∈ ℂ)) |
12 | nncn 11990 | . . . . . . . . . . . 12 ⊢ (𝑦 ∈ ℕ → 𝑦 ∈ ℂ) | |
13 | nncn 11990 | . . . . . . . . . . . 12 ⊢ (𝑤 ∈ ℕ → 𝑤 ∈ ℂ) | |
14 | 12, 13 | anim12i 613 | . . . . . . . . . . 11 ⊢ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) → (𝑦 ∈ ℂ ∧ 𝑤 ∈ ℂ)) |
15 | addsub4 11273 | . . . . . . . . . . 11 ⊢ (((𝑥 ∈ ℂ ∧ 𝑧 ∈ ℂ) ∧ (𝑦 ∈ ℂ ∧ 𝑤 ∈ ℂ)) → ((𝑥 + 𝑧) − (𝑦 + 𝑤)) = ((𝑥 − 𝑦) + (𝑧 − 𝑤))) | |
16 | 11, 14, 15 | syl2an 596 | . . . . . . . . . 10 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑥 + 𝑧) − (𝑦 + 𝑤)) = ((𝑥 − 𝑦) + (𝑧 − 𝑤))) |
17 | 16 | eqcomd 2745 | . . . . . . . . 9 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑥 − 𝑦) + (𝑧 − 𝑤)) = ((𝑥 + 𝑧) − (𝑦 + 𝑤))) |
18 | rspceov 7331 | . . . . . . . . 9 ⊢ (((𝑥 + 𝑧) ∈ ℕ ∧ (𝑦 + 𝑤) ∈ ℕ ∧ ((𝑥 − 𝑦) + (𝑧 − 𝑤)) = ((𝑥 + 𝑧) − (𝑦 + 𝑤))) → ∃𝑢 ∈ ℕ ∃𝑣 ∈ ℕ ((𝑥 − 𝑦) + (𝑧 − 𝑤)) = (𝑢 − 𝑣)) | |
19 | 6, 8, 17, 18 | syl3anc 1370 | . . . . . . . 8 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ∃𝑢 ∈ ℕ ∃𝑣 ∈ ℕ ((𝑥 − 𝑦) + (𝑧 − 𝑤)) = (𝑢 − 𝑣)) |
20 | elz2 12346 | . . . . . . . 8 ⊢ (((𝑥 − 𝑦) + (𝑧 − 𝑤)) ∈ ℤ ↔ ∃𝑢 ∈ ℕ ∃𝑣 ∈ ℕ ((𝑥 − 𝑦) + (𝑧 − 𝑤)) = (𝑢 − 𝑣)) | |
21 | 19, 20 | sylibr 233 | . . . . . . 7 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑥 − 𝑦) + (𝑧 − 𝑤)) ∈ ℤ) |
22 | oveq12 7293 | . . . . . . . 8 ⊢ ((𝑀 = (𝑥 − 𝑦) ∧ 𝑁 = (𝑧 − 𝑤)) → (𝑀 + 𝑁) = ((𝑥 − 𝑦) + (𝑧 − 𝑤))) | |
23 | 22 | eleq1d 2824 | . . . . . . 7 ⊢ ((𝑀 = (𝑥 − 𝑦) ∧ 𝑁 = (𝑧 − 𝑤)) → ((𝑀 + 𝑁) ∈ ℤ ↔ ((𝑥 − 𝑦) + (𝑧 − 𝑤)) ∈ ℤ)) |
24 | 21, 23 | syl5ibrcom 246 | . . . . . 6 ⊢ (((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑀 = (𝑥 − 𝑦) ∧ 𝑁 = (𝑧 − 𝑤)) → (𝑀 + 𝑁) ∈ ℤ)) |
25 | 24 | rexlimdvva 3224 | . . . . 5 ⊢ ((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) → (∃𝑦 ∈ ℕ ∃𝑤 ∈ ℕ (𝑀 = (𝑥 − 𝑦) ∧ 𝑁 = (𝑧 − 𝑤)) → (𝑀 + 𝑁) ∈ ℤ)) |
26 | 4, 25 | syl5bir 242 | . . . 4 ⊢ ((𝑥 ∈ ℕ ∧ 𝑧 ∈ ℕ) → ((∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦) ∧ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤)) → (𝑀 + 𝑁) ∈ ℤ)) |
27 | 26 | rexlimivv 3222 | . . 3 ⊢ (∃𝑥 ∈ ℕ ∃𝑧 ∈ ℕ (∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦) ∧ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤)) → (𝑀 + 𝑁) ∈ ℤ) |
28 | 3, 27 | sylbir 234 | . 2 ⊢ ((∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝑀 = (𝑥 − 𝑦) ∧ ∃𝑧 ∈ ℕ ∃𝑤 ∈ ℕ 𝑁 = (𝑧 − 𝑤)) → (𝑀 + 𝑁) ∈ ℤ) |
29 | 1, 2, 28 | syl2anb 598 | 1 ⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 + 𝑁) ∈ ℤ) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ∧ wa 396 = wceq 1539 ∈ wcel 2107 ∃wrex 3066 (class class class)co 7284 ℂcc 10878 + caddc 10883 − cmin 11214 ℕcn 11982 ℤcz 12328 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1798 ax-4 1812 ax-5 1914 ax-6 1972 ax-7 2012 ax-8 2109 ax-9 2117 ax-10 2138 ax-11 2155 ax-12 2172 ax-ext 2710 ax-sep 5224 ax-nul 5231 ax-pow 5289 ax-pr 5353 ax-un 7597 ax-resscn 10937 ax-1cn 10938 ax-icn 10939 ax-addcl 10940 ax-addrcl 10941 ax-mulcl 10942 ax-mulrcl 10943 ax-mulcom 10944 ax-addass 10945 ax-mulass 10946 ax-distr 10947 ax-i2m1 10948 ax-1ne0 10949 ax-1rid 10950 ax-rnegex 10951 ax-rrecex 10952 ax-cnre 10953 ax-pre-lttri 10954 ax-pre-lttrn 10955 ax-pre-ltadd 10956 ax-pre-mulgt0 10957 |
This theorem depends on definitions: df-bi 206 df-an 397 df-or 845 df-3or 1087 df-3an 1088 df-tru 1542 df-fal 1552 df-ex 1783 df-nf 1787 df-sb 2069 df-mo 2541 df-eu 2570 df-clab 2717 df-cleq 2731 df-clel 2817 df-nfc 2890 df-ne 2945 df-nel 3051 df-ral 3070 df-rex 3071 df-reu 3073 df-rab 3074 df-v 3435 df-sbc 3718 df-csb 3834 df-dif 3891 df-un 3893 df-in 3895 df-ss 3905 df-pss 3907 df-nul 4258 df-if 4461 df-pw 4536 df-sn 4563 df-pr 4565 df-op 4569 df-uni 4841 df-iun 4927 df-br 5076 df-opab 5138 df-mpt 5159 df-tr 5193 df-id 5490 df-eprel 5496 df-po 5504 df-so 5505 df-fr 5545 df-we 5547 df-xp 5596 df-rel 5597 df-cnv 5598 df-co 5599 df-dm 5600 df-rn 5601 df-res 5602 df-ima 5603 df-pred 6206 df-ord 6273 df-on 6274 df-lim 6275 df-suc 6276 df-iota 6395 df-fun 6439 df-fn 6440 df-f 6441 df-f1 6442 df-fo 6443 df-f1o 6444 df-fv 6445 df-riota 7241 df-ov 7287 df-oprab 7288 df-mpo 7289 df-om 7722 df-2nd 7841 df-frecs 8106 df-wrecs 8137 df-recs 8211 df-rdg 8250 df-er 8507 df-en 8743 df-dom 8744 df-sdom 8745 df-pnf 11020 df-mnf 11021 df-xr 11022 df-ltxr 11023 df-le 11024 df-sub 11216 df-neg 11217 df-nn 11983 df-n0 12243 df-z 12329 |
This theorem is referenced by: peano2z 12370 zsubcl 12371 zrevaddcl 12374 zdivadd 12400 zaddcld 12439 eluzaddi 12620 eluzsubi 12621 nn0pzuz 12654 fzen 13282 fzaddel 13299 fzadd2 13300 fzrev3 13331 fzrevral3 13352 elfzmlbp 13376 fzoun 13433 fzoaddel 13449 zpnn0elfzo 13469 elfzomelpfzo 13500 fzoshftral 13513 modsumfzodifsn 13673 ccatsymb 14296 ccatval21sw 14299 lswccatn0lsw 14305 swrdccatin2 14451 revccat 14488 2cshw 14535 cshweqrep 14543 2cshwcshw 14547 cshwcsh2id 14550 cshco 14558 climshftlem 15292 isershft 15384 iseraltlem2 15403 fsumzcl 15456 zrisefaccl 15739 summodnegmod 16005 dvds2ln 16007 dvds2add 16008 dvdsadd 16020 dvdsadd2b 16024 addmodlteqALT 16043 3dvdsdec 16050 3dvds2dec 16051 opoe 16081 opeo 16083 divalglem2 16113 ndvdsadd 16128 gcdaddmlem 16240 pythagtriplem9 16534 difsqpwdvds 16597 gzaddcl 16647 mod2xnegi 16781 cshwshashlem2 16807 cycsubgcl 18834 efgredleme 19358 zaddablx 19482 pgpfac1lem2 19687 zsubrg 20660 zringmulg 20687 expghm 20706 mulgghm2 20707 cygznlem3 20786 iaa 25494 dchrisumlem1 26646 axlowdimlem16 27334 crctcshwlkn0lem4 28187 crctcshwlkn0 28195 clwwlkccatlem 28362 clwwisshclwwslemlem 28386 ballotlemsima 32491 mzpclall 40556 mzpindd 40575 rmxyadd 40750 jm2.18 40817 inductionexd 41772 dvdsn1add 43487 stoweidlem34 43582 fourierswlem 43778 2elfz2melfz 44821 opoeALTV 45146 opeoALTV 45147 even3prm2 45182 mogoldbblem 45183 gbowgt5 45225 gboge9 45227 sbgoldbst 45241 2zrngamgm 45508 |
Copyright terms: Public domain | W3C validator |