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

Theorem seqomlem4 8178
Description: Lemma for seqω. (Contributed by Stefan O'Rear, 1-Nov-2014.) (Revised by Mario Carneiro, 23-Jun-2015.)
Hypothesis
Ref Expression
seqomlem.a 𝑄 = rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)
Assertion
Ref Expression
seqomlem4 (𝐴 ∈ ω → ((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)))
Distinct variable groups:   𝑄,𝑖,𝑣   𝐴,𝑖,𝑣   𝑖,𝐹,𝑣
Allowed substitution hints:   𝐼(𝑣,𝑖)

Proof of Theorem seqomlem4
StepHypRef Expression
1 peano2 7657 . . . . . . 7 (𝐴 ∈ ω → suc 𝐴 ∈ ω)
21fvresd 6726 . . . . . 6 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘suc 𝐴) = (𝑄‘suc 𝐴))
3 frsuc 8161 . . . . . . . 8 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘suc 𝐴) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴)))
41fvresd 6726 . . . . . . . . 9 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘suc 𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘suc 𝐴))
5 seqomlem.a . . . . . . . . . 10 𝑄 = rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)
65fveq1i 6707 . . . . . . . . 9 (𝑄‘suc 𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘suc 𝐴)
74, 6eqtr4di 2792 . . . . . . . 8 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘suc 𝐴) = (𝑄‘suc 𝐴))
8 fvres 6725 . . . . . . . . . 10 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘𝐴))
95fveq1i 6707 . . . . . . . . . 10 (𝑄𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘𝐴)
108, 9eqtr4di 2792 . . . . . . . . 9 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴) = (𝑄𝐴))
1110fveq2d 6710 . . . . . . . 8 (𝐴 ∈ ω → ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴)) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘(𝑄𝐴)))
123, 7, 113eqtr3d 2782 . . . . . . 7 (𝐴 ∈ ω → (𝑄‘suc 𝐴) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘(𝑄𝐴)))
135seqomlem1 8175 . . . . . . . 8 (𝐴 ∈ ω → (𝑄𝐴) = ⟨𝐴, (2nd ‘(𝑄𝐴))⟩)
1413fveq2d 6710 . . . . . . 7 (𝐴 ∈ ω → ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘(𝑄𝐴)) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘⟨𝐴, (2nd ‘(𝑄𝐴))⟩))
15 df-ov 7205 . . . . . . . 8 (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘⟨𝐴, (2nd ‘(𝑄𝐴))⟩)
16 fvex 6719 . . . . . . . . . 10 (2nd ‘(𝑄𝐴)) ∈ V
17 suceq 6267 . . . . . . . . . . . 12 (𝑖 = 𝐴 → suc 𝑖 = suc 𝐴)
18 oveq1 7209 . . . . . . . . . . . 12 (𝑖 = 𝐴 → (𝑖𝐹𝑣) = (𝐴𝐹𝑣))
1917, 18opeq12d 4782 . . . . . . . . . . 11 (𝑖 = 𝐴 → ⟨suc 𝑖, (𝑖𝐹𝑣)⟩ = ⟨suc 𝐴, (𝐴𝐹𝑣)⟩)
20 oveq2 7210 . . . . . . . . . . . 12 (𝑣 = (2nd ‘(𝑄𝐴)) → (𝐴𝐹𝑣) = (𝐴𝐹(2nd ‘(𝑄𝐴))))
2120opeq2d 4781 . . . . . . . . . . 11 (𝑣 = (2nd ‘(𝑄𝐴)) → ⟨suc 𝐴, (𝐴𝐹𝑣)⟩ = ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩)
22 eqid 2734 . . . . . . . . . . 11 (𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩) = (𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)
23 opex 5337 . . . . . . . . . . 11 ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩ ∈ V
2419, 21, 22, 23ovmpo 7358 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ (2nd ‘(𝑄𝐴)) ∈ V) → (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩)
2516, 24mpan2 691 . . . . . . . . 9 (𝐴 ∈ ω → (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩)
26 fvres 6725 . . . . . . . . . . . . . . . . 17 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘𝐴) = (𝑄𝐴))
2726, 13eqtrd 2774 . . . . . . . . . . . . . . . 16 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘𝐴) = ⟨𝐴, (2nd ‘(𝑄𝐴))⟩)
28 frfnom 8159 . . . . . . . . . . . . . . . . . 18 (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω) Fn ω
295reseq1i 5836 . . . . . . . . . . . . . . . . . . 19 (𝑄 ↾ ω) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)
3029fneq1i 6465 . . . . . . . . . . . . . . . . . 18 ((𝑄 ↾ ω) Fn ω ↔ (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω) Fn ω)
3128, 30mpbir 234 . . . . . . . . . . . . . . . . 17 (𝑄 ↾ ω) Fn ω
32 fnfvelrn 6890 . . . . . . . . . . . . . . . . 17 (((𝑄 ↾ ω) Fn ω ∧ 𝐴 ∈ ω) → ((𝑄 ↾ ω)‘𝐴) ∈ ran (𝑄 ↾ ω))
3331, 32mpan 690 . . . . . . . . . . . . . . . 16 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘𝐴) ∈ ran (𝑄 ↾ ω))
3427, 33eqeltrrd 2835 . . . . . . . . . . . . . . 15 (𝐴 ∈ ω → ⟨𝐴, (2nd ‘(𝑄𝐴))⟩ ∈ ran (𝑄 ↾ ω))
35 df-ima 5553 . . . . . . . . . . . . . . 15 (𝑄 “ ω) = ran (𝑄 ↾ ω)
3634, 35eleqtrrdi 2845 . . . . . . . . . . . . . 14 (𝐴 ∈ ω → ⟨𝐴, (2nd ‘(𝑄𝐴))⟩ ∈ (𝑄 “ ω))
37 df-br 5044 . . . . . . . . . . . . . 14 (𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴)) ↔ ⟨𝐴, (2nd ‘(𝑄𝐴))⟩ ∈ (𝑄 “ ω))
3836, 37sylibr 237 . . . . . . . . . . . . 13 (𝐴 ∈ ω → 𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴)))
395seqomlem2 8176 . . . . . . . . . . . . . 14 (𝑄 “ ω) Fn ω
40 fnbrfvb 6754 . . . . . . . . . . . . . 14 (((𝑄 “ ω) Fn ω ∧ 𝐴 ∈ ω) → (((𝑄 “ ω)‘𝐴) = (2nd ‘(𝑄𝐴)) ↔ 𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴))))
4139, 40mpan 690 . . . . . . . . . . . . 13 (𝐴 ∈ ω → (((𝑄 “ ω)‘𝐴) = (2nd ‘(𝑄𝐴)) ↔ 𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴))))
4238, 41mpbird 260 . . . . . . . . . . . 12 (𝐴 ∈ ω → ((𝑄 “ ω)‘𝐴) = (2nd ‘(𝑄𝐴)))
4342eqcomd 2740 . . . . . . . . . . 11 (𝐴 ∈ ω → (2nd ‘(𝑄𝐴)) = ((𝑄 “ ω)‘𝐴))
4443oveq2d 7218 . . . . . . . . . 10 (𝐴 ∈ ω → (𝐴𝐹(2nd ‘(𝑄𝐴))) = (𝐴𝐹((𝑄 “ ω)‘𝐴)))
4544opeq2d 4781 . . . . . . . . 9 (𝐴 ∈ ω → ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩ = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
4625, 45eqtrd 2774 . . . . . . . 8 (𝐴 ∈ ω → (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
4715, 46eqtr3id 2788 . . . . . . 7 (𝐴 ∈ ω → ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘⟨𝐴, (2nd ‘(𝑄𝐴))⟩) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
4812, 14, 473eqtrd 2778 . . . . . 6 (𝐴 ∈ ω → (𝑄‘suc 𝐴) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
492, 48eqtrd 2774 . . . . 5 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘suc 𝐴) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
50 fnfvelrn 6890 . . . . . 6 (((𝑄 ↾ ω) Fn ω ∧ suc 𝐴 ∈ ω) → ((𝑄 ↾ ω)‘suc 𝐴) ∈ ran (𝑄 ↾ ω))
5131, 1, 50sylancr 590 . . . . 5 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘suc 𝐴) ∈ ran (𝑄 ↾ ω))
5249, 51eqeltrrd 2835 . . . 4 (𝐴 ∈ ω → ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩ ∈ ran (𝑄 ↾ ω))
5352, 35eleqtrrdi 2845 . . 3 (𝐴 ∈ ω → ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩ ∈ (𝑄 “ ω))
54 df-br 5044 . . 3 (suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴)) ↔ ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩ ∈ (𝑄 “ ω))
5553, 54sylibr 237 . 2 (𝐴 ∈ ω → suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴)))
56 fnbrfvb 6754 . . 3 (((𝑄 “ ω) Fn ω ∧ suc 𝐴 ∈ ω) → (((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)) ↔ suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴))))
5739, 1, 56sylancr 590 . 2 (𝐴 ∈ ω → (((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)) ↔ suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴))))
5855, 57mpbird 260 1 (𝐴 ∈ ω → ((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209   = wceq 1543  wcel 2110  Vcvv 3401  c0 4227  cop 4537   class class class wbr 5043   I cid 5443  ran crn 5541  cres 5542  cima 5543  suc csuc 6204   Fn wfn 6364  cfv 6369  (class class class)co 7202  cmpo 7204  ωcom 7633  2nd c2nd 7749  reccrdg 8134
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-sep 5181  ax-nul 5188  ax-pr 5311  ax-un 7512
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-pss 3876  df-nul 4228  df-if 4430  df-pw 4505  df-sn 4532  df-pr 4534  df-tp 4536  df-op 4538  df-uni 4810  df-iun 4896  df-br 5044  df-opab 5106  df-mpt 5125  df-tr 5151  df-id 5444  df-eprel 5449  df-po 5457  df-so 5458  df-fr 5498  df-we 5500  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-pred 6149  df-ord 6205  df-on 6206  df-lim 6207  df-suc 6208  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-f1 6374  df-fo 6375  df-f1o 6376  df-fv 6377  df-ov 7205  df-oprab 7206  df-mpo 7207  df-om 7634  df-2nd 7751  df-wrecs 8036  df-recs 8097  df-rdg 8135
This theorem is referenced by:  seqomsuc  8182
  Copyright terms: Public domain W3C validator