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

Theorem hashfz1 14490
Description: The set (1...𝑁) has 𝑁 elements. (Contributed by Paul Chapman, 22-Jun-2011.) (Revised by Mario Carneiro, 15-Sep-2013.)
Assertion
Ref Expression
hashfz1 (𝑁 ∈ ℕ0 → (♯‘(1...𝑁)) = 𝑁)

Proof of Theorem hashfz1
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 eqid 2760 . . . 4 (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω) = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)
21cardfz 14113 . . 3 (𝑁 ∈ ℕ0 → (card‘(1...𝑁)) = (◡(rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘𝑁))
32fveq2d 6889 . 2 (𝑁 ∈ ℕ0 → ((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘(card‘(1...𝑁))) = ((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘(◡(rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘𝑁)))
4 fzfid 14116 . . 3 (𝑁 ∈ ℕ0 → (1...𝑁) ∈ Fin)
51hashgval 14477 . . 3 ((1...𝑁) ∈ Fin → ((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘(card‘(1...𝑁))) = (♯‘(1...𝑁)))
64, 5syl 18 . 2 (𝑁 ∈ ℕ0 → ((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘(card‘(1...𝑁))) = (♯‘(1...𝑁)))
71hashgf1o 14114 . . 3 (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω):ω–1-1-onto→ℕ0
8 f1ocnvfv2 7285 . . 3 (((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω):ω–1-1-onto→ℕ0 ∧ 𝑁 ∈ ℕ0) → ((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘(◡(rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘𝑁)) = 𝑁)
97, 8mpan 703 . 2 (𝑁 ∈ ℕ0 → ((rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘(◡(rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)‘𝑁)) = 𝑁)
103, 6, 93eqtr3d 2803 1 (𝑁 ∈ ℕ0 → (♯‘(1...𝑁)) = 𝑁)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1569   ∈ wcel 2144  Vcvv 3450   ↦ cmpt 5185  ◡ccnv 5649   ↾ cres 5652  –1-1-onto→wf1o 6537  ‘cfv 6538  (class class class)co 7420  ωcom 7877  reccrdg 8417  Fincfn 8973  cardccrd 10016  0cc0 11200  1c1 11201   + caddc 11203  ℕ0cn0 12606  ...cfz 13639  ♯chash 14474
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-pow 5326  ax-pr 5390  ax-un 7751  ax-cnex 11256  ax-resscn 11257  ax-1cn 11258  ax-icn 11259  ax-addcl 11260  ax-addrcl 11261  ax-mulcl 11262  ax-mulrcl 11263  ax-mulcom 11264  ax-addass 11265  ax-mulass 11266  ax-distr 11267  ax-i2m1 11268  ax-1ne0 11269  ax-1rid 11270  ax-rnegex 11271  ax-rrecex 11272  ax-cnre 11273  ax-pre-lttri 11274  ax-pre-lttrn 11275  ax-pre-ltadd 11276  ax-pre-mulgt0 11277
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-nel 3062  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 4584  df-pr 4586  df-op 4590  df-uni 4867  df-int 4907  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 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-frecs 8299  df-wrecs 8330  df-recs 8379  df-rdg 8418  df-1o 8476  df-er 8717  df-en 8974  df-dom 8975  df-sdom 8976  df-fin 8977  df-card 10020  df-pnf 11345  df-mnf 11346  df-xr 11347  df-ltxr 11348  df-le 11349  df-sub 11543  df-neg 11544  df-nn 12336  df-n0 12607  df-z 12694  df-uz 12966  df-fz 13640  df-hash 14475
This theorem is used by:  fz1eqb  14498  isfinite4  14506  hasheq0  14507  hashsng  14513  fseq1hash  14520  hashdom  14523  hashfz  14572  ishashinf  14608  isercolllem2  15833  isercoll  15835  summolem3  15880  summolem2a  15881  o1fsum  15980  climcndslem1  16018  climcndslem2  16019  harmonic  16028  mertenslem1  16053  prodmolem3  16100  prodmolem2a  16101  risefallfac  16191  bpolylem  16214  phicl2  16945  phibnd  16948  hashdvds  16952  phiprmpw  16953  eulerth  16960  pcfac  17077  prmreclem2  17095  prmreclem3  17096  prmreclem5  17098  4sqlem11  17133  vdwlem12  17170  ramub2  17192  ramlb  17197  0ram  17198  ram0  17200  dfod2  19778  gsumval3  20121  uniioombllem4  25907  birthdaylem2  27280  birthdaylem3  27281  basellem4  27411  basellem5  27412  basellem8  27415  ppiltx  27504  vmasum  27543  logfac2  27544  chpval2  27545  chpchtsum  27546  chpub  27547  logfaclbnd  27549  bposlem1  27611  lgsqrlem4  27676  gausslemma2dlem6  27699  lgseisenlem4  27705  lgsquadlem1  27707  lgsquadlem2  27708  lgsquadlem3  27709  dchrmusum2  27821  dchrisum0lem2a  27844  mudivsum  27857  mulogsumlem  27858  selberglem2  27873  cyclnumvtx  30388  ballotlem1  35119  ballotlemfmpn  35127  derangen2  35939  subfaclefac  35941  subfacp1lem1  35944  erdszelem10  35965  erdsze2lem1  35968  snmlff  36094  bcprod  36503  bj-finsumval0  38207  hashscontpow  43173  sticksstones2  43198  sticksstones5  43201  sticksstones10  43206  sticksstones12a  43208  fz1sumconst  43367  eldioph2lem1  43771  rp-isfinite5  44518  rp-isfinite6  44519  stoweidlem38  47048  dirkertrigeq  47111  etransclem32  47276  nn0mulfsum  49736  aacllem  50939
  Copyright terms: Public domain W3C validator