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 30578
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 30574 . . 3 seqstr = (𝑚 ∈ V, 𝑓 ∈ V ↦ (𝑚 ∪ ( lastS ∘ seq(#‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})))))
21a1i 11 . 2 (𝜑 → seqstr = (𝑚 ∈ V, 𝑓 ∈ V ↦ (𝑚 ∪ ( lastS ∘ seq(#‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}))))))
3 simprl 809 . . 3 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → 𝑚 = 𝑀)
43fveq2d 6233 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (#‘𝑚) = (#‘𝑀))
5 simp1rr 1147 . . . . . . . . 9 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → 𝑓 = 𝐹)
65fveq1d 6231 . . . . . . . 8 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑓𝑥) = (𝐹𝑥))
76s1eqd 13417 . . . . . . 7 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → ⟨“(𝑓𝑥)”⟩ = ⟨“(𝐹𝑥)”⟩)
87oveq2d 6706 . . . . . 6 (((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) ∧ 𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 ++ ⟨“(𝑓𝑥)”⟩) = (𝑥 ++ ⟨“(𝐹𝑥)”⟩))
98mpt2eq3dva 6761 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)))
10 simprr 811 . . . . . . . . . 10 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → 𝑓 = 𝐹)
1110, 3fveq12d 6235 . . . . . . . . 9 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑓𝑚) = (𝐹𝑀))
1211s1eqd 13417 . . . . . . . 8 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → ⟨“(𝑓𝑚)”⟩ = ⟨“(𝐹𝑀)”⟩)
133, 12oveq12d 6708 . . . . . . 7 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑚 ++ ⟨“(𝑓𝑚)”⟩) = (𝑀 ++ ⟨“(𝐹𝑀)”⟩))
1413sneqd 4222 . . . . . 6 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)} = {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})
1514xpeq2d 5173 . . . . 5 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}) = (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))
164, 9, 15seqeq123d 12850 . . . 4 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → seq(#‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})) = seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))
1716coeq2d 5317 . . 3 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → ( lastS ∘ seq(#‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)}))) = ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))))
183, 17uneq12d 3801 . 2 ((𝜑 ∧ (𝑚 = 𝑀𝑓 = 𝐹)) → (𝑚 ∪ ( lastS ∘ seq(#‘𝑚)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝑓𝑥)”⟩)), (ℕ0 × {(𝑚 ++ ⟨“(𝑓𝑚)”⟩)})))) = (𝑀 ∪ ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
19 sseqval.2 . . 3 (𝜑𝑀 ∈ Word 𝑆)
20 elex 3243 . . 3 (𝑀 ∈ Word 𝑆𝑀 ∈ V)
2119, 20syl 17 . 2 (𝜑𝑀 ∈ V)
22 sseqval.4 . . 3 (𝜑𝐹:𝑊𝑆)
23 sseqval.3 . . . 4 𝑊 = (Word 𝑆 ∩ (# “ (ℤ‘(#‘𝑀))))
24 sseqval.1 . . . . 5 (𝜑𝑆 ∈ V)
25 wrdexg 13347 . . . . 5 (𝑆 ∈ V → Word 𝑆 ∈ V)
26 inex1g 4834 . . . . 5 (Word 𝑆 ∈ V → (Word 𝑆 ∩ (# “ (ℤ‘(#‘𝑀)))) ∈ V)
2724, 25, 263syl 18 . . . 4 (𝜑 → (Word 𝑆 ∩ (# “ (ℤ‘(#‘𝑀)))) ∈ V)
2823, 27syl5eqel 2734 . . 3 (𝜑𝑊 ∈ V)
29 fex 6530 . . 3 ((𝐹:𝑊𝑆𝑊 ∈ V) → 𝐹 ∈ V)
3022, 28, 29syl2anc 694 . 2 (𝜑𝐹 ∈ V)
31 df-lsw 13332 . . . . . 6 lastS = (𝑥 ∈ V ↦ (𝑥‘((#‘𝑥) − 1)))
3231funmpt2 5965 . . . . 5 Fun lastS
3332a1i 11 . . . 4 (𝜑 → Fun lastS )
34 seqex 12843 . . . . 5 seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V
3534a1i 11 . . . 4 (𝜑 → seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V)
36 cofunexg 7172 . . . 4 ((Fun lastS ∧ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})) ∈ V) → ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V)
3733, 35, 36syl2anc 694 . . 3 (𝜑 → ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V)
38 unexg 7001 . . 3 ((𝑀 ∈ V ∧ ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)}))) ∈ V) → (𝑀 ∪ ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))) ∈ V)
3921, 37, 38syl2anc 694 . 2 (𝜑 → (𝑀 ∪ ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))) ∈ V)
402, 18, 21, 30, 39ovmpt2d 6830 1 (𝜑 → (𝑀seqstr𝐹) = (𝑀 ∪ ( lastS ∘ seq(#‘𝑀)((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ++ ⟨“(𝐹𝑥)”⟩)), (ℕ0 × {(𝑀 ++ ⟨“(𝐹𝑀)”⟩)})))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383  w3a 1054   = wceq 1523  wcel 2030  Vcvv 3231  cun 3605  cin 3606  {csn 4210   × cxp 5141  ccnv 5142  cima 5146  ccom 5147  Fun wfun 5920  wf 5922  cfv 5926  (class class class)co 6690  cmpt2 6692  1c1 9975  cmin 10304  0cn0 11330  cuz 11725  seqcseq 12841  #chash 13157  Word cword 13323   lastS clsw 13324   ++ cconcat 13325  ⟨“cs1 13326  seqstrcsseq 30573
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-inf2 8576  ax-cnex 10030  ax-resscn 10031
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1055  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-ral 2946  df-rex 2947  df-reu 2948  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-pss 3623  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-tp 4215  df-op 4217  df-uni 4469  df-iun 4554  df-br 4686  df-opab 4746  df-mpt 4763  df-tr 4786  df-id 5053  df-eprel 5058  df-po 5064  df-so 5065  df-fr 5102  df-we 5104  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-pred 5718  df-ord 5764  df-on 5765  df-lim 5766  df-suc 5767  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-om 7108  df-1st 7210  df-2nd 7211  df-wrecs 7452  df-recs 7513  df-rdg 7551  df-map 7901  df-pm 7902  df-neg 10307  df-z 11416  df-uz 11726  df-fz 12365  df-fzo 12505  df-seq 12842  df-word 13331  df-lsw 13332  df-s1 13334  df-sseq 30574
This theorem is referenced by:  sseqfv1  30579  sseqfn  30580  sseqf  30582  sseqfv2  30584
  Copyright terms: Public domain W3C validator