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

Theorem frmdplusg 17778
Description: The monoid operation of a free monoid. (Contributed by Mario Carneiro, 27-Sep-2015.) (Revised by Mario Carneiro, 27-Feb-2016.)
Hypotheses
Ref Expression
frmdbas.m 𝑀 = (freeMnd‘𝐼)
frmdbas.b 𝐵 = (Base‘𝑀)
frmdplusg.p + = (+g𝑀)
Assertion
Ref Expression
frmdplusg + = ( ++ ↾ (𝐵 × 𝐵))

Proof of Theorem frmdplusg
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frmdplusg.p . . . 4 + = (+g𝑀)
2 frmdbas.m . . . . . 6 𝑀 = (freeMnd‘𝐼)
3 frmdbas.b . . . . . . 7 𝐵 = (Base‘𝑀)
42, 3frmdbas 17776 . . . . . 6 (𝐼 ∈ V → 𝐵 = Word 𝐼)
5 eqid 2778 . . . . . 6 ( ++ ↾ (𝐵 × 𝐵)) = ( ++ ↾ (𝐵 × 𝐵))
62, 4, 5frmdval 17775 . . . . 5 (𝐼 ∈ V → 𝑀 = {⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩})
76fveq2d 6450 . . . 4 (𝐼 ∈ V → (+g𝑀) = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
81, 7syl5eq 2826 . . 3 (𝐼 ∈ V → + = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
9 wrdexg 13609 . . . 4 (𝐼 ∈ V → Word 𝐼 ∈ V)
10 ccatfn 13662 . . . . . . 7 ++ Fn (V × V)
11 xpss 5371 . . . . . . 7 (𝐵 × 𝐵) ⊆ (V × V)
12 fnssres 6250 . . . . . . 7 (( ++ Fn (V × V) ∧ (𝐵 × 𝐵) ⊆ (V × V)) → ( ++ ↾ (𝐵 × 𝐵)) Fn (𝐵 × 𝐵))
1310, 11, 12mp2an 682 . . . . . 6 ( ++ ↾ (𝐵 × 𝐵)) Fn (𝐵 × 𝐵)
14 ovres 7077 . . . . . . . 8 ((𝑥𝐵𝑦𝐵) → (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) = (𝑥 ++ 𝑦))
152, 3frmdelbas 17777 . . . . . . . . 9 (𝑥𝐵𝑥 ∈ Word 𝐼)
162, 3frmdelbas 17777 . . . . . . . . 9 (𝑦𝐵𝑦 ∈ Word 𝐼)
17 ccatcl 13664 . . . . . . . . 9 ((𝑥 ∈ Word 𝐼𝑦 ∈ Word 𝐼) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
1815, 16, 17syl2an 589 . . . . . . . 8 ((𝑥𝐵𝑦𝐵) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
1914, 18eqeltrd 2859 . . . . . . 7 ((𝑥𝐵𝑦𝐵) → (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) ∈ Word 𝐼)
2019rgen2a 3159 . . . . . 6 𝑥𝐵𝑦𝐵 (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) ∈ Word 𝐼
21 ffnov 7041 . . . . . 6 (( ++ ↾ (𝐵 × 𝐵)):(𝐵 × 𝐵)⟶Word 𝐼 ↔ (( ++ ↾ (𝐵 × 𝐵)) Fn (𝐵 × 𝐵) ∧ ∀𝑥𝐵𝑦𝐵 (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) ∈ Word 𝐼))
2213, 20, 21mpbir2an 701 . . . . 5 ( ++ ↾ (𝐵 × 𝐵)):(𝐵 × 𝐵)⟶Word 𝐼
233fvexi 6460 . . . . . 6 𝐵 ∈ V
2423, 23xpex 7240 . . . . 5 (𝐵 × 𝐵) ∈ V
25 fex2 7400 . . . . 5 ((( ++ ↾ (𝐵 × 𝐵)):(𝐵 × 𝐵)⟶Word 𝐼 ∧ (𝐵 × 𝐵) ∈ V ∧ Word 𝐼 ∈ V) → ( ++ ↾ (𝐵 × 𝐵)) ∈ V)
2622, 24, 25mp3an12 1524 . . . 4 (Word 𝐼 ∈ V → ( ++ ↾ (𝐵 × 𝐵)) ∈ V)
27 eqid 2778 . . . . 5 {⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩} = {⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}
2827grpplusg 16384 . . . 4 (( ++ ↾ (𝐵 × 𝐵)) ∈ V → ( ++ ↾ (𝐵 × 𝐵)) = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
299, 26, 283syl 18 . . 3 (𝐼 ∈ V → ( ++ ↾ (𝐵 × 𝐵)) = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
308, 29eqtr4d 2817 . 2 (𝐼 ∈ V → + = ( ++ ↾ (𝐵 × 𝐵)))
31 fvprc 6439 . . . . . . 7 𝐼 ∈ V → (freeMnd‘𝐼) = ∅)
322, 31syl5eq 2826 . . . . . 6 𝐼 ∈ V → 𝑀 = ∅)
3332fveq2d 6450 . . . . 5 𝐼 ∈ V → (+g𝑀) = (+g‘∅))
341, 33syl5eq 2826 . . . 4 𝐼 ∈ V → + = (+g‘∅))
35 res0 5646 . . . . 5 ( ++ ↾ ∅) = ∅
36 df-plusg 16351 . . . . . 6 +g = Slot 2
3736str0 16307 . . . . 5 ∅ = (+g‘∅)
3835, 37eqtr2i 2803 . . . 4 (+g‘∅) = ( ++ ↾ ∅)
3934, 38syl6eq 2830 . . 3 𝐼 ∈ V → + = ( ++ ↾ ∅))
4032fveq2d 6450 . . . . . . 7 𝐼 ∈ V → (Base‘𝑀) = (Base‘∅))
41 base0 16308 . . . . . . 7 ∅ = (Base‘∅)
4240, 3, 413eqtr4g 2839 . . . . . 6 𝐼 ∈ V → 𝐵 = ∅)
4342xpeq2d 5385 . . . . 5 𝐼 ∈ V → (𝐵 × 𝐵) = (𝐵 × ∅))
44 xp0 5806 . . . . 5 (𝐵 × ∅) = ∅
4543, 44syl6eq 2830 . . . 4 𝐼 ∈ V → (𝐵 × 𝐵) = ∅)
4645reseq2d 5642 . . 3 𝐼 ∈ V → ( ++ ↾ (𝐵 × 𝐵)) = ( ++ ↾ ∅))
4739, 46eqtr4d 2817 . 2 𝐼 ∈ V → + = ( ++ ↾ (𝐵 × 𝐵)))
4830, 47pm2.61i 177 1 + = ( ++ ↾ (𝐵 × 𝐵))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 386   = wceq 1601  wcel 2107  wral 3090  Vcvv 3398  wss 3792  c0 4141  {cpr 4400  cop 4404   × cxp 5353  cres 5357   Fn wfn 6130  wf 6131  cfv 6135  (class class class)co 6922  2c2 11430  Word cword 13599   ++ cconcat 13660  ndxcnx 16252  Basecbs 16255  +gcplusg 16338  freeMndcfrmd 17771
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1839  ax-4 1853  ax-5 1953  ax-6 2021  ax-7 2055  ax-8 2109  ax-9 2116  ax-10 2135  ax-11 2150  ax-12 2163  ax-13 2334  ax-ext 2754  ax-rep 5006  ax-sep 5017  ax-nul 5025  ax-pow 5077  ax-pr 5138  ax-un 7226  ax-cnex 10328  ax-resscn 10329  ax-1cn 10330  ax-icn 10331  ax-addcl 10332  ax-addrcl 10333  ax-mulcl 10334  ax-mulrcl 10335  ax-mulcom 10336  ax-addass 10337  ax-mulass 10338  ax-distr 10339  ax-i2m1 10340  ax-1ne0 10341  ax-1rid 10342  ax-rnegex 10343  ax-rrecex 10344  ax-cnre 10345  ax-pre-lttri 10346  ax-pre-lttrn 10347  ax-pre-ltadd 10348  ax-pre-mulgt0 10349
This theorem depends on definitions:  df-bi 199  df-an 387  df-or 837  df-3or 1072  df-3an 1073  df-tru 1605  df-ex 1824  df-nf 1828  df-sb 2012  df-mo 2551  df-eu 2587  df-clab 2764  df-cleq 2770  df-clel 2774  df-nfc 2921  df-ne 2970  df-nel 3076  df-ral 3095  df-rex 3096  df-reu 3097  df-rab 3099  df-v 3400  df-sbc 3653  df-csb 3752  df-dif 3795  df-un 3797  df-in 3799  df-ss 3806  df-pss 3808  df-nul 4142  df-if 4308  df-pw 4381  df-sn 4399  df-pr 4401  df-tp 4403  df-op 4405  df-uni 4672  df-int 4711  df-iun 4755  df-br 4887  df-opab 4949  df-mpt 4966  df-tr 4988  df-id 5261  df-eprel 5266  df-po 5274  df-so 5275  df-fr 5314  df-we 5316  df-xp 5361  df-rel 5362  df-cnv 5363  df-co 5364  df-dm 5365  df-rn 5366  df-res 5367  df-ima 5368  df-pred 5933  df-ord 5979  df-on 5980  df-lim 5981  df-suc 5982  df-iota 6099  df-fun 6137  df-fn 6138  df-f 6139  df-f1 6140  df-fo 6141  df-f1o 6142  df-fv 6143  df-riota 6883  df-ov 6925  df-oprab 6926  df-mpt2 6927  df-om 7344  df-1st 7445  df-2nd 7446  df-wrecs 7689  df-recs 7751  df-rdg 7789  df-1o 7843  df-oadd 7847  df-er 8026  df-map 8142  df-en 8242  df-dom 8243  df-sdom 8244  df-fin 8245  df-card 9098  df-pnf 10413  df-mnf 10414  df-xr 10415  df-ltxr 10416  df-le 10417  df-sub 10608  df-neg 10609  df-nn 11375  df-2 11438  df-n0 11643  df-z 11729  df-uz 11993  df-fz 12644  df-fzo 12785  df-hash 13436  df-word 13600  df-concat 13661  df-struct 16257  df-ndx 16258  df-slot 16259  df-base 16261  df-plusg 16351  df-frmd 17773
This theorem is referenced by:  frmdadd  17779
  Copyright terms: Public domain W3C validator