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 33387
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 33383 . . 3 seqstr = (𝑚 ∈ V, 𝑓 ∈ V ↦ (𝑚 ∪ (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})))))
21a1i 11 . 2 (𝜑 → seqstr = (𝑚 ∈ V, 𝑓 ∈ V ↦ (𝑚 ∪ (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}))))))
3 simprl 770 . . 3 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → 𝑚 = 𝑀)
43fveq2d 6896 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (♯‘𝑚) = (♯‘𝑀))
5 simp1rr 1240 . . . . . . . . 9 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → 𝑓 = 𝐹)
65fveq1d 6894 . . . . . . . 8 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑓𝑥) = (𝐹𝑥))
76s1eqd 14551 . . . . . . 7 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → ⟨“(𝑓𝑥)”⟩ = ⟨“(𝐹𝑥)”⟩)
87oveq2d 7425 . . . . . 6 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 ++ ⟨“(𝑓𝑥)”⟩) = (𝑥 ++ ⟨“(𝐹𝑥)”⟩))
98mpoeq3dva 7486 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)))
10 simprr 772 . . . . . . . . . 10 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → 𝑓 = 𝐹)
1110, 3fveq12d 6899 . . . . . . . . 9 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑓𝑚) = (𝐹𝑀))
1211s1eqd 14551 . . . . . . . 8 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → ⟨“(𝑓𝑚)”⟩ = ⟨“(𝐹𝑀)”⟩)
133, 12oveq12d 7427 . . . . . . 7 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑚 ++ ⟨“(𝑓𝑚)”⟩) = (𝑀 ++ ⟨“(𝐹𝑀)”⟩))
1413sneqd 4641 . . . . . 6 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)} = {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})
1514xpeq2d 5707 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}) = (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))
164, 9, 15seqeq123d 13975 . . . 4 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})) = seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))
1716coeq2d 5863 . . 3 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}))) = (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))))
183, 17uneq12d 4165 . 2 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑚 ∪ (lastS ∘ seq(♯‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})))) = (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
19 sseqval.2 . . 3 (𝜑𝑀 ∈ Word 𝑆)
20 elex 3493 . . 3 (𝑀 ∈ Word 𝑆𝑀 ∈ V)
2119, 20syl 17 . 2 (𝜑𝑀 ∈ V)
22 sseqval.4 . . 3 (𝜑𝐹:𝑊𝑆)
23 sseqval.3 . . . 4 𝑊 = (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀))))
24 sseqval.1 . . . . 5 (𝜑𝑆 ∈ V)
25 wrdexg 14474 . . . . 5 (𝑆 ∈ V → Word 𝑆 ∈ V)
26 inex1g 5320 . . . . 5 (Word 𝑆 ∈ V → (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀)))) ∈ V)
2724, 25, 263syl 18 . . . 4 (𝜑 → (Word 𝑆 ∩ (♯ “ (ℤ‘(♯‘𝑀)))) ∈ V)
2823, 27eqeltrid 2838 . . 3 (𝜑𝑊 ∈ V)
2922, 28fexd 7229 . 2 (𝜑𝐹 ∈ V)
30 df-lsw 14513 . . . . . 6 lastS = (𝑥 ∈ V ↦ (𝑥‘((♯‘𝑥) − 1)))
3130funmpt2 6588 . . . . 5 Fun lastS
3231a1i 11 . . . 4 (𝜑 → Fun lastS)
33 seqex 13968 . . . . 5 seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V
3433a1i 11 . . . 4 (𝜑 → seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V)
35 cofunexg 7935 . . . 4 ((Fun lastS ∧ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V) → (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V)
3632, 34, 35syl2anc 585 . . 3 (𝜑 → (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V)
37 unexg 7736 . . 3 ((𝑀 ∈ V ∧ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V) → (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))) ∈ V)
3821, 36, 37syl2anc 585 . 2 (𝜑 → (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))) ∈ V)
392, 18, 21, 29, 38ovmpod 7560 1 (𝜑 → (𝑀seqstr𝐹) = (𝑀 ∪ (lastS ∘ seq(♯‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397  w3a 1088   = wceq 1542  wcel 2107  Vcvv 3475  cun 3947  cin 3948  {csn 4629   × cxp 5675  ccnv 5676  cima 5680  ccom 5681  Fun wfun 6538  wf 6540  cfv 6544  (class class class)co 7409  cmpo 7411  1c1 11111  cmin 11444  0cn0 12472  cuz 12822  seqcseq 13966  chash 14290  Word cword 14464  lastSclsw 14512   ++ cconcat 14520  ⟨“cs1 14545  seqstrcsseq 33382
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 2704  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-un 7725  ax-inf2 9636  ax-cnex 11166  ax-1cn 11168  ax-addcl 11170
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 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-ov 7412  df-oprab 7413  df-mpo 7414  df-om 7856  df-2nd 7976  df-frecs 8266  df-wrecs 8297  df-recs 8371  df-rdg 8410  df-map 8822  df-nn 12213  df-n0 12473  df-seq 13967  df-word 14465  df-lsw 14513  df-s1 14546  df-sseq 33383
This theorem is referenced by:  sseqfv1  33388  sseqfn  33389  sseqf  33391  sseqfv2  33393
  Copyright terms: Public domain W3C validator