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

Theorem mulcanpi 10640
Description: Multiplication cancellation law for positive integers. (Contributed by NM, 4-Feb-1996.) (Revised by Mario Carneiro, 10-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
mulcanpi ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ↔ 𝐵 = 𝐶))

Proof of Theorem mulcanpi
StepHypRef Expression
1 mulclpi 10633 . . . . . . . . . 10 ((𝐴N𝐵N) → (𝐴 ·N 𝐵) ∈ N)
2 eleq1 2827 . . . . . . . . . 10 ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → ((𝐴 ·N 𝐵) ∈ N ↔ (𝐴 ·N 𝐶) ∈ N))
31, 2syl5ib 243 . . . . . . . . 9 ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → ((𝐴N𝐵N) → (𝐴 ·N 𝐶) ∈ N))
43imp 406 . . . . . . . 8 (((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ∧ (𝐴N𝐵N)) → (𝐴 ·N 𝐶) ∈ N)
5 dmmulpi 10631 . . . . . . . . 9 dom ·N = (N × N)
6 0npi 10622 . . . . . . . . 9 ¬ ∅ ∈ N
75, 6ndmovrcl 7449 . . . . . . . 8 ((𝐴 ·N 𝐶) ∈ N → (𝐴N𝐶N))
8 simpr 484 . . . . . . . 8 ((𝐴N𝐶N) → 𝐶N)
94, 7, 83syl 18 . . . . . . 7 (((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ∧ (𝐴N𝐵N)) → 𝐶N)
10 mulpiord 10625 . . . . . . . . . 10 ((𝐴N𝐵N) → (𝐴 ·N 𝐵) = (𝐴 ·o 𝐵))
1110adantr 480 . . . . . . . . 9 (((𝐴N𝐵N) ∧ 𝐶N) → (𝐴 ·N 𝐵) = (𝐴 ·o 𝐵))
12 mulpiord 10625 . . . . . . . . . 10 ((𝐴N𝐶N) → (𝐴 ·N 𝐶) = (𝐴 ·o 𝐶))
1312adantlr 711 . . . . . . . . 9 (((𝐴N𝐵N) ∧ 𝐶N) → (𝐴 ·N 𝐶) = (𝐴 ·o 𝐶))
1411, 13eqeq12d 2755 . . . . . . . 8 (((𝐴N𝐵N) ∧ 𝐶N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ↔ (𝐴 ·o 𝐵) = (𝐴 ·o 𝐶)))
15 pinn 10618 . . . . . . . . . . . . 13 (𝐴N𝐴 ∈ ω)
16 pinn 10618 . . . . . . . . . . . . 13 (𝐵N𝐵 ∈ ω)
17 pinn 10618 . . . . . . . . . . . . 13 (𝐶N𝐶 ∈ ω)
18 elni2 10617 . . . . . . . . . . . . . . . 16 (𝐴N ↔ (𝐴 ∈ ω ∧ ∅ ∈ 𝐴))
1918simprbi 496 . . . . . . . . . . . . . . 15 (𝐴N → ∅ ∈ 𝐴)
20 nnmcan 8441 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ∧ ∅ ∈ 𝐴) → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) ↔ 𝐵 = 𝐶))
2120biimpd 228 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ∧ ∅ ∈ 𝐴) → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶))
2219, 21sylan2 592 . . . . . . . . . . . . . 14 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ∧ 𝐴N) → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶))
2322ex 412 . . . . . . . . . . . . 13 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴N → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶)))
2415, 16, 17, 23syl3an 1158 . . . . . . . . . . . 12 ((𝐴N𝐵N𝐶N) → (𝐴N → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶)))
25243exp 1117 . . . . . . . . . . 11 (𝐴N → (𝐵N → (𝐶N → (𝐴N → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶)))))
2625com4r 94 . . . . . . . . . 10 (𝐴N → (𝐴N → (𝐵N → (𝐶N → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶)))))
2726pm2.43i 52 . . . . . . . . 9 (𝐴N → (𝐵N → (𝐶N → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶))))
2827imp31 417 . . . . . . . 8 (((𝐴N𝐵N) ∧ 𝐶N) → ((𝐴 ·o 𝐵) = (𝐴 ·o 𝐶) → 𝐵 = 𝐶))
2914, 28sylbid 239 . . . . . . 7 (((𝐴N𝐵N) ∧ 𝐶N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))
309, 29sylan2 592 . . . . . 6 (((𝐴N𝐵N) ∧ ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ∧ (𝐴N𝐵N))) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))
3130exp32 420 . . . . 5 ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))))
3231imp4b 421 . . . 4 (((𝐴N𝐵N) ∧ (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶)) → (((𝐴N𝐵N) ∧ (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶)) → 𝐵 = 𝐶))
3332pm2.43i 52 . . 3 (((𝐴N𝐵N) ∧ (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶)) → 𝐵 = 𝐶)
3433ex 412 . 2 ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))
35 oveq2 7276 . 2 (𝐵 = 𝐶 → (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶))
3634, 35impbid1 224 1 ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ↔ 𝐵 = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1541  wcel 2109  c0 4261  (class class class)co 7268  ωcom 7700   ·o comu 8279  Ncnpi 10584   ·N cmi 10586
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355  ax-un 7579
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-reu 3072  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-pss 3910  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-tp 4571  df-op 4573  df-uni 4845  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-tr 5196  df-id 5488  df-eprel 5494  df-po 5502  df-so 5503  df-fr 5543  df-we 5545  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-pred 6199  df-ord 6266  df-on 6267  df-lim 6268  df-suc 6269  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-ov 7271  df-oprab 7272  df-mpo 7273  df-om 7701  df-1st 7817  df-2nd 7818  df-frecs 8081  df-wrecs 8112  df-recs 8186  df-rdg 8225  df-oadd 8285  df-omul 8286  df-ni 10612  df-mi 10614
This theorem is referenced by:  enqer  10661  nqereu  10669  adderpqlem  10694  mulerpqlem  10695
  Copyright terms: Public domain W3C validator