MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nnmcom Structured version   Visualization version   GIF version

Theorem nnmcom 8632
Description: Multiplication of natural numbers is commutative. Theorem 4K(5) of [Enderton] p. 81. (Contributed by NM, 21-Sep-1995.) (Proof shortened by Andrew Salmon, 22-Oct-2011.)
Assertion
Ref Expression
nnmcom ((๐ด โˆˆ ฯ‰ โˆง ๐ต โˆˆ ฯ‰) โ†’ (๐ด ยทo ๐ต) = (๐ต ยทo ๐ด))

Proof of Theorem nnmcom
Dummy variables ๐‘ฅ ๐‘ฆ are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq1 7419 . . . . 5 (๐‘ฅ = ๐ด โ†’ (๐‘ฅ ยทo ๐ต) = (๐ด ยทo ๐ต))
2 oveq2 7420 . . . . 5 (๐‘ฅ = ๐ด โ†’ (๐ต ยทo ๐‘ฅ) = (๐ต ยทo ๐ด))
31, 2eqeq12d 2747 . . . 4 (๐‘ฅ = ๐ด โ†’ ((๐‘ฅ ยทo ๐ต) = (๐ต ยทo ๐‘ฅ) โ†” (๐ด ยทo ๐ต) = (๐ต ยทo ๐ด)))
43imbi2d 340 . . 3 (๐‘ฅ = ๐ด โ†’ ((๐ต โˆˆ ฯ‰ โ†’ (๐‘ฅ ยทo ๐ต) = (๐ต ยทo ๐‘ฅ)) โ†” (๐ต โˆˆ ฯ‰ โ†’ (๐ด ยทo ๐ต) = (๐ต ยทo ๐ด))))
5 oveq1 7419 . . . . 5 (๐‘ฅ = โˆ… โ†’ (๐‘ฅ ยทo ๐ต) = (โˆ… ยทo ๐ต))
6 oveq2 7420 . . . . 5 (๐‘ฅ = โˆ… โ†’ (๐ต ยทo ๐‘ฅ) = (๐ต ยทo โˆ…))
75, 6eqeq12d 2747 . . . 4 (๐‘ฅ = โˆ… โ†’ ((๐‘ฅ ยทo ๐ต) = (๐ต ยทo ๐‘ฅ) โ†” (โˆ… ยทo ๐ต) = (๐ต ยทo โˆ…)))
8 oveq1 7419 . . . . 5 (๐‘ฅ = ๐‘ฆ โ†’ (๐‘ฅ ยทo ๐ต) = (๐‘ฆ ยทo ๐ต))
9 oveq2 7420 . . . . 5 (๐‘ฅ = ๐‘ฆ โ†’ (๐ต ยทo ๐‘ฅ) = (๐ต ยทo ๐‘ฆ))
108, 9eqeq12d 2747 . . . 4 (๐‘ฅ = ๐‘ฆ โ†’ ((๐‘ฅ ยทo ๐ต) = (๐ต ยทo ๐‘ฅ) โ†” (๐‘ฆ ยทo ๐ต) = (๐ต ยทo ๐‘ฆ)))
11 oveq1 7419 . . . . 5 (๐‘ฅ = suc ๐‘ฆ โ†’ (๐‘ฅ ยทo ๐ต) = (suc ๐‘ฆ ยทo ๐ต))
12 oveq2 7420 . . . . 5 (๐‘ฅ = suc ๐‘ฆ โ†’ (๐ต ยทo ๐‘ฅ) = (๐ต ยทo suc ๐‘ฆ))
1311, 12eqeq12d 2747 . . . 4 (๐‘ฅ = suc ๐‘ฆ โ†’ ((๐‘ฅ ยทo ๐ต) = (๐ต ยทo ๐‘ฅ) โ†” (suc ๐‘ฆ ยทo ๐ต) = (๐ต ยทo suc ๐‘ฆ)))
14 nnm0r 8616 . . . . 5 (๐ต โˆˆ ฯ‰ โ†’ (โˆ… ยทo ๐ต) = โˆ…)
15 nnm0 8611 . . . . 5 (๐ต โˆˆ ฯ‰ โ†’ (๐ต ยทo โˆ…) = โˆ…)
1614, 15eqtr4d 2774 . . . 4 (๐ต โˆˆ ฯ‰ โ†’ (โˆ… ยทo ๐ต) = (๐ต ยทo โˆ…))
17 oveq1 7419 . . . . . 6 ((๐‘ฆ ยทo ๐ต) = (๐ต ยทo ๐‘ฆ) โ†’ ((๐‘ฆ ยทo ๐ต) +o ๐ต) = ((๐ต ยทo ๐‘ฆ) +o ๐ต))
18 nnmsucr 8631 . . . . . . 7 ((๐‘ฆ โˆˆ ฯ‰ โˆง ๐ต โˆˆ ฯ‰) โ†’ (suc ๐‘ฆ ยทo ๐ต) = ((๐‘ฆ ยทo ๐ต) +o ๐ต))
19 nnmsuc 8613 . . . . . . . 8 ((๐ต โˆˆ ฯ‰ โˆง ๐‘ฆ โˆˆ ฯ‰) โ†’ (๐ต ยทo suc ๐‘ฆ) = ((๐ต ยทo ๐‘ฆ) +o ๐ต))
2019ancoms 458 . . . . . . 7 ((๐‘ฆ โˆˆ ฯ‰ โˆง ๐ต โˆˆ ฯ‰) โ†’ (๐ต ยทo suc ๐‘ฆ) = ((๐ต ยทo ๐‘ฆ) +o ๐ต))
2118, 20eqeq12d 2747 . . . . . 6 ((๐‘ฆ โˆˆ ฯ‰ โˆง ๐ต โˆˆ ฯ‰) โ†’ ((suc ๐‘ฆ ยทo ๐ต) = (๐ต ยทo suc ๐‘ฆ) โ†” ((๐‘ฆ ยทo ๐ต) +o ๐ต) = ((๐ต ยทo ๐‘ฆ) +o ๐ต)))
2217, 21imbitrrid 245 . . . . 5 ((๐‘ฆ โˆˆ ฯ‰ โˆง ๐ต โˆˆ ฯ‰) โ†’ ((๐‘ฆ ยทo ๐ต) = (๐ต ยทo ๐‘ฆ) โ†’ (suc ๐‘ฆ ยทo ๐ต) = (๐ต ยทo suc ๐‘ฆ)))
2322ex 412 . . . 4 (๐‘ฆ โˆˆ ฯ‰ โ†’ (๐ต โˆˆ ฯ‰ โ†’ ((๐‘ฆ ยทo ๐ต) = (๐ต ยทo ๐‘ฆ) โ†’ (suc ๐‘ฆ ยทo ๐ต) = (๐ต ยทo suc ๐‘ฆ))))
247, 10, 13, 16, 23finds2 7895 . . 3 (๐‘ฅ โˆˆ ฯ‰ โ†’ (๐ต โˆˆ ฯ‰ โ†’ (๐‘ฅ ยทo ๐ต) = (๐ต ยทo ๐‘ฅ)))
254, 24vtoclga 3566 . 2 (๐ด โˆˆ ฯ‰ โ†’ (๐ต โˆˆ ฯ‰ โ†’ (๐ด ยทo ๐ต) = (๐ต ยทo ๐ด)))
2625imp 406 1 ((๐ด โˆˆ ฯ‰ โˆง ๐ต โˆˆ ฯ‰) โ†’ (๐ด ยทo ๐ต) = (๐ต ยทo ๐ด))
Colors of variables: wff setvar class
Syntax hints:   โ†’ wi 4   โˆง wa 395   = wceq 1540   โˆˆ wcel 2105  โˆ…c0 4322  suc csuc 6366  (class class class)co 7412  ฯ‰com 7859   +o coa 8469   ยทo comu 8470
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2702  ax-sep 5299  ax-nul 5306  ax-pr 5427  ax-un 7729
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-ral 3061  df-rex 3070  df-reu 3376  df-rab 3432  df-v 3475  df-sbc 3778  df-csb 3894  df-dif 3951  df-un 3953  df-in 3955  df-ss 3965  df-pss 3967  df-nul 4323  df-if 4529  df-pw 4604  df-sn 4629  df-pr 4631  df-op 4635  df-uni 4909  df-iun 4999  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5574  df-eprel 5580  df-po 5588  df-so 5589  df-fr 5631  df-we 5633  df-xp 5682  df-rel 5683  df-cnv 5684  df-co 5685  df-dm 5686  df-rn 5687  df-res 5688  df-ima 5689  df-pred 6300  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6495  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7860  df-2nd 7980  df-frecs 8272  df-wrecs 8303  df-recs 8377  df-rdg 8416  df-oadd 8476  df-omul 8477
This theorem is referenced by:  nnmwordri  8642  nn2m  8659  omopthlem1  8664  mulcompi  10897
  Copyright terms: Public domain W3C validator