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

Theorem frmdmnd 17312
Description: A free monoid is a monoid. (Contributed by Mario Carneiro, 27-Sep-2015.) (Revised by Mario Carneiro, 27-Feb-2016.)
Hypothesis
Ref Expression
frmdmnd.m 𝑀 = (freeMnd‘𝐼)
Assertion
Ref Expression
frmdmnd (𝐼𝑉𝑀 ∈ Mnd)

Proof of Theorem frmdmnd
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqidd 2627 . 2 (𝐼𝑉 → (Base‘𝑀) = (Base‘𝑀))
2 eqidd 2627 . 2 (𝐼𝑉 → (+g𝑀) = (+g𝑀))
3 frmdmnd.m . . . . . 6 𝑀 = (freeMnd‘𝐼)
4 eqid 2626 . . . . . 6 (Base‘𝑀) = (Base‘𝑀)
5 eqid 2626 . . . . . 6 (+g𝑀) = (+g𝑀)
63, 4, 5frmdadd 17308 . . . . 5 ((𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)𝑦) = (𝑥 ++ 𝑦))
73, 4frmdelbas 17306 . . . . . 6 (𝑥 ∈ (Base‘𝑀) → 𝑥 ∈ Word 𝐼)
83, 4frmdelbas 17306 . . . . . 6 (𝑦 ∈ (Base‘𝑀) → 𝑦 ∈ Word 𝐼)
9 ccatcl 13293 . . . . . 6 ((𝑥 ∈ Word 𝐼𝑦 ∈ Word 𝐼) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
107, 8, 9syl2an 494 . . . . 5 ((𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀)) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
116, 10eqeltrd 2704 . . . 4 ((𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)𝑦) ∈ Word 𝐼)
12113adant1 1077 . . 3 ((𝐼𝑉𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)𝑦) ∈ Word 𝐼)
133, 4frmdbas 17305 . . . 4 (𝐼𝑉 → (Base‘𝑀) = Word 𝐼)
14133ad2ant1 1080 . . 3 ((𝐼𝑉𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀)) → (Base‘𝑀) = Word 𝐼)
1512, 14eleqtrrd 2707 . 2 ((𝐼𝑉𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)𝑦) ∈ (Base‘𝑀))
16 simpr1 1065 . . . . . 6 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑥 ∈ (Base‘𝑀))
1716, 7syl 17 . . . . 5 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑥 ∈ Word 𝐼)
18 simpr2 1066 . . . . . 6 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑦 ∈ (Base‘𝑀))
1918, 8syl 17 . . . . 5 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑦 ∈ Word 𝐼)
20 simpr3 1067 . . . . . 6 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑧 ∈ (Base‘𝑀))
213, 4frmdelbas 17306 . . . . . 6 (𝑧 ∈ (Base‘𝑀) → 𝑧 ∈ Word 𝐼)
2220, 21syl 17 . . . . 5 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑧 ∈ Word 𝐼)
23 ccatass 13305 . . . . 5 ((𝑥 ∈ Word 𝐼𝑦 ∈ Word 𝐼𝑧 ∈ Word 𝐼) → ((𝑥 ++ 𝑦) ++ 𝑧) = (𝑥 ++ (𝑦 ++ 𝑧)))
2417, 19, 22, 23syl3anc 1323 . . . 4 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → ((𝑥 ++ 𝑦) ++ 𝑧) = (𝑥 ++ (𝑦 ++ 𝑧)))
2516, 18, 10syl2anc 692 . . . . . 6 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑥 ++ 𝑦) ∈ Word 𝐼)
2613adantr 481 . . . . . 6 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (Base‘𝑀) = Word 𝐼)
2725, 26eleqtrrd 2707 . . . . 5 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑥 ++ 𝑦) ∈ (Base‘𝑀))
283, 4, 5frmdadd 17308 . . . . 5 (((𝑥 ++ 𝑦) ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀)) → ((𝑥 ++ 𝑦)(+g𝑀)𝑧) = ((𝑥 ++ 𝑦) ++ 𝑧))
2927, 20, 28syl2anc 692 . . . 4 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → ((𝑥 ++ 𝑦)(+g𝑀)𝑧) = ((𝑥 ++ 𝑦) ++ 𝑧))
30 ccatcl 13293 . . . . . . 7 ((𝑦 ∈ Word 𝐼𝑧 ∈ Word 𝐼) → (𝑦 ++ 𝑧) ∈ Word 𝐼)
3119, 22, 30syl2anc 692 . . . . . 6 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑦 ++ 𝑧) ∈ Word 𝐼)
3231, 26eleqtrrd 2707 . . . . 5 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑦 ++ 𝑧) ∈ (Base‘𝑀))
333, 4, 5frmdadd 17308 . . . . 5 ((𝑥 ∈ (Base‘𝑀) ∧ (𝑦 ++ 𝑧) ∈ (Base‘𝑀)) → (𝑥(+g𝑀)(𝑦 ++ 𝑧)) = (𝑥 ++ (𝑦 ++ 𝑧)))
3416, 32, 33syl2anc 692 . . . 4 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑥(+g𝑀)(𝑦 ++ 𝑧)) = (𝑥 ++ (𝑦 ++ 𝑧)))
3524, 29, 343eqtr4d 2670 . . 3 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → ((𝑥 ++ 𝑦)(+g𝑀)𝑧) = (𝑥(+g𝑀)(𝑦 ++ 𝑧)))
3616, 18, 6syl2anc 692 . . . 4 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑥(+g𝑀)𝑦) = (𝑥 ++ 𝑦))
3736oveq1d 6620 . . 3 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → ((𝑥(+g𝑀)𝑦)(+g𝑀)𝑧) = ((𝑥 ++ 𝑦)(+g𝑀)𝑧))
383, 4, 5frmdadd 17308 . . . . 5 ((𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀)) → (𝑦(+g𝑀)𝑧) = (𝑦 ++ 𝑧))
3918, 20, 38syl2anc 692 . . . 4 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑦(+g𝑀)𝑧) = (𝑦 ++ 𝑧))
4039oveq2d 6621 . . 3 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑥(+g𝑀)(𝑦(+g𝑀)𝑧)) = (𝑥(+g𝑀)(𝑦 ++ 𝑧)))
4135, 37, 403eqtr4d 2670 . 2 ((𝐼𝑉 ∧ (𝑥 ∈ (Base‘𝑀) ∧ 𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → ((𝑥(+g𝑀)𝑦)(+g𝑀)𝑧) = (𝑥(+g𝑀)(𝑦(+g𝑀)𝑧)))
42 wrd0 13264 . . 3 ∅ ∈ Word 𝐼
4342, 13syl5eleqr 2711 . 2 (𝐼𝑉 → ∅ ∈ (Base‘𝑀))
443, 4, 5frmdadd 17308 . . . 4 ((∅ ∈ (Base‘𝑀) ∧ 𝑥 ∈ (Base‘𝑀)) → (∅(+g𝑀)𝑥) = (∅ ++ 𝑥))
4543, 44sylan 488 . . 3 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → (∅(+g𝑀)𝑥) = (∅ ++ 𝑥))
467adantl 482 . . . 4 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → 𝑥 ∈ Word 𝐼)
47 ccatlid 13303 . . . 4 (𝑥 ∈ Word 𝐼 → (∅ ++ 𝑥) = 𝑥)
4846, 47syl 17 . . 3 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → (∅ ++ 𝑥) = 𝑥)
4945, 48eqtrd 2660 . 2 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → (∅(+g𝑀)𝑥) = 𝑥)
503, 4, 5frmdadd 17308 . . . . 5 ((𝑥 ∈ (Base‘𝑀) ∧ ∅ ∈ (Base‘𝑀)) → (𝑥(+g𝑀)∅) = (𝑥 ++ ∅))
5150ancoms 469 . . . 4 ((∅ ∈ (Base‘𝑀) ∧ 𝑥 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)∅) = (𝑥 ++ ∅))
5243, 51sylan 488 . . 3 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)∅) = (𝑥 ++ ∅))
53 ccatrid 13304 . . . 4 (𝑥 ∈ Word 𝐼 → (𝑥 ++ ∅) = 𝑥)
5446, 53syl 17 . . 3 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → (𝑥 ++ ∅) = 𝑥)
5552, 54eqtrd 2660 . 2 ((𝐼𝑉𝑥 ∈ (Base‘𝑀)) → (𝑥(+g𝑀)∅) = 𝑥)
561, 2, 15, 41, 43, 49, 55ismndd 17229 1 (𝐼𝑉𝑀 ∈ Mnd)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384  w3a 1036   = wceq 1480  wcel 1992  c0 3896  cfv 5850  (class class class)co 6605  Word cword 13225   ++ cconcat 13227  Basecbs 15776  +gcplusg 15857  Mndcmnd 17210  freeMndcfrmd 17300
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903  ax-cnex 9937  ax-resscn 9938  ax-1cn 9939  ax-icn 9940  ax-addcl 9941  ax-addrcl 9942  ax-mulcl 9943  ax-mulrcl 9944  ax-mulcom 9945  ax-addass 9946  ax-mulass 9947  ax-distr 9948  ax-i2m1 9949  ax-1ne0 9950  ax-1rid 9951  ax-rnegex 9952  ax-rrecex 9953  ax-cnre 9954  ax-pre-lttri 9955  ax-pre-lttrn 9956  ax-pre-ltadd 9957  ax-pre-mulgt0 9958
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-nel 2900  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-int 4446  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5642  df-ord 5688  df-on 5689  df-lim 5690  df-suc 5691  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-riota 6566  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-om 7014  df-1st 7116  df-2nd 7117  df-wrecs 7353  df-recs 7414  df-rdg 7452  df-1o 7506  df-oadd 7510  df-er 7688  df-map 7805  df-pm 7806  df-en 7901  df-dom 7902  df-sdom 7903  df-fin 7904  df-card 8710  df-pnf 10021  df-mnf 10022  df-xr 10023  df-ltxr 10024  df-le 10025  df-sub 10213  df-neg 10214  df-nn 10966  df-2 11024  df-n0 11238  df-z 11323  df-uz 11632  df-fz 12266  df-fzo 12404  df-hash 13055  df-word 13233  df-concat 13235  df-struct 15778  df-ndx 15779  df-slot 15780  df-base 15781  df-plusg 15870  df-mgm 17158  df-sgrp 17200  df-mnd 17211  df-frmd 17302
This theorem is referenced by:  frmdsssubm  17314  frmdgsum  17315  frmdup1  17317  frgp0  18089  frgpadd  18092  frgpmhm  18094  mrsubff  31109  mrsubccat  31115  elmrsubrn  31117
  Copyright terms: Public domain W3C validator