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

Theorem mulcanpi 9410
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 9403 . . . . . . . . . 10 ((𝐴N𝐵N) → (𝐴 ·N 𝐵) ∈ N)
2 eleq1 2571 . . . . . . . . . 10 ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → ((𝐴 ·N 𝐵) ∈ N ↔ (𝐴 ·N 𝐶) ∈ N))
31, 2syl5ib 229 . . . . . . . . 9 ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → ((𝐴N𝐵N) → (𝐴 ·N 𝐶) ∈ N))
43imp 438 . . . . . . . 8 (((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ∧ (𝐴N𝐵N)) → (𝐴 ·N 𝐶) ∈ N)
5 dmmulpi 9401 . . . . . . . . 9 dom ·N = (N × N)
6 0npi 9392 . . . . . . . . 9 ¬ ∅ ∈ N
75, 6ndmovrcl 6530 . . . . . . . 8 ((𝐴 ·N 𝐶) ∈ N → (𝐴N𝐶N))
8 simpr 470 . . . . . . . 8 ((𝐴N𝐶N) → 𝐶N)
94, 7, 83syl 18 . . . . . . 7 (((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ∧ (𝐴N𝐵N)) → 𝐶N)
10 mulpiord 9395 . . . . . . . . . 10 ((𝐴N𝐵N) → (𝐴 ·N 𝐵) = (𝐴 ·𝑜 𝐵))
1110adantr 474 . . . . . . . . 9 (((𝐴N𝐵N) ∧ 𝐶N) → (𝐴 ·N 𝐵) = (𝐴 ·𝑜 𝐵))
12 mulpiord 9395 . . . . . . . . . 10 ((𝐴N𝐶N) → (𝐴 ·N 𝐶) = (𝐴 ·𝑜 𝐶))
1312adantlr 738 . . . . . . . . 9 (((𝐴N𝐵N) ∧ 𝐶N) → (𝐴 ·N 𝐶) = (𝐴 ·𝑜 𝐶))
1411, 13eqeq12d 2520 . . . . . . . 8 (((𝐴N𝐵N) ∧ 𝐶N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ↔ (𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶)))
15 pinn 9388 . . . . . . . . . . . . 13 (𝐴N𝐴 ∈ ω)
16 pinn 9388 . . . . . . . . . . . . 13 (𝐵N𝐵 ∈ ω)
17 pinn 9388 . . . . . . . . . . . . 13 (𝐶N𝐶 ∈ ω)
18 elni2 9387 . . . . . . . . . . . . . . . 16 (𝐴N ↔ (𝐴 ∈ ω ∧ ∅ ∈ 𝐴))
1918simprbi 473 . . . . . . . . . . . . . . 15 (𝐴N → ∅ ∈ 𝐴)
20 nnmcan 7412 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ∧ ∅ ∈ 𝐴) → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) ↔ 𝐵 = 𝐶))
2120biimpd 214 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ∧ ∅ ∈ 𝐴) → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶))
2219, 21sylan2 484 . . . . . . . . . . . . . 14 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ∧ 𝐴N) → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶))
2322ex 443 . . . . . . . . . . . . 13 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴N → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶)))
2415, 16, 17, 23syl3an 1350 . . . . . . . . . . . 12 ((𝐴N𝐵N𝐶N) → (𝐴N → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶)))
25243exp 1246 . . . . . . . . . . 11 (𝐴N → (𝐵N → (𝐶N → (𝐴N → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶)))))
2625com4r 90 . . . . . . . . . 10 (𝐴N → (𝐴N → (𝐵N → (𝐶N → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶)))))
2726pm2.43i 49 . . . . . . . . 9 (𝐴N → (𝐵N → (𝐶N → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶))))
2827imp31 441 . . . . . . . 8 (((𝐴N𝐵N) ∧ 𝐶N) → ((𝐴 ·𝑜 𝐵) = (𝐴 ·𝑜 𝐶) → 𝐵 = 𝐶))
2914, 28sylbid 225 . . . . . . 7 (((𝐴N𝐵N) ∧ 𝐶N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))
309, 29sylan2 484 . . . . . 6 (((𝐴N𝐵N) ∧ ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ∧ (𝐴N𝐵N))) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))
3130exp32 622 . . . . 5 ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))))
3231imp4b 607 . . . 4 (((𝐴N𝐵N) ∧ (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶)) → (((𝐴N𝐵N) ∧ (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶)) → 𝐵 = 𝐶))
3332pm2.43i 49 . . 3 (((𝐴N𝐵N) ∧ (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶)) → 𝐵 = 𝐶)
3433ex 443 . 2 ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) → 𝐵 = 𝐶))
35 oveq2 6371 . 2 (𝐵 = 𝐶 → (𝐴 ·N 𝐵) = (𝐴 ·N 𝐶))
3634, 35impbid1 210 1 ((𝐴N𝐵N) → ((𝐴 ·N 𝐵) = (𝐴 ·N 𝐶) ↔ 𝐵 = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 191  wa 378  w3a 1021   = wceq 1468  wcel 1937  c0 3757  (class class class)co 6363  ωcom 6769   ·𝑜 comu 7257  Ncnpi 9354   ·N cmi 9356
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1698  ax-4 1711  ax-5 1789  ax-6 1836  ax-7 1883  ax-8 1939  ax-9 1946  ax-10 1965  ax-11 1970  ax-12 1983  ax-13 2137  ax-ext 2485  ax-sep 4558  ax-nul 4567  ax-pow 4619  ax-pr 4680  ax-un 6659
This theorem depends on definitions:  df-bi 192  df-or 379  df-an 380  df-3or 1022  df-3an 1023  df-tru 1471  df-ex 1693  df-nf 1697  df-sb 1829  df-eu 2357  df-mo 2358  df-clab 2492  df-cleq 2498  df-clel 2501  df-nfc 2635  df-ne 2677  df-ral 2796  df-rex 2797  df-reu 2798  df-rab 2800  df-v 3068  df-sbc 3292  df-csb 3386  df-dif 3429  df-un 3431  df-in 3433  df-ss 3440  df-pss 3442  df-nul 3758  df-if 3909  df-pw 3980  df-sn 3996  df-pr 3998  df-tp 4000  df-op 4002  df-uni 4229  df-iun 4309  df-br 4435  df-opab 4494  df-mpt 4495  df-tr 4531  df-eprel 4791  df-id 4795  df-po 4801  df-so 4802  df-fr 4839  df-we 4841  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-res 4892  df-ima 4893  df-pred 5431  df-ord 5477  df-on 5478  df-lim 5479  df-suc 5480  df-iota 5597  df-fun 5635  df-fn 5636  df-f 5637  df-f1 5638  df-fo 5639  df-f1o 5640  df-fv 5641  df-ov 6366  df-oprab 6367  df-mpt2 6368  df-om 6770  df-1st 6870  df-2nd 6871  df-wrecs 7105  df-recs 7167  df-rdg 7205  df-oadd 7263  df-omul 7264  df-ni 9382  df-mi 9384
This theorem is referenced by:  enqer  9431  nqereu  9439  adderpqlem  9464  mulerpqlem  9465
  Copyright terms: Public domain W3C validator