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

Theorem nnne0 12431
Description: A positive integer is nonzero. See nnne0ALT 12435 for a shorter proof using ax-pre-mulgt0 11335. This proof avoids 0lt1 11897, and thus ax-pre-mulgt0 11335, by splitting ax-1ne0 11327 into the two separate cases 0 < 1 and 1 < 0. (Contributed by NM, 27-Sep-1999.) Remove dependency on ax-pre-mulgt0 11335. (Revised by Steven Nguyen, 30-Jan-2023.)
Assertion
Ref Expression
nnne0 (𝐴 ∈ ℕ → 𝐴 ≠ 0)

Proof of Theorem nnne0
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ax-1ne0 11327 . . 3 1 ≠ 0
2 1re 11366 . . . 4 1 ∈ ℝ
3 0re 11368 . . . 4 0 ∈ ℝ
42, 3lttri2i 11482 . . 3 (1 ≠ 0 ↔ (1 < 0 ∨ 0 < 1))
51, 4mpbi 233 . 2 (1 < 0 ∨ 0 < 1)
6 breq1 5119 . . . . . . 7 (𝑥 = 1 → (𝑥 < 0 ↔ 1 < 0))
76imbi2d 343 . . . . . 6 (𝑥 = 1 → ((1 < 0 → 𝑥 < 0) ↔ (1 < 0 → 1 < 0)))
8 breq1 5119 . . . . . . 7 (𝑥 = 𝑦 → (𝑥 < 0 ↔ 𝑦 < 0))
98imbi2d 343 . . . . . 6 (𝑥 = 𝑦 → ((1 < 0 → 𝑥 < 0) ↔ (1 < 0 → 𝑦 < 0)))
10 breq1 5119 . . . . . . 7 (𝑥 = (𝑦 + 1) → (𝑥 < 0 ↔ (𝑦 + 1) < 0))
1110imbi2d 343 . . . . . 6 (𝑥 = (𝑦 + 1) → ((1 < 0 → 𝑥 < 0) ↔ (1 < 0 → (𝑦 + 1) < 0)))
12 breq1 5119 . . . . . . 7 (𝑥 = 𝐴 → (𝑥 < 0 ↔ 𝐴 < 0))
1312imbi2d 343 . . . . . 6 (𝑥 = 𝐴 → ((1 < 0 → 𝑥 < 0) ↔ (1 < 0 → 𝐴 < 0)))
14 id 23 . . . . . 6 (1 < 0 → 1 < 0)
15 simp1 1155 . . . . . . . . . . 11 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → 𝑦 ∈ ℕ)
1615nnred 12409 . . . . . . . . . 10 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → 𝑦 ∈ ℝ)
17 1red 11367 . . . . . . . . . 10 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → 1 ∈ ℝ)
1816, 17readdcld 11396 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → (𝑦 + 1) ∈ ℝ)
193, 2readdcli 11382 . . . . . . . . . 10 (0 + 1) ∈ ℝ
2019a1i 11 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → (0 + 1) ∈ ℝ)
21 0red 11369 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → 0 ∈ ℝ)
22 simp3 1157 . . . . . . . . . 10 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → 𝑦 < 0)
2316, 21, 17, 22ltadd1dd 11986 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → (𝑦 + 1) < (0 + 1))
24 ax-1cn 11316 . . . . . . . . . . 11 1 ∈ ℂ
2524addlidi 11556 . . . . . . . . . 10 (0 + 1) = 1
26 simp2 1156 . . . . . . . . . 10 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → 1 < 0)
2725, 26eqbrtrid 5154 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → (0 + 1) < 0)
2818, 20, 21, 23, 27lttrd 11529 . . . . . . . 8 ((𝑦 ∈ ℕ ∧ 1 < 0 ∧ 𝑦 < 0) → (𝑦 + 1) < 0)
29283exp 1138 . . . . . . 7 (𝑦 ∈ ℕ → (1 < 0 → (𝑦 < 0 → (𝑦 + 1) < 0)))
3029a2d 30 . . . . . 6 (𝑦 ∈ ℕ → ((1 < 0 → 𝑦 < 0) → (1 < 0 → (𝑦 + 1) < 0)))
317, 9, 11, 13, 14, 30nnind 12412 . . . . 5 (𝐴 ∈ ℕ → (1 < 0 → 𝐴 < 0))
3231imp 412 . . . 4 ((𝐴 ∈ ℕ ∧ 1 < 0) → 𝐴 < 0)
3332lt0ne0d 11940 . . 3 ((𝐴 ∈ ℕ ∧ 1 < 0) → 𝐴 ≠ 0)
34 breq2 5120 . . . . . . 7 (𝑥 = 1 → (0 < 𝑥 ↔ 0 < 1))
3534imbi2d 343 . . . . . 6 (𝑥 = 1 → ((0 < 1 → 0 < 𝑥) ↔ (0 < 1 → 0 < 1)))
36 breq2 5120 . . . . . . 7 (𝑥 = 𝑦 → (0 < 𝑥 ↔ 0 < 𝑦))
3736imbi2d 343 . . . . . 6 (𝑥 = 𝑦 → ((0 < 1 → 0 < 𝑥) ↔ (0 < 1 → 0 < 𝑦)))
38 breq2 5120 . . . . . . 7 (𝑥 = (𝑦 + 1) → (0 < 𝑥 ↔ 0 < (𝑦 + 1)))
3938imbi2d 343 . . . . . 6 (𝑥 = (𝑦 + 1) → ((0 < 1 → 0 < 𝑥) ↔ (0 < 1 → 0 < (𝑦 + 1))))
40 breq2 5120 . . . . . . 7 (𝑥 = 𝐴 → (0 < 𝑥 ↔ 0 < 𝐴))
4140imbi2d 343 . . . . . 6 (𝑥 = 𝐴 → ((0 < 1 → 0 < 𝑥) ↔ (0 < 1 → 0 < 𝐴)))
42 id 23 . . . . . 6 (0 < 1 → 0 < 1)
43 simp1 1155 . . . . . . . . . 10 ((𝑦 ∈ ℕ ∧ 0 < 1 ∧ 0 < 𝑦) → 𝑦 ∈ ℕ)
4443nnred 12409 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 0 < 1 ∧ 0 < 𝑦) → 𝑦 ∈ ℝ)
45 1red 11367 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 0 < 1 ∧ 0 < 𝑦) → 1 ∈ ℝ)
46 simp3 1157 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 0 < 1 ∧ 0 < 𝑦) → 0 < 𝑦)
47 simp2 1156 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 0 < 1 ∧ 0 < 𝑦) → 0 < 1)
4844, 45, 46, 47addgt0d 11950 . . . . . . . 8 ((𝑦 ∈ ℕ ∧ 0 < 1 ∧ 0 < 𝑦) → 0 < (𝑦 + 1))
49483exp 1138 . . . . . . 7 (𝑦 ∈ ℕ → (0 < 1 → (0 < 𝑦 → 0 < (𝑦 + 1))))
5049a2d 30 . . . . . 6 (𝑦 ∈ ℕ → ((0 < 1 → 0 < 𝑦) → (0 < 1 → 0 < (𝑦 + 1))))
5135, 37, 39, 41, 42, 50nnind 12412 . . . . 5 (𝐴 ∈ ℕ → (0 < 1 → 0 < 𝐴))
5251imp 412 . . . 4 ((𝐴 ∈ ℕ ∧ 0 < 1) → 0 < 𝐴)
5352gt0ne0d 11939 . . 3 ((𝐴 ∈ ℕ ∧ 0 < 1) → 𝐴 ≠ 0)
5433, 53jaodan 972 . 2 ((𝐴 ∈ ℕ ∧ (1 < 0 ∨ 0 < 1)) → 𝐴 ≠ 0)
555, 54mpan2 704 1 (𝐴 ∈ ℕ → 𝐴 ≠ 0)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∨ wo 861   ∧ w3a 1104   = wceq 1572   ∈ wcel 2156   ≠ wne 2970   class class class wbr 5116  (class class class)co 7470  ℝcr 11257  0cc0 11258  1c1 11259   + caddc 11261   < clt 11401  ℕcn 12394
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802  ax-resscn 11315  ax-1cn 11316  ax-icn 11317  ax-addcl 11318  ax-addrcl 11319  ax-mulcl 11320  ax-mulrcl 11321  ax-mulcom 11322  ax-addass 11323  ax-mulass 11324  ax-distr 11325  ax-i2m1 11326  ax-1ne0 11327  ax-1rid 11328  ax-rnegex 11329  ax-rrecex 11330  ax-cnre 11331  ax-pre-lttri 11332  ax-pre-lttrn 11333  ax-pre-ltadd 11334
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6343  df-ord 6404  df-on 6405  df-lim 6406  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-ov 7473  df-om 7931  df-2nd 8055  df-frecs 8356  df-wrecs 8387  df-recs 8436  df-rdg 8475  df-er 8774  df-en 9031  df-dom 9032  df-sdom 9033  df-pnf 11403  df-mnf 11404  df-xr 11405  df-ltxr 11406  df-le 11407  df-nn 12395
This theorem is used by:  nnneneg  12432  0nnn  12433  nndivre  12438  nndiv  12443  nndivtr  12444  nnne0d  12447  zdiv  12828  zdivadd  12829  zdivmul  12830  elq  13136  qmulz  13137  qre  13139  qaddcl  13152  qnegcl  13153  qmulcl  13154  qreccl  13156  rpnnen1lem5  13168  nn0ledivnn  13294  fzo1fzo0n0  13909  quoremz  14056  quoremnn0ALT  14058  intfracq  14060  fldiv  14061  fldiv2  14062  modmulnn  14090  modsumfzodifsn  14148  expnnval  14268  expneg  14273  digit2  14442  facdiv  14493  facndiv  14494  bcm1k  14521  bcp1n  14522  bcval5  14524  hashnncl  14572  cshwidxmod  15017  relexpsucnnr  15242  divcnv  16087  harmonic  16093  expcnv  16098  ef0lem  16309  ruclem6  16467  sqrt2irr  16481  dvdsval3  16490  nndivdvds  16495  modmulconst  16522  dvdsdivcl  16550  dvdsflip  16551  divalg2  16639  divalgmod  16640  ndvdssub  16643  nndvdslegcd  16739  divgcdz  16747  divgcdnn  16751  modgcd  16769  gcddiv  16788  gcdzeq  16789  eucalgf  16823  eucalginv  16824  lcmgcdlem  16846  lcmftp  16876  qredeq  16897  qredeu  16898  cncongr1  16907  cncongr2  16908  isprm6  16956  divnumden  16990  divdenle  16991  phimullem  17024  hashgcdlem  17033  phisum  17036  prm23lt5  17060  pythagtriplem10  17066  pythagtriplem8  17069  pythagtriplem9  17070  pccl  17095  pcdiv  17098  pcqcl  17102  pcdvds  17110  pcndvds  17112  pcndvds2  17114  pceq0  17117  pcneg  17120  pcz  17127  pcmpt  17138  fldivp1  17143  pcfac  17145  oddprmdvds  17149  infpnlem2  17157  cshwshashlem1  17341  smndex1n0mnd  19189  mulgnn  19365  mulgnegnn  19374  mulgmodid  19403  oddvdsnn0  19839  odmulgeq  19852  gexnnod  19883  qsssubdrg  21831  prmirredlem  21878  znf1o  21957  znhash  21964  znidomb  21967  znunithash  21970  znrrg  21971  cply1coe0  22725  cply1coe0bi  22726  m2cpm  23167  m2cpminvid2lem  23180  fvmptnn04ifc  23278  vitali  26042  mbfi1fseqlem3  26146  dvexp2  26382  plyeq0lem  26645  abelthlem9  26899  logtayllem  27119  logtayl  27120  logtaylsum  27121  logtayl2  27122  cxpexp  27128  cxproot  27150  root1id  27214  root1eq1  27215  cxpeq  27217  brucn  27221  bruval2  27222  bruval3  27223  logbgcd1irr  27270  atantayl  27413  atantayl2  27414  leibpilem2  27417  leibpi  27418  birthdaylem2  27428  birthdaylem3  27429  dfef2  27446  emcllem2  27472  emcllem3  27473  zetacvg  27490  lgam1  27539  basellem4  27559  basellem8  27563  basellem9  27564  mumullem2  27655  fsumdvdscom  27660  chtublem  27686  dchrelbas4  27718  bclbnd  27755  lgsval4a  27794  lgsabs1  27811  lgssq2  27813  dchrmusumlema  27968  dchrmusum2  27969  dchrvmasumiflem1  27976  dchrvmaeq0  27979  dchrisum0flblem1  27983  dchrisum0flblem2  27984  dchrisum0re  27988  ostthlem1  28102  ostth1  28108  pthdlem2lem  30517  wspthsnonn0vne  30670  clwwisshclwwslem  30769  ipasslem4  31600  ipasslem5  31601  divnumden2  33642  1fldgenq  34119  qqhval2  34816  qqhnm  34824  signstfveq0  35408  subfacp1lem6  36257  circum  36746  fz0n  36810  divcnvlin  36812  iprodgam  36821  faclim  36825  nndivsub  37559  poimirlem29  38937  poimirlem31  38939  poimirlem32  38940  heiborlem4  39116  heiborlem6  39118  nnproddivdvdsd  43418  pellexlem1  44200  congrep  44344  jm2.20nn  44368  proot1ex  44557  hashnzfzclim  45726  binomcxplemnotnn0  45760  nnne1ge2  46739  mccllem  47041  clim1fr1  47045  dvnxpaek  47384  dvnprodlem2  47389  wallispilem5  47511  wallispi2lem1  47513  stirlinglem1  47516  stirlinglem3  47518  stirlinglem4  47519  stirlinglem5  47520  stirlinglem7  47522  stirlinglem10  47525  stirlinglem12  47527  stirlinglem14  47529  stirlinglem15  47530  fouriersw  47673  vonioolem2  48123  vonicclem2  48126  sqrtnnaa  48345  mod0mul  48862  modn0mul  48863  modlt0b  48869  iccpartiltu  48934  divgcdoddALTV  49210  fpprwppr  49267  isubgr3stgrlem7  49500  gpg3kgrtriexlem5  49615  nnsgrpnmnd  49705  eluz2cnn0n1  50140  blennn  50204  nnpw2blen  50209  digvalnn0  50228  nn0digval  50229  dignn0fr  50230  dignn0ldlem  50231  dig0  50235
  Copyright terms: Public domain W3C validator