Metamath Proof Explorer


Theorem frmdss2

Description: A subset of generators is contained in a submonoid iff the set of words on the generators is in the submonoid. This can be viewed as an elementary way of saying "the monoidal closure of J is Word J ". (Contributed by Mario Carneiro, 2-Oct-2015)

Ref Expression
Hypotheses frmdmnd.m M=freeMndI
frmdgsum.u U=varFMndI
Assertion frmdss2 IVJIASubMndMUJAWordJA

Proof

Step Hyp Ref Expression
1 frmdmnd.m M=freeMndI
2 frmdgsum.u U=varFMndI
3 simpl1 IVJIASubMndMUJAxWordJIV
4 simpl2 IVJIASubMndMUJAxWordJJI
5 sswrd JIWordJWordI
6 4 5 syl IVJIASubMndMUJAxWordJWordJWordI
7 simprr IVJIASubMndMUJAxWordJxWordJ
8 6 7 sseldd IVJIASubMndMUJAxWordJxWordI
9 1 2 frmdgsum IVxWordIMUx=x
10 3 8 9 syl2anc IVJIASubMndMUJAxWordJMUx=x
11 simpl3 IVJIASubMndMUJAxWordJASubMndM
12 wrdf xWordJx:0..^xJ
13 12 ad2antll IVJIASubMndMUJAxWordJx:0..^xJ
14 13 frnd IVJIASubMndMUJAxWordJranxJ
15 cores ranxJUJx=Ux
16 14 15 syl IVJIASubMndMUJAxWordJUJx=Ux
17 2 vrmdf IVU:IWordI
18 17 3ad2ant1 IVJIASubMndMU:IWordI
19 18 ffnd IVJIASubMndMUFnI
20 fnssres UFnIJIUJFnJ
21 19 4 20 syl2an2r IVJIASubMndMUJAxWordJUJFnJ
22 df-ima UJ=ranUJ
23 simprl IVJIASubMndMUJAxWordJUJA
24 22 23 eqsstrrid IVJIASubMndMUJAxWordJranUJA
25 df-f UJ:JAUJFnJranUJA
26 21 24 25 sylanbrc IVJIASubMndMUJAxWordJUJ:JA
27 wrdco xWordJUJ:JAUJxWordA
28 7 26 27 syl2anc IVJIASubMndMUJAxWordJUJxWordA
29 16 28 eqeltrrd IVJIASubMndMUJAxWordJUxWordA
30 gsumwsubmcl ASubMndMUxWordAMUxA
31 11 29 30 syl2anc IVJIASubMndMUJAxWordJMUxA
32 10 31 eqeltrrd IVJIASubMndMUJAxWordJxA
33 32 expr IVJIASubMndMUJAxWordJxA
34 33 ssrdv IVJIASubMndMUJAWordJA
35 34 ex IVJIASubMndMUJAWordJA
36 simpl1 IVJIASubMndMxJIV
37 simp2 IVJIASubMndMJI
38 37 sselda IVJIASubMndMxJxI
39 2 vrmdval IVxIUx=⟨“x”⟩
40 36 38 39 syl2anc IVJIASubMndMxJUx=⟨“x”⟩
41 simpr IVJIASubMndMxJxJ
42 41 s1cld IVJIASubMndMxJ⟨“x”⟩WordJ
43 40 42 eqeltrd IVJIASubMndMxJUxWordJ
44 43 ralrimiva IVJIASubMndMxJUxWordJ
45 18 ffund IVJIASubMndMFunU
46 18 fdmd IVJIASubMndMdomU=I
47 37 46 sseqtrrd IVJIASubMndMJdomU
48 funimass4 FunUJdomUUJWordJxJUxWordJ
49 45 47 48 syl2anc IVJIASubMndMUJWordJxJUxWordJ
50 44 49 mpbird IVJIASubMndMUJWordJ
51 sstr2 UJWordJWordJAUJA
52 50 51 syl IVJIASubMndMWordJAUJA
53 35 52 impbid IVJIASubMndMUJAWordJA