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

Theorem tfrlem16 8224
Description: Lemma for finite recursion. Without assuming ax-rep 5209, we can show that the domain of the constructed function is a limit ordinal, and hence contains all the finite ordinals. (Contributed by Mario Carneiro, 14-Nov-2014.)
Hypothesis
Ref Expression
tfrlem.1 𝐴 = {𝑓 ∣ ∃𝑥 ∈ On (𝑓 Fn 𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝐹‘(𝑓𝑦)))}
Assertion
Ref Expression
tfrlem16 Lim dom recs(𝐹)
Distinct variable group:   𝑥,𝑓,𝑦,𝐹
Allowed substitution hints:   𝐴(𝑥,𝑦,𝑓)

Proof of Theorem tfrlem16
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 tfrlem.1 . . . 4 𝐴 = {𝑓 ∣ ∃𝑥 ∈ On (𝑓 Fn 𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝐹‘(𝑓𝑦)))}
21tfrlem8 8215 . . 3 Ord dom recs(𝐹)
3 ordzsl 7692 . . 3 (Ord dom recs(𝐹) ↔ (dom recs(𝐹) = ∅ ∨ ∃𝑧 ∈ On dom recs(𝐹) = suc 𝑧 ∨ Lim dom recs(𝐹)))
42, 3mpbi 229 . 2 (dom recs(𝐹) = ∅ ∨ ∃𝑧 ∈ On dom recs(𝐹) = suc 𝑧 ∨ Lim dom recs(𝐹))
5 res0 5895 . . . . . . 7 (recs(𝐹) ↾ ∅) = ∅
6 0ex 5231 . . . . . . 7 ∅ ∈ V
75, 6eqeltri 2835 . . . . . 6 (recs(𝐹) ↾ ∅) ∈ V
8 0elon 6319 . . . . . . 7 ∅ ∈ On
91tfrlem15 8223 . . . . . . 7 (∅ ∈ On → (∅ ∈ dom recs(𝐹) ↔ (recs(𝐹) ↾ ∅) ∈ V))
108, 9ax-mp 5 . . . . . 6 (∅ ∈ dom recs(𝐹) ↔ (recs(𝐹) ↾ ∅) ∈ V)
117, 10mpbir 230 . . . . 5 ∅ ∈ dom recs(𝐹)
1211n0ii 4270 . . . 4 ¬ dom recs(𝐹) = ∅
1312pm2.21i 119 . . 3 (dom recs(𝐹) = ∅ → Lim dom recs(𝐹))
141tfrlem13 8221 . . . . 5 ¬ recs(𝐹) ∈ V
15 simpr 485 . . . . . . . . . 10 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → dom recs(𝐹) = suc 𝑧)
16 df-suc 6272 . . . . . . . . . 10 suc 𝑧 = (𝑧 ∪ {𝑧})
1715, 16eqtrdi 2794 . . . . . . . . 9 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → dom recs(𝐹) = (𝑧 ∪ {𝑧}))
1817reseq2d 5891 . . . . . . . 8 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → (recs(𝐹) ↾ dom recs(𝐹)) = (recs(𝐹) ↾ (𝑧 ∪ {𝑧})))
191tfrlem6 8213 . . . . . . . . 9 Rel recs(𝐹)
20 resdm 5936 . . . . . . . . 9 (Rel recs(𝐹) → (recs(𝐹) ↾ dom recs(𝐹)) = recs(𝐹))
2119, 20ax-mp 5 . . . . . . . 8 (recs(𝐹) ↾ dom recs(𝐹)) = recs(𝐹)
22 resundi 5905 . . . . . . . 8 (recs(𝐹) ↾ (𝑧 ∪ {𝑧})) = ((recs(𝐹) ↾ 𝑧) ∪ (recs(𝐹) ↾ {𝑧}))
2318, 21, 223eqtr3g 2801 . . . . . . 7 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → recs(𝐹) = ((recs(𝐹) ↾ 𝑧) ∪ (recs(𝐹) ↾ {𝑧})))
24 vex 3436 . . . . . . . . . . 11 𝑧 ∈ V
2524sucid 6345 . . . . . . . . . 10 𝑧 ∈ suc 𝑧
2625, 15eleqtrrid 2846 . . . . . . . . 9 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → 𝑧 ∈ dom recs(𝐹))
271tfrlem9a 8217 . . . . . . . . 9 (𝑧 ∈ dom recs(𝐹) → (recs(𝐹) ↾ 𝑧) ∈ V)
2826, 27syl 17 . . . . . . . 8 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → (recs(𝐹) ↾ 𝑧) ∈ V)
29 snex 5354 . . . . . . . . 9 {⟨𝑧, (recs(𝐹)‘𝑧)⟩} ∈ V
301tfrlem7 8214 . . . . . . . . . 10 Fun recs(𝐹)
31 funressn 7031 . . . . . . . . . 10 (Fun recs(𝐹) → (recs(𝐹) ↾ {𝑧}) ⊆ {⟨𝑧, (recs(𝐹)‘𝑧)⟩})
3230, 31ax-mp 5 . . . . . . . . 9 (recs(𝐹) ↾ {𝑧}) ⊆ {⟨𝑧, (recs(𝐹)‘𝑧)⟩}
3329, 32ssexi 5246 . . . . . . . 8 (recs(𝐹) ↾ {𝑧}) ∈ V
34 unexg 7599 . . . . . . . 8 (((recs(𝐹) ↾ 𝑧) ∈ V ∧ (recs(𝐹) ↾ {𝑧}) ∈ V) → ((recs(𝐹) ↾ 𝑧) ∪ (recs(𝐹) ↾ {𝑧})) ∈ V)
3528, 33, 34sylancl 586 . . . . . . 7 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → ((recs(𝐹) ↾ 𝑧) ∪ (recs(𝐹) ↾ {𝑧})) ∈ V)
3623, 35eqeltrd 2839 . . . . . 6 ((𝑧 ∈ On ∧ dom recs(𝐹) = suc 𝑧) → recs(𝐹) ∈ V)
3736rexlimiva 3210 . . . . 5 (∃𝑧 ∈ On dom recs(𝐹) = suc 𝑧 → recs(𝐹) ∈ V)
3814, 37mto 196 . . . 4 ¬ ∃𝑧 ∈ On dom recs(𝐹) = suc 𝑧
3938pm2.21i 119 . . 3 (∃𝑧 ∈ On dom recs(𝐹) = suc 𝑧 → Lim dom recs(𝐹))
40 id 22 . . 3 (Lim dom recs(𝐹) → Lim dom recs(𝐹))
4113, 39, 403jaoi 1426 . 2 ((dom recs(𝐹) = ∅ ∨ ∃𝑧 ∈ On dom recs(𝐹) = suc 𝑧 ∨ Lim dom recs(𝐹)) → Lim dom recs(𝐹))
424, 41ax-mp 5 1 Lim dom recs(𝐹)
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 396  w3o 1085   = wceq 1539  wcel 2106  {cab 2715  wral 3064  wrex 3065  Vcvv 3432  cun 3885  wss 3887  c0 4256  {csn 4561  cop 4567  dom cdm 5589  cres 5591  Rel wrel 5594  Ord word 6265  Oncon0 6266  Lim wlim 6267  suc csuc 6268  Fun wfun 6427   Fn wfn 6428  cfv 6433  recscrecs 8201
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202
This theorem is referenced by:  tfr1a  8225
  Copyright terms: Public domain W3C validator