ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  frecfzennn GIF version

Theorem frecfzennn 10382
Description: The cardinality of a finite set of sequential integers. (See frec2uz0d 10355 for a description of the hypothesis.) (Contributed by Jim Kingdon, 18-May-2020.)
Hypothesis
Ref Expression
frecfzennn.1 𝐺 = frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0)
Assertion
Ref Expression
frecfzennn (𝑁 ∈ ℕ0 → (1...𝑁) ≈ (𝐺𝑁))

Proof of Theorem frecfzennn
Dummy variables 𝑚 𝑛 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 5861 . . 3 (𝑛 = 0 → (1...𝑛) = (1...0))
2 fveq2 5496 . . 3 (𝑛 = 0 → (𝐺𝑛) = (𝐺‘0))
31, 2breq12d 4002 . 2 (𝑛 = 0 → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...0) ≈ (𝐺‘0)))
4 oveq2 5861 . . 3 (𝑛 = 𝑚 → (1...𝑛) = (1...𝑚))
5 fveq2 5496 . . 3 (𝑛 = 𝑚 → (𝐺𝑛) = (𝐺𝑚))
64, 5breq12d 4002 . 2 (𝑛 = 𝑚 → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...𝑚) ≈ (𝐺𝑚)))
7 oveq2 5861 . . 3 (𝑛 = (𝑚 + 1) → (1...𝑛) = (1...(𝑚 + 1)))
8 fveq2 5496 . . 3 (𝑛 = (𝑚 + 1) → (𝐺𝑛) = (𝐺‘(𝑚 + 1)))
97, 8breq12d 4002 . 2 (𝑛 = (𝑚 + 1) → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...(𝑚 + 1)) ≈ (𝐺‘(𝑚 + 1))))
10 oveq2 5861 . . 3 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
11 fveq2 5496 . . 3 (𝑛 = 𝑁 → (𝐺𝑛) = (𝐺𝑁))
1210, 11breq12d 4002 . 2 (𝑛 = 𝑁 → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...𝑁) ≈ (𝐺𝑁)))
13 0ex 4116 . . . 4 ∅ ∈ V
1413enref 6743 . . 3 ∅ ≈ ∅
15 fz10 10002 . . 3 (1...0) = ∅
16 0zd 9224 . . . . . . 7 (⊤ → 0 ∈ ℤ)
17 frecfzennn.1 . . . . . . 7 𝐺 = frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0)
1816, 17frec2uzf1od 10362 . . . . . 6 (⊤ → 𝐺:ω–1-1-onto→(ℤ‘0))
1918mptru 1357 . . . . 5 𝐺:ω–1-1-onto→(ℤ‘0)
20 peano1 4578 . . . . 5 ∅ ∈ ω
2119, 20pm3.2i 270 . . . 4 (𝐺:ω–1-1-onto→(ℤ‘0) ∧ ∅ ∈ ω)
2216, 17frec2uz0d 10355 . . . . 5 (⊤ → (𝐺‘∅) = 0)
2322mptru 1357 . . . 4 (𝐺‘∅) = 0
24 f1ocnvfv 5758 . . . 4 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ ∅ ∈ ω) → ((𝐺‘∅) = 0 → (𝐺‘0) = ∅))
2521, 23, 24mp2 16 . . 3 (𝐺‘0) = ∅
2614, 15, 253brtr4i 4019 . 2 (1...0) ≈ (𝐺‘0)
27 simpr 109 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (1...𝑚) ≈ (𝐺𝑚))
28 peano2nn0 9175 . . . . . . 7 (𝑚 ∈ ℕ0 → (𝑚 + 1) ∈ ℕ0)
29 zex 9221 . . . . . . . . . . . . . . 15 ℤ ∈ V
3029mptex 5722 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ ↦ (𝑥 + 1)) ∈ V
31 vex 2733 . . . . . . . . . . . . . 14 𝑧 ∈ V
3230, 31fvex 5516 . . . . . . . . . . . . 13 ((𝑥 ∈ ℤ ↦ (𝑥 + 1))‘𝑧) ∈ V
3332ax-gen 1442 . . . . . . . . . . . 12 𝑧((𝑥 ∈ ℤ ↦ (𝑥 + 1))‘𝑧) ∈ V
34 0z 9223 . . . . . . . . . . . 12 0 ∈ ℤ
35 frecfnom 6380 . . . . . . . . . . . 12 ((∀𝑧((𝑥 ∈ ℤ ↦ (𝑥 + 1))‘𝑧) ∈ V ∧ 0 ∈ ℤ) → frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0) Fn ω)
3633, 34, 35mp2an 424 . . . . . . . . . . 11 frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0) Fn ω
3717fneq1i 5292 . . . . . . . . . . 11 (𝐺 Fn ω ↔ frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0) Fn ω)
3836, 37mpbir 145 . . . . . . . . . 10 𝐺 Fn ω
39 omex 4577 . . . . . . . . . 10 ω ∈ V
40 fnex 5718 . . . . . . . . . 10 ((𝐺 Fn ω ∧ ω ∈ V) → 𝐺 ∈ V)
4138, 39, 40mp2an 424 . . . . . . . . 9 𝐺 ∈ V
4241cnvex 5149 . . . . . . . 8 𝐺 ∈ V
43 vex 2733 . . . . . . . 8 𝑚 ∈ V
4442, 43fvex 5516 . . . . . . 7 (𝐺𝑚) ∈ V
45 en2sn 6791 . . . . . . 7 (((𝑚 + 1) ∈ ℕ0 ∧ (𝐺𝑚) ∈ V) → {(𝑚 + 1)} ≈ {(𝐺𝑚)})
4628, 44, 45sylancl 411 . . . . . 6 (𝑚 ∈ ℕ0 → {(𝑚 + 1)} ≈ {(𝐺𝑚)})
4746adantr 274 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → {(𝑚 + 1)} ≈ {(𝐺𝑚)})
48 fzp1disj 10036 . . . . . 6 ((1...𝑚) ∩ {(𝑚 + 1)}) = ∅
4948a1i 9 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ((1...𝑚) ∩ {(𝑚 + 1)}) = ∅)
50 f1ocnvdm 5760 . . . . . . . . . 10 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ 𝑚 ∈ (ℤ‘0)) → (𝐺𝑚) ∈ ω)
5119, 50mpan 422 . . . . . . . . 9 (𝑚 ∈ (ℤ‘0) → (𝐺𝑚) ∈ ω)
52 nn0uz 9521 . . . . . . . . 9 0 = (ℤ‘0)
5351, 52eleq2s 2265 . . . . . . . 8 (𝑚 ∈ ℕ0 → (𝐺𝑚) ∈ ω)
54 nnord 4596 . . . . . . . 8 ((𝐺𝑚) ∈ ω → Ord (𝐺𝑚))
55 ordirr 4526 . . . . . . . 8 (Ord (𝐺𝑚) → ¬ (𝐺𝑚) ∈ (𝐺𝑚))
5653, 54, 553syl 17 . . . . . . 7 (𝑚 ∈ ℕ0 → ¬ (𝐺𝑚) ∈ (𝐺𝑚))
5756adantr 274 . . . . . 6 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ¬ (𝐺𝑚) ∈ (𝐺𝑚))
58 disjsn 3645 . . . . . 6 (((𝐺𝑚) ∩ {(𝐺𝑚)}) = ∅ ↔ ¬ (𝐺𝑚) ∈ (𝐺𝑚))
5957, 58sylibr 133 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ((𝐺𝑚) ∩ {(𝐺𝑚)}) = ∅)
60 unen 6794 . . . . 5 ((((1...𝑚) ≈ (𝐺𝑚) ∧ {(𝑚 + 1)} ≈ {(𝐺𝑚)}) ∧ (((1...𝑚) ∩ {(𝑚 + 1)}) = ∅ ∧ ((𝐺𝑚) ∩ {(𝐺𝑚)}) = ∅)) → ((1...𝑚) ∪ {(𝑚 + 1)}) ≈ ((𝐺𝑚) ∪ {(𝐺𝑚)}))
6127, 47, 49, 59, 60syl22anc 1234 . . . 4 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ((1...𝑚) ∪ {(𝑚 + 1)}) ≈ ((𝐺𝑚) ∪ {(𝐺𝑚)}))
62 1z 9238 . . . . . 6 1 ∈ ℤ
63 1m1e0 8947 . . . . . . . . . 10 (1 − 1) = 0
6463fveq2i 5499 . . . . . . . . 9 (ℤ‘(1 − 1)) = (ℤ‘0)
6552, 64eqtr4i 2194 . . . . . . . 8 0 = (ℤ‘(1 − 1))
6665eleq2i 2237 . . . . . . 7 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘(1 − 1)))
6766biimpi 119 . . . . . 6 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘(1 − 1)))
68 fzsuc2 10035 . . . . . 6 ((1 ∈ ℤ ∧ 𝑚 ∈ (ℤ‘(1 − 1))) → (1...(𝑚 + 1)) = ((1...𝑚) ∪ {(𝑚 + 1)}))
6962, 67, 68sylancr 412 . . . . 5 (𝑚 ∈ ℕ0 → (1...(𝑚 + 1)) = ((1...𝑚) ∪ {(𝑚 + 1)}))
7069adantr 274 . . . 4 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (1...(𝑚 + 1)) = ((1...𝑚) ∪ {(𝑚 + 1)}))
71 peano2 4579 . . . . . . . . 9 ((𝐺𝑚) ∈ ω → suc (𝐺𝑚) ∈ ω)
7253, 71syl 14 . . . . . . . 8 (𝑚 ∈ ℕ0 → suc (𝐺𝑚) ∈ ω)
7372, 19jctil 310 . . . . . . 7 (𝑚 ∈ ℕ0 → (𝐺:ω–1-1-onto→(ℤ‘0) ∧ suc (𝐺𝑚) ∈ ω))
74 0zd 9224 . . . . . . . . . 10 ((𝐺𝑚) ∈ ω → 0 ∈ ℤ)
75 id 19 . . . . . . . . . 10 ((𝐺𝑚) ∈ ω → (𝐺𝑚) ∈ ω)
7674, 17, 75frec2uzsucd 10357 . . . . . . . . 9 ((𝐺𝑚) ∈ ω → (𝐺‘suc (𝐺𝑚)) = ((𝐺‘(𝐺𝑚)) + 1))
7753, 76syl 14 . . . . . . . 8 (𝑚 ∈ ℕ0 → (𝐺‘suc (𝐺𝑚)) = ((𝐺‘(𝐺𝑚)) + 1))
7852eleq2i 2237 . . . . . . . . . . 11 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘0))
7978biimpi 119 . . . . . . . . . 10 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘0))
80 f1ocnvfv2 5757 . . . . . . . . . 10 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ 𝑚 ∈ (ℤ‘0)) → (𝐺‘(𝐺𝑚)) = 𝑚)
8119, 79, 80sylancr 412 . . . . . . . . 9 (𝑚 ∈ ℕ0 → (𝐺‘(𝐺𝑚)) = 𝑚)
8281oveq1d 5868 . . . . . . . 8 (𝑚 ∈ ℕ0 → ((𝐺‘(𝐺𝑚)) + 1) = (𝑚 + 1))
8377, 82eqtrd 2203 . . . . . . 7 (𝑚 ∈ ℕ0 → (𝐺‘suc (𝐺𝑚)) = (𝑚 + 1))
84 f1ocnvfv 5758 . . . . . . 7 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ suc (𝐺𝑚) ∈ ω) → ((𝐺‘suc (𝐺𝑚)) = (𝑚 + 1) → (𝐺‘(𝑚 + 1)) = suc (𝐺𝑚)))
8573, 83, 84sylc 62 . . . . . 6 (𝑚 ∈ ℕ0 → (𝐺‘(𝑚 + 1)) = suc (𝐺𝑚))
8685adantr 274 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (𝐺‘(𝑚 + 1)) = suc (𝐺𝑚))
87 df-suc 4356 . . . . 5 suc (𝐺𝑚) = ((𝐺𝑚) ∪ {(𝐺𝑚)})
8886, 87eqtrdi 2219 . . . 4 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (𝐺‘(𝑚 + 1)) = ((𝐺𝑚) ∪ {(𝐺𝑚)}))
8961, 70, 883brtr4d 4021 . . 3 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (1...(𝑚 + 1)) ≈ (𝐺‘(𝑚 + 1)))
9089ex 114 . 2 (𝑚 ∈ ℕ0 → ((1...𝑚) ≈ (𝐺𝑚) → (1...(𝑚 + 1)) ≈ (𝐺‘(𝑚 + 1))))
913, 6, 9, 12, 26, 90nn0ind 9326 1 (𝑁 ∈ ℕ0 → (1...𝑁) ≈ (𝐺𝑁))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wal 1346   = wceq 1348  wtru 1349  wcel 2141  Vcvv 2730  cun 3119  cin 3120  c0 3414  {csn 3583   class class class wbr 3989  cmpt 4050  Ord word 4347  suc csuc 4350  ωcom 4574  ccnv 4610   Fn wfn 5193  1-1-ontowf1o 5197  cfv 5198  (class class class)co 5853  freccfrec 6369  cen 6716  0cc0 7774  1c1 7775   + caddc 7777  cmin 8090  0cn0 9135  cz 9212  cuz 9487  ...cfz 9965
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4104  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-addass 7876  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-0id 7882  ax-rnegex 7883  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-iord 4351  df-on 4353  df-ilim 4354  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-recs 6284  df-frec 6370  df-1o 6395  df-er 6513  df-en 6719  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-inn 8879  df-n0 9136  df-z 9213  df-uz 9488  df-fz 9966
This theorem is referenced by:  frecfzen2  10383  hashfz1  10717
  Copyright terms: Public domain W3C validator