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

Theorem nnind 12393
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 12398 for an example of its use. See nn0ind 12834 for induction on nonnegative integers and uzind 12831, uzind4 13073 for induction on an arbitrary upper set of integers. See indstr 13083 for strong induction. See also nnindALT 12394. 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 12386 . . . . . 6 1 ∈ ℕ
2 nnind.5 . . . . . 6 𝜓
3 nnind.1 . . . . . . 7 (𝑥 = 1 → (𝜑 ↔ 𝜓))
43elrab 3648 . . . . . 6 (1 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ (1 ∈ ℕ ∧ 𝜓))
51, 2, 4mpbir2an 724 . . . . 5 1 ∈ {𝑥 ∈ ℕ ∣ 𝜑}
6 elrabi 3644 . . . . . . 7 (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} → 𝑦 ∈ ℕ)
7 peano2nn 12387 . . . . . . . . . 10 (𝑦 ∈ ℕ → (𝑦 + 1) ∈ ℕ)
87a1d 26 . . . . . . . . 9 (𝑦 ∈ ℕ → (𝑦 ∈ ℕ → (𝑦 + 1) ∈ ℕ))
9 nnind.6 . . . . . . . . 9 (𝑦 ∈ ℕ → (𝜒 → 𝜃))
108, 9anim12d 621 . . . . . . . 8 (𝑦 ∈ ℕ → ((𝑦 ∈ ℕ ∧ 𝜒) → ((𝑦 + 1) ∈ ℕ ∧ 𝜃)))
11 nnind.2 . . . . . . . . 9 (𝑥 = 𝑦 → (𝜑 ↔ 𝜒))
1211elrab 3648 . . . . . . . 8 (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ (𝑦 ∈ ℕ ∧ 𝜒))
13 nnind.3 . . . . . . . . 9 (𝑥 = (𝑦 + 1) → (𝜑 ↔ 𝜃))
1413elrab 3648 . . . . . . . 8 ((𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑} ↔ ((𝑦 + 1) ∈ ℕ ∧ 𝜃))
1510, 12, 143imtr4g 299 . . . . . . 7 (𝑦 ∈ ℕ → (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} → (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑}))
166, 15mpcom 39 . . . . . 6 (𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} → (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑})
1716rgen 3082 . . . . 5 ∀𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑}
18 peano5nni 12378 . . . . 5 ((1 ∈ {𝑥 ∈ ℕ ∣ 𝜑} ∧ ∀𝑦 ∈ {𝑥 ∈ ℕ ∣ 𝜑} (𝑦 + 1) ∈ {𝑥 ∈ ℕ ∣ 𝜑}) → ℕ ⊆ {𝑥 ∈ ℕ ∣ 𝜑})
195, 17, 18mp2an 705 . . . 4 ℕ ⊆ {𝑥 ∈ ℕ ∣ 𝜑}
2019sseli 3909 . . 3 (𝐴 ∈ ℕ → 𝐴 ∈ {𝑥 ∈ ℕ ∣ 𝜑})
21 nnind.4 . . . 4 (𝑥 = 𝐴 → (𝜑 ↔ 𝜏))
2221elrab 3648 . . 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 1570   ∈ wcel 2147  ∀wral 3080  {crab 3416   ⊆ wss 3900  (class class class)co 7451  1c1 11240   + caddc 11242  ℕcn 12375
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pr 5398  ax-un 7783  ax-1cn 11297
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-om 7912  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-nn 12376
This theorem is used by:  nnindALT  12394  nnindd  12395  nn1m1nn  12396  nnaddcl  12398  nnmulcl  12399  nnadd1com  12401  nnaddcom  12402  nnge1  12406  nnne0  12412  nnsub  12422  nnadddir  12434  nnmul1com  12435  nnmulcom  12436  nneo  12823  peano5uzi  12828  nn0ind-raph  12839  ser1const  14241  expcllem  14255  expeq0  14275  expmordi  14350  seqcoll  14650  relexpsucnnl  15226  relexpcnv  15231  relexprelg  15234  relexpnndm  15237  relexpaddnn  15247  climcndslem2  16063  sqrt2irr  16461  rplpwr  16776  prmind2  16904  prmdvdsexp  16935  eulerthlem2  17003  pcmpt  17114  prmpwdvds  17126  vdwlem10  17212  mulgnnass  19369  ofldchr  21937  imasdsf1olem  24747  ovolunlem1a  25872  ovolicc2lem3  25895  voliunlem1  25926  volsup  25932  dvexp  26328  plyco  26615  dgrcolem1  26647  vieta1  26690  emcllem6  27385  bposlem5  27672  2sqlem10  27812  dchrisum0flb  27894  iuninc  33253  nexple  33520  esumfzf  34812  rrvsum  35197  subfacp1lem6  36158  cvmliftlem10  36267  bcprod  36718  faclimlem1  36723  incsequz  38948  bfplem1  39022  nnn1suc  43597  2nn0ind  44218  relexpxpnnidm  44964  relexpss1d  44966  iunrelexpmin1  44969  relexpmulnn  44970  trclrelexplem  44972  iunrelexpmin2  44973  relexp0a  44977  cotrcltrcl  44986  trclimalb2  44987  cotrclrcl  45003  inductionexd  45416  fmuldfeq  46868  dvnmptconst  47224  stoweidlem20  47303  wallispilem4  47351  wallispi2lem1  47354  wallispi2lem2  47355  dirkertrigeqlem1  47381  iccelpart  48788  nn0sumshdiglem2  50065
  Copyright terms: Public domain W3C validator