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

Theorem frmdup1 17608
Description: Any assignment of the generators to target elements can be extended (uniquely) to a homomorphism from a free monoid to an arbitrary other monoid. (Contributed by Mario Carneiro, 27-Sep-2015.)
Hypotheses
Ref Expression
frmdup.m 𝑀 = (freeMnd‘𝐼)
frmdup.b 𝐵 = (Base‘𝐺)
frmdup.e 𝐸 = (𝑥 ∈ Word 𝐼 ↦ (𝐺 Σg (𝐴𝑥)))
frmdup.g (𝜑𝐺 ∈ Mnd)
frmdup.i (𝜑𝐼𝑋)
frmdup.a (𝜑𝐴:𝐼𝐵)
Assertion
Ref Expression
frmdup1 (𝜑𝐸 ∈ (𝑀 MndHom 𝐺))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐺   𝜑,𝑥   𝑥,𝐼
Allowed substitution hints:   𝐸(𝑥)   𝑀(𝑥)   𝑋(𝑥)

Proof of Theorem frmdup1
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frmdup.i . . . 4 (𝜑𝐼𝑋)
2 frmdup.m . . . . 5 𝑀 = (freeMnd‘𝐼)
32frmdmnd 17603 . . . 4 (𝐼𝑋𝑀 ∈ Mnd)
41, 3syl 17 . . 3 (𝜑𝑀 ∈ Mnd)
5 frmdup.g . . 3 (𝜑𝐺 ∈ Mnd)
64, 5jca 495 . 2 (𝜑 → (𝑀 ∈ Mnd ∧ 𝐺 ∈ Mnd))
75adantr 466 . . . . . 6 ((𝜑𝑥 ∈ Word 𝐼) → 𝐺 ∈ Mnd)
8 simpr 471 . . . . . . 7 ((𝜑𝑥 ∈ Word 𝐼) → 𝑥 ∈ Word 𝐼)
9 frmdup.a . . . . . . . 8 (𝜑𝐴:𝐼𝐵)
109adantr 466 . . . . . . 7 ((𝜑𝑥 ∈ Word 𝐼) → 𝐴:𝐼𝐵)
11 wrdco 13785 . . . . . . 7 ((𝑥 ∈ Word 𝐼𝐴:𝐼𝐵) → (𝐴𝑥) ∈ Word 𝐵)
128, 10, 11syl2anc 565 . . . . . 6 ((𝜑𝑥 ∈ Word 𝐼) → (𝐴𝑥) ∈ Word 𝐵)
13 frmdup.b . . . . . . 7 𝐵 = (Base‘𝐺)
1413gsumwcl 17584 . . . . . 6 ((𝐺 ∈ Mnd ∧ (𝐴𝑥) ∈ Word 𝐵) → (𝐺 Σg (𝐴𝑥)) ∈ 𝐵)
157, 12, 14syl2anc 565 . . . . 5 ((𝜑𝑥 ∈ Word 𝐼) → (𝐺 Σg (𝐴𝑥)) ∈ 𝐵)
16 frmdup.e . . . . 5 𝐸 = (𝑥 ∈ Word 𝐼 ↦ (𝐺 Σg (𝐴𝑥)))
1715, 16fmptd 6527 . . . 4 (𝜑𝐸:Word 𝐼𝐵)
18 eqid 2770 . . . . . . 7 (Base‘𝑀) = (Base‘𝑀)
192, 18frmdbas 17596 . . . . . 6 (𝐼𝑋 → (Base‘𝑀) = Word 𝐼)
201, 19syl 17 . . . . 5 (𝜑 → (Base‘𝑀) = Word 𝐼)
2120feq2d 6171 . . . 4 (𝜑 → (𝐸:(Base‘𝑀)⟶𝐵𝐸:Word 𝐼𝐵))
2217, 21mpbird 247 . . 3 (𝜑𝐸:(Base‘𝑀)⟶𝐵)
232, 18frmdelbas 17597 . . . . . . . . 9 (𝑦 ∈ (Base‘𝑀) → 𝑦 ∈ Word 𝐼)
2423ad2antrl 699 . . . . . . . 8 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑦 ∈ Word 𝐼)
252, 18frmdelbas 17597 . . . . . . . . 9 (𝑧 ∈ (Base‘𝑀) → 𝑧 ∈ Word 𝐼)
2625ad2antll 700 . . . . . . . 8 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝑧 ∈ Word 𝐼)
279adantr 466 . . . . . . . 8 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝐴:𝐼𝐵)
28 ccatco 13789 . . . . . . . 8 ((𝑦 ∈ Word 𝐼𝑧 ∈ Word 𝐼𝐴:𝐼𝐵) → (𝐴 ∘ (𝑦 ++ 𝑧)) = ((𝐴𝑦) ++ (𝐴𝑧)))
2924, 26, 27, 28syl3anc 1475 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐴 ∘ (𝑦 ++ 𝑧)) = ((𝐴𝑦) ++ (𝐴𝑧)))
3029oveq2d 6808 . . . . . 6 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐺 Σg (𝐴 ∘ (𝑦 ++ 𝑧))) = (𝐺 Σg ((𝐴𝑦) ++ (𝐴𝑧))))
315adantr 466 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → 𝐺 ∈ Mnd)
32 wrdco 13785 . . . . . . . 8 ((𝑦 ∈ Word 𝐼𝐴:𝐼𝐵) → (𝐴𝑦) ∈ Word 𝐵)
3324, 27, 32syl2anc 565 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐴𝑦) ∈ Word 𝐵)
34 wrdco 13785 . . . . . . . 8 ((𝑧 ∈ Word 𝐼𝐴:𝐼𝐵) → (𝐴𝑧) ∈ Word 𝐵)
3526, 27, 34syl2anc 565 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐴𝑧) ∈ Word 𝐵)
36 eqid 2770 . . . . . . . 8 (+g𝐺) = (+g𝐺)
3713, 36gsumccat 17585 . . . . . . 7 ((𝐺 ∈ Mnd ∧ (𝐴𝑦) ∈ Word 𝐵 ∧ (𝐴𝑧) ∈ Word 𝐵) → (𝐺 Σg ((𝐴𝑦) ++ (𝐴𝑧))) = ((𝐺 Σg (𝐴𝑦))(+g𝐺)(𝐺 Σg (𝐴𝑧))))
3831, 33, 35, 37syl3anc 1475 . . . . . 6 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐺 Σg ((𝐴𝑦) ++ (𝐴𝑧))) = ((𝐺 Σg (𝐴𝑦))(+g𝐺)(𝐺 Σg (𝐴𝑧))))
3930, 38eqtrd 2804 . . . . 5 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐺 Σg (𝐴 ∘ (𝑦 ++ 𝑧))) = ((𝐺 Σg (𝐴𝑦))(+g𝐺)(𝐺 Σg (𝐴𝑧))))
40 eqid 2770 . . . . . . . . 9 (+g𝑀) = (+g𝑀)
412, 18, 40frmdadd 17599 . . . . . . . 8 ((𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀)) → (𝑦(+g𝑀)𝑧) = (𝑦 ++ 𝑧))
4241adantl 467 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑦(+g𝑀)𝑧) = (𝑦 ++ 𝑧))
4342fveq2d 6336 . . . . . 6 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐸‘(𝑦(+g𝑀)𝑧)) = (𝐸‘(𝑦 ++ 𝑧)))
44 ccatcl 13555 . . . . . . . 8 ((𝑦 ∈ Word 𝐼𝑧 ∈ Word 𝐼) → (𝑦 ++ 𝑧) ∈ Word 𝐼)
4524, 26, 44syl2anc 565 . . . . . . 7 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝑦 ++ 𝑧) ∈ Word 𝐼)
46 coeq2 5419 . . . . . . . . 9 (𝑥 = (𝑦 ++ 𝑧) → (𝐴𝑥) = (𝐴 ∘ (𝑦 ++ 𝑧)))
4746oveq2d 6808 . . . . . . . 8 (𝑥 = (𝑦 ++ 𝑧) → (𝐺 Σg (𝐴𝑥)) = (𝐺 Σg (𝐴 ∘ (𝑦 ++ 𝑧))))
48 ovex 6822 . . . . . . . 8 (𝐺 Σg (𝐴𝑥)) ∈ V
4947, 16, 48fvmpt3i 6429 . . . . . . 7 ((𝑦 ++ 𝑧) ∈ Word 𝐼 → (𝐸‘(𝑦 ++ 𝑧)) = (𝐺 Σg (𝐴 ∘ (𝑦 ++ 𝑧))))
5045, 49syl 17 . . . . . 6 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐸‘(𝑦 ++ 𝑧)) = (𝐺 Σg (𝐴 ∘ (𝑦 ++ 𝑧))))
5143, 50eqtrd 2804 . . . . 5 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐸‘(𝑦(+g𝑀)𝑧)) = (𝐺 Σg (𝐴 ∘ (𝑦 ++ 𝑧))))
52 coeq2 5419 . . . . . . . . 9 (𝑥 = 𝑦 → (𝐴𝑥) = (𝐴𝑦))
5352oveq2d 6808 . . . . . . . 8 (𝑥 = 𝑦 → (𝐺 Σg (𝐴𝑥)) = (𝐺 Σg (𝐴𝑦)))
5453, 16, 48fvmpt3i 6429 . . . . . . 7 (𝑦 ∈ Word 𝐼 → (𝐸𝑦) = (𝐺 Σg (𝐴𝑦)))
55 coeq2 5419 . . . . . . . . 9 (𝑥 = 𝑧 → (𝐴𝑥) = (𝐴𝑧))
5655oveq2d 6808 . . . . . . . 8 (𝑥 = 𝑧 → (𝐺 Σg (𝐴𝑥)) = (𝐺 Σg (𝐴𝑧)))
5756, 16, 48fvmpt3i 6429 . . . . . . 7 (𝑧 ∈ Word 𝐼 → (𝐸𝑧) = (𝐺 Σg (𝐴𝑧)))
5854, 57oveqan12d 6811 . . . . . 6 ((𝑦 ∈ Word 𝐼𝑧 ∈ Word 𝐼) → ((𝐸𝑦)(+g𝐺)(𝐸𝑧)) = ((𝐺 Σg (𝐴𝑦))(+g𝐺)(𝐺 Σg (𝐴𝑧))))
5924, 26, 58syl2anc 565 . . . . 5 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → ((𝐸𝑦)(+g𝐺)(𝐸𝑧)) = ((𝐺 Σg (𝐴𝑦))(+g𝐺)(𝐺 Σg (𝐴𝑧))))
6039, 51, 593eqtr4d 2814 . . . 4 ((𝜑 ∧ (𝑦 ∈ (Base‘𝑀) ∧ 𝑧 ∈ (Base‘𝑀))) → (𝐸‘(𝑦(+g𝑀)𝑧)) = ((𝐸𝑦)(+g𝐺)(𝐸𝑧)))
6160ralrimivva 3119 . . 3 (𝜑 → ∀𝑦 ∈ (Base‘𝑀)∀𝑧 ∈ (Base‘𝑀)(𝐸‘(𝑦(+g𝑀)𝑧)) = ((𝐸𝑦)(+g𝐺)(𝐸𝑧)))
62 wrd0 13525 . . . 4 ∅ ∈ Word 𝐼
63 coeq2 5419 . . . . . . . 8 (𝑥 = ∅ → (𝐴𝑥) = (𝐴 ∘ ∅))
64 co02 5793 . . . . . . . 8 (𝐴 ∘ ∅) = ∅
6563, 64syl6eq 2820 . . . . . . 7 (𝑥 = ∅ → (𝐴𝑥) = ∅)
6665oveq2d 6808 . . . . . 6 (𝑥 = ∅ → (𝐺 Σg (𝐴𝑥)) = (𝐺 Σg ∅))
67 eqid 2770 . . . . . . 7 (0g𝐺) = (0g𝐺)
6867gsum0 17485 . . . . . 6 (𝐺 Σg ∅) = (0g𝐺)
6966, 68syl6eq 2820 . . . . 5 (𝑥 = ∅ → (𝐺 Σg (𝐴𝑥)) = (0g𝐺))
7069, 16, 48fvmpt3i 6429 . . . 4 (∅ ∈ Word 𝐼 → (𝐸‘∅) = (0g𝐺))
7162, 70mp1i 13 . . 3 (𝜑 → (𝐸‘∅) = (0g𝐺))
7222, 61, 713jca 1121 . 2 (𝜑 → (𝐸:(Base‘𝑀)⟶𝐵 ∧ ∀𝑦 ∈ (Base‘𝑀)∀𝑧 ∈ (Base‘𝑀)(𝐸‘(𝑦(+g𝑀)𝑧)) = ((𝐸𝑦)(+g𝐺)(𝐸𝑧)) ∧ (𝐸‘∅) = (0g𝐺)))
732frmd0 17604 . . 3 ∅ = (0g𝑀)
7418, 13, 40, 36, 73, 67ismhm 17544 . 2 (𝐸 ∈ (𝑀 MndHom 𝐺) ↔ ((𝑀 ∈ Mnd ∧ 𝐺 ∈ Mnd) ∧ (𝐸:(Base‘𝑀)⟶𝐵 ∧ ∀𝑦 ∈ (Base‘𝑀)∀𝑧 ∈ (Base‘𝑀)(𝐸‘(𝑦(+g𝑀)𝑧)) = ((𝐸𝑦)(+g𝐺)(𝐸𝑧)) ∧ (𝐸‘∅) = (0g𝐺))))
756, 72, 74sylanbrc 564 1 (𝜑𝐸 ∈ (𝑀 MndHom 𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382  w3a 1070   = wceq 1630  wcel 2144  wral 3060  c0 4061  cmpt 4861  ccom 5253  wf 6027  cfv 6031  (class class class)co 6792  Word cword 13486   ++ cconcat 13488  Basecbs 16063  +gcplusg 16148  0gc0g 16307   Σg cgsu 16308  Mndcmnd 17501   MndHom cmhm 17540  freeMndcfrmd 17591
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1869  ax-4 1884  ax-5 1990  ax-6 2056  ax-7 2092  ax-8 2146  ax-9 2153  ax-10 2173  ax-11 2189  ax-12 2202  ax-13 2407  ax-ext 2750  ax-rep 4902  ax-sep 4912  ax-nul 4920  ax-pow 4971  ax-pr 5034  ax-un 7095  ax-cnex 10193  ax-resscn 10194  ax-1cn 10195  ax-icn 10196  ax-addcl 10197  ax-addrcl 10198  ax-mulcl 10199  ax-mulrcl 10200  ax-mulcom 10201  ax-addass 10202  ax-mulass 10203  ax-distr 10204  ax-i2m1 10205  ax-1ne0 10206  ax-1rid 10207  ax-rnegex 10208  ax-rrecex 10209  ax-cnre 10210  ax-pre-lttri 10211  ax-pre-lttrn 10212  ax-pre-ltadd 10213  ax-pre-mulgt0 10214
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 827  df-3or 1071  df-3an 1072  df-tru 1633  df-ex 1852  df-nf 1857  df-sb 2049  df-eu 2621  df-mo 2622  df-clab 2757  df-cleq 2763  df-clel 2766  df-nfc 2901  df-ne 2943  df-nel 3046  df-ral 3065  df-rex 3066  df-reu 3067  df-rmo 3068  df-rab 3069  df-v 3351  df-sbc 3586  df-csb 3681  df-dif 3724  df-un 3726  df-in 3728  df-ss 3735  df-pss 3737  df-nul 4062  df-if 4224  df-pw 4297  df-sn 4315  df-pr 4317  df-tp 4319  df-op 4321  df-uni 4573  df-int 4610  df-iun 4654  df-br 4785  df-opab 4845  df-mpt 4862  df-tr 4885  df-id 5157  df-eprel 5162  df-po 5170  df-so 5171  df-fr 5208  df-we 5210  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-pred 5823  df-ord 5869  df-on 5870  df-lim 5871  df-suc 5872  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-riota 6753  df-ov 6795  df-oprab 6796  df-mpt2 6797  df-om 7212  df-1st 7314  df-2nd 7315  df-wrecs 7558  df-recs 7620  df-rdg 7658  df-1o 7712  df-oadd 7716  df-er 7895  df-map 8010  df-pm 8011  df-en 8109  df-dom 8110  df-sdom 8111  df-fin 8112  df-card 8964  df-pnf 10277  df-mnf 10278  df-xr 10279  df-ltxr 10280  df-le 10281  df-sub 10469  df-neg 10470  df-nn 11222  df-2 11280  df-n0 11494  df-z 11579  df-uz 11888  df-fz 12533  df-fzo 12673  df-seq 13008  df-hash 13321  df-word 13494  df-concat 13496  df-struct 16065  df-ndx 16066  df-slot 16067  df-base 16069  df-sets 16070  df-ress 16071  df-plusg 16161  df-0g 16309  df-gsum 16310  df-mgm 17449  df-sgrp 17491  df-mnd 17502  df-mhm 17542  df-submnd 17543  df-frmd 17593
This theorem is referenced by:  frmdup3  17611
  Copyright terms: Public domain W3C validator