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

Theorem seqomlem4 8400
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 7828 . . . . . . 7 (𝐴 ∈ ω → suc 𝐴 ∈ ω)
21fvresd 6863 . . . . . 6 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘suc 𝐴) = (𝑄‘suc 𝐴))
3 frsuc 8384 . . . . . . . 8 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘suc 𝐴) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴)))
41fvresd 6863 . . . . . . . . 9 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘suc 𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘suc 𝐴))
5 seqomlem.a . . . . . . . . . 10 𝑄 = rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)
65fveq1i 6844 . . . . . . . . 9 (𝑄‘suc 𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘suc 𝐴)
74, 6eqtr4di 2795 . . . . . . . 8 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘suc 𝐴) = (𝑄‘suc 𝐴))
8 fvres 6862 . . . . . . . . . 10 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘𝐴))
95fveq1i 6844 . . . . . . . . . 10 (𝑄𝐴) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩)‘𝐴)
108, 9eqtr4di 2795 . . . . . . . . 9 (𝐴 ∈ ω → ((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴) = (𝑄𝐴))
1110fveq2d 6847 . . . . . . . 8 (𝐴 ∈ ω → ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘((rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)‘𝐴)) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘(𝑄𝐴)))
123, 7, 113eqtr3d 2785 . . . . . . 7 (𝐴 ∈ ω → (𝑄‘suc 𝐴) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘(𝑄𝐴)))
135seqomlem1 8397 . . . . . . . 8 (𝐴 ∈ ω → (𝑄𝐴) = ⟨𝐴, (2nd ‘(𝑄𝐴))⟩)
1413fveq2d 6847 . . . . . . 7 (𝐴 ∈ ω → ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘(𝑄𝐴)) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘⟨𝐴, (2nd ‘(𝑄𝐴))⟩))
15 df-ov 7361 . . . . . . . 8 (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘⟨𝐴, (2nd ‘(𝑄𝐴))⟩)
16 fvex 6856 . . . . . . . . . 10 (2nd ‘(𝑄𝐴)) ∈ V
17 suceq 6384 . . . . . . . . . . . 12 (𝑖 = 𝐴 → suc 𝑖 = suc 𝐴)
18 oveq1 7365 . . . . . . . . . . . 12 (𝑖 = 𝐴 → (𝑖𝐹𝑣) = (𝐴𝐹𝑣))
1917, 18opeq12d 4839 . . . . . . . . . . 11 (𝑖 = 𝐴 → ⟨suc 𝑖, (𝑖𝐹𝑣)⟩ = ⟨suc 𝐴, (𝐴𝐹𝑣)⟩)
20 oveq2 7366 . . . . . . . . . . . 12 (𝑣 = (2nd ‘(𝑄𝐴)) → (𝐴𝐹𝑣) = (𝐴𝐹(2nd ‘(𝑄𝐴))))
2120opeq2d 4838 . . . . . . . . . . 11 (𝑣 = (2nd ‘(𝑄𝐴)) → ⟨suc 𝐴, (𝐴𝐹𝑣)⟩ = ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩)
22 eqid 2737 . . . . . . . . . . 11 (𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩) = (𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)
23 opex 5422 . . . . . . . . . . 11 ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩ ∈ V
2419, 21, 22, 23ovmpo 7516 . . . . . . . . . 10 ((𝐴 ∈ ω ∧ (2nd ‘(𝑄𝐴)) ∈ V) → (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩)
2516, 24mpan2 690 . . . . . . . . 9 (𝐴 ∈ ω → (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩)
26 fvres 6862 . . . . . . . . . . . . . . . . 17 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘𝐴) = (𝑄𝐴))
2726, 13eqtrd 2777 . . . . . . . . . . . . . . . 16 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘𝐴) = ⟨𝐴, (2nd ‘(𝑄𝐴))⟩)
28 frfnom 8382 . . . . . . . . . . . . . . . . . 18 (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω) Fn ω
295reseq1i 5934 . . . . . . . . . . . . . . . . . . 19 (𝑄 ↾ ω) = (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω)
3029fneq1i 6600 . . . . . . . . . . . . . . . . . 18 ((𝑄 ↾ ω) Fn ω ↔ (rec((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩), ⟨∅, ( I ‘𝐼)⟩) ↾ ω) Fn ω)
3128, 30mpbir 230 . . . . . . . . . . . . . . . . 17 (𝑄 ↾ ω) Fn ω
32 fnfvelrn 7032 . . . . . . . . . . . . . . . . 17 (((𝑄 ↾ ω) Fn ω ∧ 𝐴 ∈ ω) → ((𝑄 ↾ ω)‘𝐴) ∈ ran (𝑄 ↾ ω))
3331, 32mpan 689 . . . . . . . . . . . . . . . 16 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘𝐴) ∈ ran (𝑄 ↾ ω))
3427, 33eqeltrrd 2839 . . . . . . . . . . . . . . 15 (𝐴 ∈ ω → ⟨𝐴, (2nd ‘(𝑄𝐴))⟩ ∈ ran (𝑄 ↾ ω))
35 df-ima 5647 . . . . . . . . . . . . . . 15 (𝑄 “ ω) = ran (𝑄 ↾ ω)
3634, 35eleqtrrdi 2849 . . . . . . . . . . . . . 14 (𝐴 ∈ ω → ⟨𝐴, (2nd ‘(𝑄𝐴))⟩ ∈ (𝑄 “ ω))
37 df-br 5107 . . . . . . . . . . . . . 14 (𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴)) ↔ ⟨𝐴, (2nd ‘(𝑄𝐴))⟩ ∈ (𝑄 “ ω))
3836, 37sylibr 233 . . . . . . . . . . . . 13 (𝐴 ∈ ω → 𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴)))
395seqomlem2 8398 . . . . . . . . . . . . . 14 (𝑄 “ ω) Fn ω
40 fnbrfvb 6896 . . . . . . . . . . . . . 14 (((𝑄 “ ω) Fn ω ∧ 𝐴 ∈ ω) → (((𝑄 “ ω)‘𝐴) = (2nd ‘(𝑄𝐴)) ↔ 𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴))))
4139, 40mpan 689 . . . . . . . . . . . . 13 (𝐴 ∈ ω → (((𝑄 “ ω)‘𝐴) = (2nd ‘(𝑄𝐴)) ↔ 𝐴(𝑄 “ ω)(2nd ‘(𝑄𝐴))))
4238, 41mpbird 257 . . . . . . . . . . . 12 (𝐴 ∈ ω → ((𝑄 “ ω)‘𝐴) = (2nd ‘(𝑄𝐴)))
4342eqcomd 2743 . . . . . . . . . . 11 (𝐴 ∈ ω → (2nd ‘(𝑄𝐴)) = ((𝑄 “ ω)‘𝐴))
4443oveq2d 7374 . . . . . . . . . 10 (𝐴 ∈ ω → (𝐴𝐹(2nd ‘(𝑄𝐴))) = (𝐴𝐹((𝑄 “ ω)‘𝐴)))
4544opeq2d 4838 . . . . . . . . 9 (𝐴 ∈ ω → ⟨suc 𝐴, (𝐴𝐹(2nd ‘(𝑄𝐴)))⟩ = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
4625, 45eqtrd 2777 . . . . . . . 8 (𝐴 ∈ ω → (𝐴(𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)(2nd ‘(𝑄𝐴))) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
4715, 46eqtr3id 2791 . . . . . . 7 (𝐴 ∈ ω → ((𝑖 ∈ ω, 𝑣 ∈ V ↦ ⟨suc 𝑖, (𝑖𝐹𝑣)⟩)‘⟨𝐴, (2nd ‘(𝑄𝐴))⟩) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
4812, 14, 473eqtrd 2781 . . . . . 6 (𝐴 ∈ ω → (𝑄‘suc 𝐴) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
492, 48eqtrd 2777 . . . . 5 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘suc 𝐴) = ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩)
50 fnfvelrn 7032 . . . . . 6 (((𝑄 ↾ ω) Fn ω ∧ suc 𝐴 ∈ ω) → ((𝑄 ↾ ω)‘suc 𝐴) ∈ ran (𝑄 ↾ ω))
5131, 1, 50sylancr 588 . . . . 5 (𝐴 ∈ ω → ((𝑄 ↾ ω)‘suc 𝐴) ∈ ran (𝑄 ↾ ω))
5249, 51eqeltrrd 2839 . . . 4 (𝐴 ∈ ω → ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩ ∈ ran (𝑄 ↾ ω))
5352, 35eleqtrrdi 2849 . . 3 (𝐴 ∈ ω → ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩ ∈ (𝑄 “ ω))
54 df-br 5107 . . 3 (suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴)) ↔ ⟨suc 𝐴, (𝐴𝐹((𝑄 “ ω)‘𝐴))⟩ ∈ (𝑄 “ ω))
5553, 54sylibr 233 . 2 (𝐴 ∈ ω → suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴)))
56 fnbrfvb 6896 . . 3 (((𝑄 “ ω) Fn ω ∧ suc 𝐴 ∈ ω) → (((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)) ↔ suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴))))
5739, 1, 56sylancr 588 . 2 (𝐴 ∈ ω → (((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)) ↔ suc 𝐴(𝑄 “ ω)(𝐴𝐹((𝑄 “ ω)‘𝐴))))
5855, 57mpbird 257 1 (𝐴 ∈ ω → ((𝑄 “ ω)‘suc 𝐴) = (𝐴𝐹((𝑄 “ ω)‘𝐴)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205   = wceq 1542  wcel 2107  Vcvv 3446  c0 4283  cop 4593   class class class wbr 5106   I cid 5531  ran crn 5635  cres 5636  cima 5637  suc csuc 6320   Fn wfn 6492  cfv 6497  (class class class)co 7358  cmpo 7360  ωcom 7803  2nd c2nd 7921  reccrdg 8356
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 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2708  ax-sep 5257  ax-nul 5264  ax-pr 5385  ax-un 7673
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2890  df-ne 2945  df-ral 3066  df-rex 3075  df-reu 3355  df-rab 3409  df-v 3448  df-sbc 3741  df-csb 3857  df-dif 3914  df-un 3916  df-in 3918  df-ss 3928  df-pss 3930  df-nul 4284  df-if 4488  df-pw 4563  df-sn 4588  df-pr 4590  df-op 4594  df-uni 4867  df-iun 4957  df-br 5107  df-opab 5169  df-mpt 5190  df-tr 5224  df-id 5532  df-eprel 5538  df-po 5546  df-so 5547  df-fr 5589  df-we 5591  df-xp 5640  df-rel 5641  df-cnv 5642  df-co 5643  df-dm 5644  df-rn 5645  df-res 5646  df-ima 5647  df-pred 6254  df-ord 6321  df-on 6322  df-lim 6323  df-suc 6324  df-iota 6449  df-fun 6499  df-fn 6500  df-f 6501  df-f1 6502  df-fo 6503  df-f1o 6504  df-fv 6505  df-ov 7361  df-oprab 7362  df-mpo 7363  df-om 7804  df-2nd 7923  df-frecs 8213  df-wrecs 8244  df-recs 8318  df-rdg 8357
This theorem is referenced by:  seqomsuc  8404
  Copyright terms: Public domain W3C validator