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

Theorem nnind 12357
Description: Principle of Mathematical Induction (inference schema). The first four hypotheses give us the substitution instances we need; the last two are the basis and the induction step. See nnaddcl 12362 for an example of its use. See nn0ind 12798 for induction on nonnegative integers and uzind 12795, uzind4 13037 for induction on an arbitrary upper set of integers. See indstr 13047 for strong induction. See also nnindALT 12358. This is an alternative for Metamath 100 proof #74. (Contributed by NM, 10-Jan-1997.) (Revised by Mario Carneiro, 16-Jun-2013.)
Hypotheses
Ref Expression
nnind.1 (𝑥 = 1 → (𝜑 ↔ 𝜓))
nnind.2 (𝑥 = 𝑦 → (𝜑 ↔ 𝜒))
nnind.3 (𝑥 = (𝑦 + 1) → (𝜑 ↔ 𝜃))
nnind.4 (𝑥 = 𝐴 → (𝜑 ↔ 𝜏))
nnind.5 𝜓
nnind.6 (𝑦 ∈ ℕ → (𝜒 → 𝜃))
Assertion
Ref Expression
nnind (𝐴 ∈ ℕ → 𝜏)
Distinct variable groups:   𝑥,𝑦   𝑥,𝐴   𝜓,𝑥   𝜒,𝑥   𝜃,𝑥   𝜏,𝑥   𝜑,𝑦
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑦)   𝜒(𝑦)   𝜃(𝑦)   𝜏(𝑦)   𝐴(𝑦)

Proof of Theorem nnind
StepHypRef Expression
1 1nn 12350 . . . . . 6 1 ∈ ℕ
2 nnind.5 . . . . . 6 𝜓
3 nnind.1 . . . . . . 7 (𝑥 = 1 → (𝜑 ↔ 𝜓))
43elrab 3644 . . . . . 6 (1 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ (1 ∈ ℕ ∧ 𝜓))
51, 2, 4mpbir2an 724 . . . . 5 1 ∈ {𝑥 ∈ ℕ ∣ 𝜑}
6 elrabi 3640 . . . . . . 7 (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} → 𝑦 ∈ ℕ)
7 peano2nn 12351 . . . . . . . . . 10 (𝑦 ∈ ℕ → (𝑦 + 1) ∈ ℕ)
87a1d 26 . . . . . . . . 9 (𝑦 ∈ ℕ → (𝑦 ∈ ℕ → (𝑦 + 1) ∈ ℕ))
9 nnind.6 . . . . . . . . 9 (𝑦 ∈ ℕ → (𝜒 → 𝜃))
108, 9anim12d 621 . . . . . . . 8 (𝑦 ∈ ℕ → ((𝑦 ∈ ℕ ∧ 𝜒) → ((𝑦 + 1) ∈ ℕ ∧ 𝜃)))
11 nnind.2 . . . . . . . . 9 (𝑥 = 𝑦 → (𝜑 ↔ 𝜒))
1211elrab 3644 . . . . . . . 8 (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ (𝑦 ∈ ℕ ∧ 𝜒))
13 nnind.3 . . . . . . . . 9 (𝑥 = (𝑦 + 1) → (𝜑 ↔ 𝜃))
1413elrab 3644 . . . . . . . 8 ((𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ ((𝑦 + 1) ∈ ℕ ∧ 𝜃))
1510, 12, 143imtr4g 299 . . . . . . 7 (𝑦 ∈ ℕ → (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} → (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑}))
166, 15mpcom 39 . . . . . 6 (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} → (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑})
1716rgen 3078 . . . . 5 ∀𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑}
18 peano5nni 12342 . . . . 5 ((1 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ∧ ∀𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑}) → ℕ ⊆ {𝑥 ∈ ℕ ∣ 𝜑})
195, 17, 18mp2an 705 . . . 4 ℕ ⊆ {𝑥 ∈ ℕ ∣ 𝜑}
2019sseli 3904 . . 3 (𝐴 ∈ ℕ → 𝐴 ∈ {𝑥 ∈ ℕ ∣ 𝜑})
21 nnind.4 . . . 4 (𝑥 = 𝐴 → (𝜑 ↔ 𝜏))
2221elrab 3644 . . 3 (𝐴 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ (𝐴 ∈ ℕ ∧ 𝜏))
2320, 22sylib 221 . 2 (𝐴 ∈ ℕ → (𝐴 ∈ ℕ ∧ 𝜏))
2423simprd 501 1 (𝐴 ∈ ℕ → 𝜏)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2144  ∀wral 3076  {crab 3412   ⊆ wss 3895  (class class class)co 7421  1c1 11205   + caddc 11207  ℕcn 12339
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7752  ax-1cn 11262
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6541  df-fn 6542  df-f 6543  df-f1 6544  df-fo 6545  df-f1o 6546  df-fv 6547  df-ov 7424  df-om 7879  df-2nd 8003  df-frecs 8303  df-wrecs 8334  df-recs 8383  df-rdg 8422  df-nn 12340
This theorem is used by:  nnindALT  12358  nnindd  12359  nn1m1nn  12360  nnaddcl  12362  nnmulcl  12363  nnadd1com  12365  nnaddcom  12366  nnge1  12370  nnne0  12376  nnsub  12386  nnadddir  12398  nnmul1com  12399  nnmulcom  12400  nneo  12787  peano5uzi  12792  nn0ind-raph  12803  ser1const  14205  expcllem  14219  expeq0  14239  expmordi  14314  seqcoll  14613  relexpsucnnl  15189  relexpcnv  15194  relexprelg  15197  relexpnndm  15200  relexpaddnn  15210  climcndslem2  16025  sqrt2irr  16423  rplpwr  16738  prmind2  16866  prmdvdsexp  16897  eulerthlem2  16965  pcmpt  17076  prmpwdvds  17088  vdwlem10  17174  mulgnnass  19325  ofldchr  21888  imasdsf1olem  24698  ovolunlem1a  25823  ovolicc2lem3  25846  voliunlem1  25877  volsup  25883  dvexp  26279  plyco  26566  dgrcolem1  26598  vieta1  26641  emcllem6  27334  bposlem5  27621  2sqlem10  27761  dchrisum0flb  27843  iuninc  33203  nexple  33471  esumfzf  34748  rrvsum  35133  subfacp1lem6  36037  cvmliftlem10  36146  bcprod  36596  faclimlem1  36601  incsequz  38776  bfplem1  38850  nnn1suc  43425  2nn0ind  44046  relexpxpnnidm  44797  relexpss1d  44799  iunrelexpmin1  44802  relexpmulnn  44803  trclrelexplem  44805  iunrelexpmin2  44806  relexp0a  44810  cotrcltrcl  44819  trclimalb2  44820  cotrclrcl  44836  inductionexd  45249  fmuldfeq  46689  dvnmptconst  47045  stoweidlem20  47124  wallispilem4  47172  wallispi2lem1  47175  wallispi2lem2  47176  dirkertrigeqlem1  47202  iccelpart  48609  nn0sumshdiglem2  49828
  Copyright terms: Public domain W3C validator