| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > addcompi | Structured version Visualization version GIF version | ||
| Description: Addition of positive integers is commutative. (Contributed by NM, 27-Aug-1995.) (New usage is discouraged.) |
| Ref | Expression |
|---|---|
| addcompi | ⊢ (𝐴 +N 𝐵) = (𝐵 +N 𝐴) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | pinn 10801 | . . . 4 ⊢ (𝐴 ∈ N → 𝐴 ∈ ω) | |
| 2 | pinn 10801 | . . . 4 ⊢ (𝐵 ∈ N → 𝐵 ∈ ω) | |
| 3 | nnacom 8555 | . . . 4 ⊢ ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 +o 𝐵) = (𝐵 +o 𝐴)) | |
| 4 | 1, 2, 3 | syl2an 597 | . . 3 ⊢ ((𝐴 ∈ N ∧ 𝐵 ∈ N) → (𝐴 +o 𝐵) = (𝐵 +o 𝐴)) |
| 5 | addpiord 10807 | . . 3 ⊢ ((𝐴 ∈ N ∧ 𝐵 ∈ N) → (𝐴 +N 𝐵) = (𝐴 +o 𝐵)) | |
| 6 | addpiord 10807 | . . . 4 ⊢ ((𝐵 ∈ N ∧ 𝐴 ∈ N) → (𝐵 +N 𝐴) = (𝐵 +o 𝐴)) | |
| 7 | 6 | ancoms 458 | . . 3 ⊢ ((𝐴 ∈ N ∧ 𝐵 ∈ N) → (𝐵 +N 𝐴) = (𝐵 +o 𝐴)) |
| 8 | 4, 5, 7 | 3eqtr4d 2782 | . 2 ⊢ ((𝐴 ∈ N ∧ 𝐵 ∈ N) → (𝐴 +N 𝐵) = (𝐵 +N 𝐴)) |
| 9 | dmaddpi 10813 | . . 3 ⊢ dom +N = (N × N) | |
| 10 | 9 | ndmovcom 7555 | . 2 ⊢ (¬ (𝐴 ∈ N ∧ 𝐵 ∈ N) → (𝐴 +N 𝐵) = (𝐵 +N 𝐴)) |
| 11 | 8, 10 | pm2.61i 182 | 1 ⊢ (𝐴 +N 𝐵) = (𝐵 +N 𝐴) |
| Colors of variables: wff setvar class |
| Syntax hints: ∧ wa 395 = wceq 1542 ∈ wcel 2114 (class class class)co 7368 ωcom 7818 +o coa 8404 Ncnpi 10767 +N cpli 10768 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1797 ax-4 1811 ax-5 1912 ax-6 1969 ax-7 2010 ax-8 2116 ax-9 2124 ax-10 2147 ax-11 2163 ax-12 2185 ax-ext 2709 ax-sep 5243 ax-nul 5253 ax-pr 5379 ax-un 7690 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 849 df-3or 1088 df-3an 1089 df-tru 1545 df-fal 1555 df-ex 1782 df-nf 1786 df-sb 2069 df-mo 2540 df-eu 2570 df-clab 2716 df-cleq 2729 df-clel 2812 df-nfc 2886 df-ne 2934 df-ral 3053 df-rex 3063 df-reu 3353 df-rab 3402 df-v 3444 df-sbc 3743 df-csb 3852 df-dif 3906 df-un 3908 df-in 3910 df-ss 3920 df-pss 3923 df-nul 4288 df-if 4482 df-pw 4558 df-sn 4583 df-pr 4585 df-op 4589 df-uni 4866 df-iun 4950 df-br 5101 df-opab 5163 df-mpt 5182 df-tr 5208 df-id 5527 df-eprel 5532 df-po 5540 df-so 5541 df-fr 5585 df-we 5587 df-xp 5638 df-rel 5639 df-cnv 5640 df-co 5641 df-dm 5642 df-rn 5643 df-res 5644 df-ima 5645 df-pred 6267 df-ord 6328 df-on 6329 df-lim 6330 df-suc 6331 df-iota 6456 df-fun 6502 df-fn 6503 df-f 6504 df-f1 6505 df-fo 6506 df-f1o 6507 df-fv 6508 df-ov 7371 df-oprab 7372 df-mpo 7373 df-om 7819 df-1st 7943 df-2nd 7944 df-frecs 8233 df-wrecs 8264 df-recs 8313 df-rdg 8351 df-oadd 8411 df-ni 10795 df-pli 10796 |
| This theorem is referenced by: addcompq 10873 adderpqlem 10877 |
| Copyright terms: Public domain | W3C validator |