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

Theorem frecfzennn 10361
Description: The cardinality of a finite set of sequential integers. (See frec2uz0d 10334 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 5850 . . 3 (𝑛 = 0 → (1...𝑛) = (1...0))
2 fveq2 5486 . . 3 (𝑛 = 0 → (𝐺𝑛) = (𝐺‘0))
31, 2breq12d 3995 . 2 (𝑛 = 0 → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...0) ≈ (𝐺‘0)))
4 oveq2 5850 . . 3 (𝑛 = 𝑚 → (1...𝑛) = (1...𝑚))
5 fveq2 5486 . . 3 (𝑛 = 𝑚 → (𝐺𝑛) = (𝐺𝑚))
64, 5breq12d 3995 . 2 (𝑛 = 𝑚 → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...𝑚) ≈ (𝐺𝑚)))
7 oveq2 5850 . . 3 (𝑛 = (𝑚 + 1) → (1...𝑛) = (1...(𝑚 + 1)))
8 fveq2 5486 . . 3 (𝑛 = (𝑚 + 1) → (𝐺𝑛) = (𝐺‘(𝑚 + 1)))
97, 8breq12d 3995 . 2 (𝑛 = (𝑚 + 1) → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...(𝑚 + 1)) ≈ (𝐺‘(𝑚 + 1))))
10 oveq2 5850 . . 3 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
11 fveq2 5486 . . 3 (𝑛 = 𝑁 → (𝐺𝑛) = (𝐺𝑁))
1210, 11breq12d 3995 . 2 (𝑛 = 𝑁 → ((1...𝑛) ≈ (𝐺𝑛) ↔ (1...𝑁) ≈ (𝐺𝑁)))
13 0ex 4109 . . . 4 ∅ ∈ V
1413enref 6731 . . 3 ∅ ≈ ∅
15 fz10 9981 . . 3 (1...0) = ∅
16 0zd 9203 . . . . . . 7 (⊤ → 0 ∈ ℤ)
17 frecfzennn.1 . . . . . . 7 𝐺 = frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0)
1816, 17frec2uzf1od 10341 . . . . . 6 (⊤ → 𝐺:ω–1-1-onto→(ℤ‘0))
1918mptru 1352 . . . . 5 𝐺:ω–1-1-onto→(ℤ‘0)
20 peano1 4571 . . . . 5 ∅ ∈ ω
2119, 20pm3.2i 270 . . . 4 (𝐺:ω–1-1-onto→(ℤ‘0) ∧ ∅ ∈ ω)
2216, 17frec2uz0d 10334 . . . . 5 (⊤ → (𝐺‘∅) = 0)
2322mptru 1352 . . . 4 (𝐺‘∅) = 0
24 f1ocnvfv 5747 . . . 4 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ ∅ ∈ ω) → ((𝐺‘∅) = 0 → (𝐺‘0) = ∅))
2521, 23, 24mp2 16 . . 3 (𝐺‘0) = ∅
2614, 15, 253brtr4i 4012 . 2 (1...0) ≈ (𝐺‘0)
27 simpr 109 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (1...𝑚) ≈ (𝐺𝑚))
28 peano2nn0 9154 . . . . . . 7 (𝑚 ∈ ℕ0 → (𝑚 + 1) ∈ ℕ0)
29 zex 9200 . . . . . . . . . . . . . . 15 ℤ ∈ V
3029mptex 5711 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ ↦ (𝑥 + 1)) ∈ V
31 vex 2729 . . . . . . . . . . . . . 14 𝑧 ∈ V
3230, 31fvex 5506 . . . . . . . . . . . . 13 ((𝑥 ∈ ℤ ↦ (𝑥 + 1))‘𝑧) ∈ V
3332ax-gen 1437 . . . . . . . . . . . 12 𝑧((𝑥 ∈ ℤ ↦ (𝑥 + 1))‘𝑧) ∈ V
34 0z 9202 . . . . . . . . . . . 12 0 ∈ ℤ
35 frecfnom 6369 . . . . . . . . . . . 12 ((∀𝑧((𝑥 ∈ ℤ ↦ (𝑥 + 1))‘𝑧) ∈ V ∧ 0 ∈ ℤ) → frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0) Fn ω)
3633, 34, 35mp2an 423 . . . . . . . . . . 11 frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0) Fn ω
3717fneq1i 5282 . . . . . . . . . . 11 (𝐺 Fn ω ↔ frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 0) Fn ω)
3836, 37mpbir 145 . . . . . . . . . 10 𝐺 Fn ω
39 omex 4570 . . . . . . . . . 10 ω ∈ V
40 fnex 5707 . . . . . . . . . 10 ((𝐺 Fn ω ∧ ω ∈ V) → 𝐺 ∈ V)
4138, 39, 40mp2an 423 . . . . . . . . 9 𝐺 ∈ V
4241cnvex 5142 . . . . . . . 8 𝐺 ∈ V
43 vex 2729 . . . . . . . 8 𝑚 ∈ V
4442, 43fvex 5506 . . . . . . 7 (𝐺𝑚) ∈ V
45 en2sn 6779 . . . . . . 7 (((𝑚 + 1) ∈ ℕ0 ∧ (𝐺𝑚) ∈ V) → {(𝑚 + 1)} ≈ {(𝐺𝑚)})
4628, 44, 45sylancl 410 . . . . . 6 (𝑚 ∈ ℕ0 → {(𝑚 + 1)} ≈ {(𝐺𝑚)})
4746adantr 274 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → {(𝑚 + 1)} ≈ {(𝐺𝑚)})
48 fzp1disj 10015 . . . . . 6 ((1...𝑚) ∩ {(𝑚 + 1)}) = ∅
4948a1i 9 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ((1...𝑚) ∩ {(𝑚 + 1)}) = ∅)
50 f1ocnvdm 5749 . . . . . . . . . 10 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ 𝑚 ∈ (ℤ‘0)) → (𝐺𝑚) ∈ ω)
5119, 50mpan 421 . . . . . . . . 9 (𝑚 ∈ (ℤ‘0) → (𝐺𝑚) ∈ ω)
52 nn0uz 9500 . . . . . . . . 9 0 = (ℤ‘0)
5351, 52eleq2s 2261 . . . . . . . 8 (𝑚 ∈ ℕ0 → (𝐺𝑚) ∈ ω)
54 nnord 4589 . . . . . . . 8 ((𝐺𝑚) ∈ ω → Ord (𝐺𝑚))
55 ordirr 4519 . . . . . . . 8 (Ord (𝐺𝑚) → ¬ (𝐺𝑚) ∈ (𝐺𝑚))
5653, 54, 553syl 17 . . . . . . 7 (𝑚 ∈ ℕ0 → ¬ (𝐺𝑚) ∈ (𝐺𝑚))
5756adantr 274 . . . . . 6 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ¬ (𝐺𝑚) ∈ (𝐺𝑚))
58 disjsn 3638 . . . . . 6 (((𝐺𝑚) ∩ {(𝐺𝑚)}) = ∅ ↔ ¬ (𝐺𝑚) ∈ (𝐺𝑚))
5957, 58sylibr 133 . . . . 5 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ((𝐺𝑚) ∩ {(𝐺𝑚)}) = ∅)
60 unen 6782 . . . . 5 ((((1...𝑚) ≈ (𝐺𝑚) ∧ {(𝑚 + 1)} ≈ {(𝐺𝑚)}) ∧ (((1...𝑚) ∩ {(𝑚 + 1)}) = ∅ ∧ ((𝐺𝑚) ∩ {(𝐺𝑚)}) = ∅)) → ((1...𝑚) ∪ {(𝑚 + 1)}) ≈ ((𝐺𝑚) ∪ {(𝐺𝑚)}))
6127, 47, 49, 59, 60syl22anc 1229 . . . 4 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → ((1...𝑚) ∪ {(𝑚 + 1)}) ≈ ((𝐺𝑚) ∪ {(𝐺𝑚)}))
62 1z 9217 . . . . . 6 1 ∈ ℤ
63 1m1e0 8926 . . . . . . . . . 10 (1 − 1) = 0
6463fveq2i 5489 . . . . . . . . 9 (ℤ‘(1 − 1)) = (ℤ‘0)
6552, 64eqtr4i 2189 . . . . . . . 8 0 = (ℤ‘(1 − 1))
6665eleq2i 2233 . . . . . . 7 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘(1 − 1)))
6766biimpi 119 . . . . . 6 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘(1 − 1)))
68 fzsuc2 10014 . . . . . 6 ((1 ∈ ℤ ∧ 𝑚 ∈ (ℤ‘(1 − 1))) → (1...(𝑚 + 1)) = ((1...𝑚) ∪ {(𝑚 + 1)}))
6962, 67, 68sylancr 411 . . . . 5 (𝑚 ∈ ℕ0 → (1...(𝑚 + 1)) = ((1...𝑚) ∪ {(𝑚 + 1)}))
7069adantr 274 . . . 4 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (1...(𝑚 + 1)) = ((1...𝑚) ∪ {(𝑚 + 1)}))
71 peano2 4572 . . . . . . . . 9 ((𝐺𝑚) ∈ ω → suc (𝐺𝑚) ∈ ω)
7253, 71syl 14 . . . . . . . 8 (𝑚 ∈ ℕ0 → suc (𝐺𝑚) ∈ ω)
7372, 19jctil 310 . . . . . . 7 (𝑚 ∈ ℕ0 → (𝐺:ω–1-1-onto→(ℤ‘0) ∧ suc (𝐺𝑚) ∈ ω))
74 0zd 9203 . . . . . . . . . 10 ((𝐺𝑚) ∈ ω → 0 ∈ ℤ)
75 id 19 . . . . . . . . . 10 ((𝐺𝑚) ∈ ω → (𝐺𝑚) ∈ ω)
7674, 17, 75frec2uzsucd 10336 . . . . . . . . 9 ((𝐺𝑚) ∈ ω → (𝐺‘suc (𝐺𝑚)) = ((𝐺‘(𝐺𝑚)) + 1))
7753, 76syl 14 . . . . . . . 8 (𝑚 ∈ ℕ0 → (𝐺‘suc (𝐺𝑚)) = ((𝐺‘(𝐺𝑚)) + 1))
7852eleq2i 2233 . . . . . . . . . . 11 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘0))
7978biimpi 119 . . . . . . . . . 10 (𝑚 ∈ ℕ0𝑚 ∈ (ℤ‘0))
80 f1ocnvfv2 5746 . . . . . . . . . 10 ((𝐺:ω–1-1-onto→(ℤ‘0) ∧ 𝑚 ∈ (ℤ‘0)) → (𝐺‘(𝐺𝑚)) = 𝑚)
8119, 79, 80sylancr 411 . . . . . . . . 9 (𝑚 ∈ ℕ0 → (𝐺‘(𝐺𝑚)) = 𝑚)
8281oveq1d 5857 . . . . . . . 8 (𝑚 ∈ ℕ0 → ((𝐺‘(𝐺𝑚)) + 1) = (𝑚 + 1))
8377, 82eqtrd 2198 . . . . . . 7 (𝑚 ∈ ℕ0 → (𝐺‘suc (𝐺𝑚)) = (𝑚 + 1))
84 f1ocnvfv 5747 . . . . . . 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 4349 . . . . 5 suc (𝐺𝑚) = ((𝐺𝑚) ∪ {(𝐺𝑚)})
8886, 87eqtrdi 2215 . . . 4 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (𝐺‘(𝑚 + 1)) = ((𝐺𝑚) ∪ {(𝐺𝑚)}))
8961, 70, 883brtr4d 4014 . . 3 ((𝑚 ∈ ℕ0 ∧ (1...𝑚) ≈ (𝐺𝑚)) → (1...(𝑚 + 1)) ≈ (𝐺‘(𝑚 + 1)))
9089ex 114 . 2 (𝑚 ∈ ℕ0 → ((1...𝑚) ≈ (𝐺𝑚) → (1...(𝑚 + 1)) ≈ (𝐺‘(𝑚 + 1))))
913, 6, 9, 12, 26, 90nn0ind 9305 1 (𝑁 ∈ ℕ0 → (1...𝑁) ≈ (𝐺𝑁))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wal 1341   = wceq 1343  wtru 1344  wcel 2136  Vcvv 2726  cun 3114  cin 3115  c0 3409  {csn 3576   class class class wbr 3982  cmpt 4043  Ord word 4340  suc csuc 4343  ωcom 4567  ccnv 4603   Fn wfn 5183  1-1-ontowf1o 5187  cfv 5188  (class class class)co 5842  freccfrec 6358  cen 6704  0cc0 7753  1c1 7754   + caddc 7756  cmin 8069  0cn0 9114  cz 9191  cuz 9466  ...cfz 9944
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-addass 7855  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-apti 7868  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-ilim 4347  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-recs 6273  df-frec 6359  df-1o 6384  df-er 6501  df-en 6707  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-n0 9115  df-z 9192  df-uz 9467  df-fz 9945
This theorem is referenced by:  frecfzen2  10362  hashfz1  10696
  Copyright terms: Public domain W3C validator