Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sseqval Structured version   Visualization version   GIF version

Theorem sseqval 32355
Description: Value of the strong sequence builder function. The set 𝑊 represents here the words of length greater than or equal to the lenght of the initial sequence 𝑀. (Contributed by Thierry Arnoux, 21-Apr-2019.)
Hypotheses
Ref Expression
sseqval.1 (𝜑𝑆 ∈ V)
sseqval.2 (𝜑𝑀 ∈ Word 𝑆)
sseqval.3 𝑊 = (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀))))
sseqval.4 (𝜑𝐹:𝑊𝑆)
Assertion
Ref Expression
sseqval (𝜑 → (𝑀seqstr𝐹) = (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
Distinct variable groups:   𝑥,𝑦,𝐹   𝑥,𝑀,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝑆(𝑥,𝑦)   𝑊(𝑥,𝑦)

Proof of Theorem sseqval
Dummy variables 𝑓 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-sseq 32351 . . 3 seqstr = (𝑚 ∈ V, 𝑓 ∈ V ↦ (𝑚 ∪ (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})))))
21a1i 11 . 2 (𝜑 → seqstr = (𝑚 ∈ V, 𝑓 ∈ V ↦ (𝑚 ∪ (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}))))))
3 simprl 768 . . 3 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → 𝑚 = 𝑀)
43fveq2d 6778 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (♯‘𝑚) = (♯‘𝑀))
5 simp1rr 1238 . . . . . . . . 9 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → 𝑓 = 𝐹)
65fveq1d 6776 . . . . . . . 8 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑓𝑥) = (𝐹𝑥))
76s1eqd 14306 . . . . . . 7 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → ⟨“(𝑓𝑥)”⟩ = ⟨“(𝐹𝑥)”⟩)
87oveq2d 7291 . . . . . 6 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 ++ ⟨“(𝑓𝑥)”⟩) = (𝑥 ++ ⟨“(𝐹𝑥)”⟩))
98mpoeq3dva 7352 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)))
10 simprr 770 . . . . . . . . . 10 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → 𝑓 = 𝐹)
1110, 3fveq12d 6781 . . . . . . . . 9 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑓𝑚) = (𝐹𝑀))
1211s1eqd 14306 . . . . . . . 8 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → ⟨“(𝑓𝑚)”⟩ = ⟨“(𝐹𝑀)”⟩)
133, 12oveq12d 7293 . . . . . . 7 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑚 ++ ⟨“(𝑓𝑚)”⟩) = (𝑀 ++ ⟨“(𝐹𝑀)”⟩))
1413sneqd 4573 . . . . . 6 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)} = {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})
1514xpeq2d 5619 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}) = (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))
164, 9, 15seqeq123d 13730 . . . 4 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})) = seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))
1716coeq2d 5771 . . 3 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}))) = (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))))
183, 17uneq12d 4098 . 2 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑚 ∪ (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})))) = (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
19 sseqval.2 . . 3 (𝜑𝑀 ∈ Word 𝑆)
20 elex 3450 . . 3 (𝑀 ∈ Word 𝑆𝑀 ∈ V)
2119, 20syl 17 . 2 (𝜑𝑀 ∈ V)
22 sseqval.4 . . 3 (𝜑𝐹:𝑊𝑆)
23 sseqval.3 . . . 4 𝑊 = (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀))))
24 sseqval.1 . . . . 5 (𝜑𝑆 ∈ V)
25 wrdexg 14227 . . . . 5 (𝑆 ∈ V → Word 𝑆 ∈ V)
26 inex1g 5243 . . . . 5 (Word 𝑆 ∈ V → (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀)))) ∈ V)
2724, 25, 263syl 18 . . . 4 (𝜑 → (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀)))) ∈ V)
2823, 27eqeltrid 2843 . . 3 (𝜑𝑊 ∈ V)
2922, 28fexd 7103 . 2 (𝜑𝐹 ∈ V)
30 df-lsw 14266 . . . . . 6 lastS = (𝑥 ∈ V ↦ (𝑥‘((♯‘𝑥) − 1)))
3130funmpt2 6473 . . . . 5 Fun lastS
3231a1i 11 . . . 4 (𝜑 → Fun lastS)
33 seqex 13723 . . . . 5 seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V
3433a1i 11 . . . 4 (𝜑 → seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V)
35 cofunexg 7791 . . . 4 ((Fun lastS ∧ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V) → (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V)
3632, 34, 35syl2anc 584 . . 3 (𝜑 → (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V)
37 unexg 7599 . . 3 ((𝑀 ∈ V ∧ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V) → (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))) ∈ V)
3821, 36, 37syl2anc 584 . 2 (𝜑 → (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))) ∈ V)
392, 18, 21, 29, 38ovmpod 7425 1 (𝜑 → (𝑀seqstr𝐹) = (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wcel 2106  Vcvv 3432  cun 3885  cin 3886  {csn 4561   × cxp 5587  ccnv 5588  cima 5592  ccom 5593  Fun wfun 6427  wf 6429  cfv 6433  (class class class)co 7275  cmpo 7277  1c1 10872  cmin 11205  0cn0 12233  cuz 12582  seqcseq 13721  chash 14044  Word cword 14217  lastSclsw 14265   ++ cconcat 14273  ⟨“cs1 14300  seqstrcsseq 32350
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-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-inf2 9399  ax-cnex 10927  ax-1cn 10929  ax-addcl 10931
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-oprab 7279  df-mpo 7280  df-om 7713  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-map 8617  df-nn 11974  df-n0 12234  df-seq 13722  df-word 14218  df-lsw 14266  df-s1 14301  df-sseq 32351
This theorem is referenced by:  sseqfv1  32356  sseqfn  32357  sseqf  32359  sseqfv2  32361
  Copyright terms: Public domain W3C validator