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

Theorem frmdplusg 19059
Description: The monoid operation of a free monoid. (Contributed by Mario Carneiro, 27-Sep-2015.) (Revised by Mario Carneiro, 27-Feb-2016.) (Proof shortened by AV, 6-Nov-2024.)
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 19057 . . . . . 6 (𝐼 ∈ V → 𝐵 = Word 𝐼)
5 eqid 2760 . . . . . 6 ( ++ ↾ (𝐵 × 𝐵)) = ( ++ ↾ (𝐵 × 𝐵))
62, 4, 5frmdval 19056 . . . . 5 (𝐼 ∈ V → 𝑀 = {⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩})
76fveq2d 6894 . . . 4 (𝐼 ∈ V → (+g‘𝑀) = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
81, 7eqtrid 2807 . . 3 (𝐼 ∈ V → + = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
9 wrdexg 14676 . . . 4 (𝐼 ∈ V → Word 𝐼 ∈ V)
10 ccatfn 14724 . . . . . . 7 ++ Fn (V × V)
11 xpss 5667 . . . . . . 7 (𝐵 × 𝐵) ⊆ (V × V)
12 fnssres 6667 . . . . . . 7 (( ++ Fn (V × V) ∧ (𝐵 × 𝐵) ⊆ (V × V)) → ( ++ ↾ (𝐵 × 𝐵)) Fn (𝐵 × 𝐵))
1310, 11, 12mp2an 705 . . . . . 6 ( ++ ↾ (𝐵 × 𝐵)) Fn (𝐵 × 𝐵)
14 ovres 7590 . . . . . . . 8 ((𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) = (𝑥 ++ 𝑦))
152, 3frmdelbas 19058 . . . . . . . . 9 (𝑥 ∈ 𝐵 → 𝑥 ∈ Word 𝐼)
162, 3frmdelbas 19058 . . . . . . . . 9 (𝑦 ∈ 𝐵 → 𝑦 ∈ Word 𝐼)
17 ccatcl 14726 . . . . . . . . 9 ((𝑥 ∈ Word 𝐼 ∧ 𝑦 ∈ Word 𝐼) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
1815, 16, 17syl2an 608 . . . . . . . 8 ((𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
1914, 18eqeltrd 2860 . . . . . . 7 ((𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) ∈ Word 𝐼)
2019rgen2 3202 . . . . . 6 ∀𝑥 ∈ 𝐵 ∀𝑦 ∈ 𝐵 (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) ∈ Word 𝐼
21 ffnov 7550 . . . . . 6 (( ++ ↾ (𝐵 × 𝐵)):(𝐵 × 𝐵)⟶Word 𝐼 ↔ (( ++ ↾ (𝐵 × 𝐵)) Fn (𝐵 × 𝐵) ∧ ∀𝑥 ∈ 𝐵 ∀𝑦 ∈ 𝐵 (𝑥( ++ ↾ (𝐵 × 𝐵))𝑦) ∈ Word 𝐼))
2213, 20, 21mpbir2an 724 . . . . 5 ( ++ ↾ (𝐵 × 𝐵)):(𝐵 × 𝐵)⟶Word 𝐼
233fvexi 6904 . . . . . 6 𝐵 ∈ V
2423, 23xpex 7771 . . . . 5 (𝐵 × 𝐵) ∈ V
25 fex2 7952 . . . . 5 ((( ++ ↾ (𝐵 × 𝐵)):(𝐵 × 𝐵)⟶Word 𝐼 ∧ (𝐵 × 𝐵) ∈ V ∧ Word 𝐼 ∈ V) → ( ++ ↾ (𝐵 × 𝐵)) ∈ V)
2622, 24, 25mp3an12 1480 . . . 4 (Word 𝐼 ∈ V → ( ++ ↾ (𝐵 × 𝐵)) ∈ V)
27 eqid 2760 . . . . 5 {⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩} = {⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}
2827grpplusg 17470 . . . 4 (( ++ ↾ (𝐵 × 𝐵)) ∈ V → ( ++ ↾ (𝐵 × 𝐵)) = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
299, 26, 283syl 19 . . 3 (𝐼 ∈ V → ( ++ ↾ (𝐵 × 𝐵)) = (+g‘{⟨(Base‘ndx), 𝐵⟩, ⟨(+g‘ndx), ( ++ ↾ (𝐵 × 𝐵))⟩}))
308, 29eqtr4d 2798 . 2 (𝐼 ∈ V → + = ( ++ ↾ (𝐵 × 𝐵)))
31 fvprc 6882 . . . . . . 7 (¬ 𝐼 ∈ V → (freeMnd‘𝐼) = ∅)
322, 31eqtrid 2807 . . . . . 6 (¬ 𝐼 ∈ V → 𝑀 = ∅)
3332fveq2d 6894 . . . . 5 (¬ 𝐼 ∈ V → (+g‘𝑀) = (+g‘∅))
341, 33eqtrid 2807 . . . 4 (¬ 𝐼 ∈ V → + = (+g‘∅))
35 res0 5975 . . . . 5 ( ++ ↾ ∅) = ∅
36 plusgid 17464 . . . . . 6 +g = Slot (+g‘ndx)
3736str0 17376 . . . . 5 ∅ = (+g‘∅)
3835, 37eqtr2i 2784 . . . 4 (+g‘∅) = ( ++ ↾ ∅)
3934, 38eqtrdi 2811 . . 3 (¬ 𝐼 ∈ V → + = ( ++ ↾ ∅))
4032fveq2d 6894 . . . . . . 7 (¬ 𝐼 ∈ V → (Base‘𝑀) = (Base‘∅))
41 base0 17401 . . . . . . 7 ∅ = (Base‘∅)
4240, 3, 413eqtr4g 2820 . . . . . 6 (¬ 𝐼 ∈ V → 𝐵 = ∅)
4342xpeq2d 5681 . . . . 5 (¬ 𝐼 ∈ V → (𝐵 × 𝐵) = (𝐵 × ∅))
44 xp0 5752 . . . . 5 (𝐵 × ∅) = ∅
4543, 44eqtrdi 2811 . . . 4 (¬ 𝐼 ∈ V → (𝐵 × 𝐵) = ∅)
4645reseq2d 5971 . . 3 (¬ 𝐼 ∈ V → ( ++ ↾ (𝐵 × 𝐵)) = ( ++ ↾ ∅))
4739, 46eqtr4d 2798 . 2 (¬ 𝐼 ∈ V → + = ( ++ ↾ (𝐵 × 𝐵)))
4830, 47pm2.61i 184 1 + = ( ++ ↾ (𝐵 × 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   = wceq 1569   ∈ wcel 2144  ∀wral 3076  Vcvv 3450   ⊆ wss 3896  ∅c0 4277  {cpr 4586  ⟨cop 4834   × cxp 5649   ↾ cres 5653   Fn wfn 6538  ⟶wf 6539  ‘cfv 6543  (class class class)co 7424  Word cword 14665   ++ cconcat 14722  ndxcnx 17380  Basecbs 17396  +gcplusg 17437  freeMndcfrmd 19052
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5327  ax-pr 5391  ax-un 7755  ax-cnex 11263  ax-resscn 11264  ax-1cn 11265  ax-icn 11266  ax-addcl 11267  ax-addrcl 11268  ax-mulcl 11269  ax-mulrcl 11270  ax-mulcom 11271  ax-addass 11272  ax-mulass 11273  ax-distr 11274  ax-i2m1 11275  ax-1ne0 11276  ax-1rid 11277  ax-rnegex 11278  ax-rrecex 11279  ax-cnre 11280  ax-pre-lttri 11281  ax-pre-lttrn 11282  ax-pre-ltadd 11283  ax-pre-mulgt0 11284
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3848  df-ss 3897  df-pss 4013  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-int 4907  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6307  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6497  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7381  df-ov 7427  df-oprab 7428  df-mpo 7429  df-om 7882  df-1st 8005  df-2nd 8006  df-frecs 8307  df-wrecs 8338  df-recs 8387  df-rdg 8426  df-1o 8484  df-er 8725  df-map 8857  df-en 8982  df-dom 8983  df-sdom 8984  df-fin 8985  df-card 10027  df-pnf 11352  df-mnf 11353  df-xr 11354  df-ltxr 11355  df-le 11356  df-sub 11550  df-neg 11551  df-nn 12343  df-2 12412  df-n0 12614  df-z 12701  df-uz 12973  df-fz 13647  df-fzo 13796  df-hash 14482  df-word 14666  df-concat 14723  df-struct 17334  df-slot 17369  df-ndx 17381  df-base 17397  df-plusg 17450  df-frmd 19054
This theorem is used by:  frmdadd  19060
  Copyright terms: Public domain W3C validator