Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  elmrsubrn Structured version   Visualization version   GIF version

Theorem elmrsubrn 33482
Description: Characterization of the substitutions as functions from expressions to expressions that distribute under concatenation and map constants to themselves. (The constant part uses (𝐶𝑉) because we don't know that 𝐶 and 𝑉 are disjoint until we get to ismfs 33511.) (Contributed by Mario Carneiro, 18-Jul-2016.)
Hypotheses
Ref Expression
mrsubccat.s 𝑆 = (mRSubst‘𝑇)
mrsubccat.r 𝑅 = (mREx‘𝑇)
mrsubcn.v 𝑉 = (mVR‘𝑇)
mrsubcn.c 𝐶 = (mCN‘𝑇)
Assertion
Ref Expression
elmrsubrn (𝑇𝑊 → (𝐹 ∈ ran 𝑆 ↔ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))))
Distinct variable groups:   𝑥,𝑐,𝑦,𝐶   𝑥,𝑅,𝑦   𝑆,𝑐,𝑥,𝑦   𝑥,𝑇,𝑦   𝐹,𝑐,𝑥,𝑦   𝑉,𝑐,𝑥,𝑦   𝑥,𝑊,𝑦
Allowed substitution hints:   𝑅(𝑐)   𝑇(𝑐)   𝑊(𝑐)

Proof of Theorem elmrsubrn
Dummy variables 𝑟 𝑣 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mrsubccat.s . . . 4 𝑆 = (mRSubst‘𝑇)
2 mrsubccat.r . . . 4 𝑅 = (mREx‘𝑇)
31, 2mrsubf 33479 . . 3 (𝐹 ∈ ran 𝑆𝐹:𝑅𝑅)
4 mrsubcn.v . . . . 5 𝑉 = (mVR‘𝑇)
5 mrsubcn.c . . . . 5 𝐶 = (mCN‘𝑇)
61, 2, 4, 5mrsubcn 33481 . . . 4 ((𝐹 ∈ ran 𝑆𝑐 ∈ (𝐶𝑉)) → (𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩)
76ralrimiva 3103 . . 3 (𝐹 ∈ ran 𝑆 → ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩)
81, 2mrsubccat 33480 . . . . 5 ((𝐹 ∈ ran 𝑆𝑥𝑅𝑦𝑅) → (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))
983expb 1119 . . . 4 ((𝐹 ∈ ran 𝑆 ∧ (𝑥𝑅𝑦𝑅)) → (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))
109ralrimivva 3123 . . 3 (𝐹 ∈ ran 𝑆 → ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))
113, 7, 103jca 1127 . 2 (𝐹 ∈ ran 𝑆 → (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦))))
125, 4, 2mrexval 33463 . . . . . . 7 (𝑇𝑊𝑅 = Word (𝐶𝑉))
1312adantr 481 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝑅 = Word (𝐶𝑉))
14 s1eq 14305 . . . . . . . . . . . . 13 (𝑤 = 𝑣 → ⟨“𝑤”⟩ = ⟨“𝑣”⟩)
1514fveq2d 6778 . . . . . . . . . . . 12 (𝑤 = 𝑣 → (𝐹‘⟨“𝑤”⟩) = (𝐹‘⟨“𝑣”⟩))
16 eqid 2738 . . . . . . . . . . . 12 (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)) = (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))
17 fvex 6787 . . . . . . . . . . . 12 (𝐹‘⟨“𝑣”⟩) ∈ V
1815, 16, 17fvmpt 6875 . . . . . . . . . . 11 (𝑣𝑉 → ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣) = (𝐹‘⟨“𝑣”⟩))
1918adantl 482 . . . . . . . . . 10 ((((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) ∧ 𝑣𝑉) → ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣) = (𝐹‘⟨“𝑣”⟩))
20 difun2 4414 . . . . . . . . . . . . . . 15 ((𝐶𝑉) ∖ 𝑉) = (𝐶𝑉)
2120eleq2i 2830 . . . . . . . . . . . . . 14 (𝑣 ∈ ((𝐶𝑉) ∖ 𝑉) ↔ 𝑣 ∈ (𝐶𝑉))
22 eldif 3897 . . . . . . . . . . . . . 14 (𝑣 ∈ ((𝐶𝑉) ∖ 𝑉) ↔ (𝑣 ∈ (𝐶𝑉) ∧ ¬ 𝑣𝑉))
2321, 22bitr3i 276 . . . . . . . . . . . . 13 (𝑣 ∈ (𝐶𝑉) ↔ (𝑣 ∈ (𝐶𝑉) ∧ ¬ 𝑣𝑉))
24 simpr2 1194 . . . . . . . . . . . . . 14 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩)
25 s1eq 14305 . . . . . . . . . . . . . . . . 17 (𝑐 = 𝑣 → ⟨“𝑐”⟩ = ⟨“𝑣”⟩)
2625fveq2d 6778 . . . . . . . . . . . . . . . 16 (𝑐 = 𝑣 → (𝐹‘⟨“𝑐”⟩) = (𝐹‘⟨“𝑣”⟩))
2726, 25eqeq12d 2754 . . . . . . . . . . . . . . 15 (𝑐 = 𝑣 → ((𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ↔ (𝐹‘⟨“𝑣”⟩) = ⟨“𝑣”⟩))
2827rspccva 3560 . . . . . . . . . . . . . 14 ((∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ 𝑣 ∈ (𝐶𝑉)) → (𝐹‘⟨“𝑣”⟩) = ⟨“𝑣”⟩)
2924, 28sylan 580 . . . . . . . . . . . . 13 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → (𝐹‘⟨“𝑣”⟩) = ⟨“𝑣”⟩)
3023, 29sylan2br 595 . . . . . . . . . . . 12 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ (𝑣 ∈ (𝐶𝑉) ∧ ¬ 𝑣𝑉)) → (𝐹‘⟨“𝑣”⟩) = ⟨“𝑣”⟩)
3130anassrs 468 . . . . . . . . . . 11 ((((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) ∧ ¬ 𝑣𝑉) → (𝐹‘⟨“𝑣”⟩) = ⟨“𝑣”⟩)
3231eqcomd 2744 . . . . . . . . . 10 ((((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) ∧ ¬ 𝑣𝑉) → ⟨“𝑣”⟩ = (𝐹‘⟨“𝑣”⟩))
3319, 32ifeqda 4495 . . . . . . . . 9 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩) = (𝐹‘⟨“𝑣”⟩))
3433mpteq2dva 5174 . . . . . . . 8 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑣 ∈ (𝐶𝑉) ↦ if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩)) = (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)))
3534coeq1d 5770 . . . . . . 7 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ((𝑣 ∈ (𝐶𝑉) ↦ if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩)) ∘ 𝑟) = ((𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)) ∘ 𝑟))
3635oveq2d 7291 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩)) ∘ 𝑟)) = ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)) ∘ 𝑟)))
3713, 36mpteq12dv 5165 . . . . 5 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑟𝑅 ↦ ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩)) ∘ 𝑟))) = (𝑟 ∈ Word (𝐶𝑉) ↦ ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)) ∘ 𝑟))))
38 elun2 4111 . . . . . . . 8 (𝑣𝑉𝑣 ∈ (𝐶𝑉))
39 simplr1 1214 . . . . . . . . 9 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → 𝐹:𝑅𝑅)
40 simpr 485 . . . . . . . . . . 11 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → 𝑣 ∈ (𝐶𝑉))
4140s1cld 14308 . . . . . . . . . 10 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → ⟨“𝑣”⟩ ∈ Word (𝐶𝑉))
4212ad2antrr 723 . . . . . . . . . 10 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → 𝑅 = Word (𝐶𝑉))
4341, 42eleqtrrd 2842 . . . . . . . . 9 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → ⟨“𝑣”⟩ ∈ 𝑅)
4439, 43ffvelrnd 6962 . . . . . . . 8 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → (𝐹‘⟨“𝑣”⟩) ∈ 𝑅)
4538, 44sylan2 593 . . . . . . 7 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣𝑉) → (𝐹‘⟨“𝑣”⟩) ∈ 𝑅)
4615cbvmptv 5187 . . . . . . 7 (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)) = (𝑣𝑉 ↦ (𝐹‘⟨“𝑣”⟩))
4745, 46fmptd 6988 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)):𝑉𝑅)
48 ssid 3943 . . . . . 6 𝑉𝑉
49 eqid 2738 . . . . . . 7 (freeMnd‘(𝐶𝑉)) = (freeMnd‘(𝐶𝑉))
505, 4, 2, 1, 49mrsubfval 33470 . . . . . 6 (((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)):𝑉𝑅𝑉𝑉) → (𝑆‘(𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))) = (𝑟𝑅 ↦ ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩)) ∘ 𝑟))))
5147, 48, 50sylancl 586 . . . . 5 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑆‘(𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))) = (𝑟𝑅 ↦ ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ if(𝑣𝑉, ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))‘𝑣), ⟨“𝑣”⟩)) ∘ 𝑟))))
525fvexi 6788 . . . . . . . . 9 𝐶 ∈ V
534fvexi 6788 . . . . . . . . 9 𝑉 ∈ V
5452, 53unex 7596 . . . . . . . 8 (𝐶𝑉) ∈ V
5549frmdmnd 18498 . . . . . . . 8 ((𝐶𝑉) ∈ V → (freeMnd‘(𝐶𝑉)) ∈ Mnd)
5654, 55ax-mp 5 . . . . . . 7 (freeMnd‘(𝐶𝑉)) ∈ Mnd
5756a1i 11 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (freeMnd‘(𝐶𝑉)) ∈ Mnd)
5854a1i 11 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐶𝑉) ∈ V)
5944, 42eleqtrd 2841 . . . . . . 7 (((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) ∧ 𝑣 ∈ (𝐶𝑉)) → (𝐹‘⟨“𝑣”⟩) ∈ Word (𝐶𝑉))
6059fmpttd 6989 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)):(𝐶𝑉)⟶Word (𝐶𝑉))
61 simpr1 1193 . . . . . . . 8 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝐹:𝑅𝑅)
6213, 13feq23d 6595 . . . . . . . 8 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐹:𝑅𝑅𝐹:Word (𝐶𝑉)⟶Word (𝐶𝑉)))
6361, 62mpbid 231 . . . . . . 7 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝐹:Word (𝐶𝑉)⟶Word (𝐶𝑉))
64 simpr3 1195 . . . . . . . 8 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))
65 simprl 768 . . . . . . . . . . . . . . 15 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → 𝑥𝑅)
6612adantr 481 . . . . . . . . . . . . . . . 16 ((𝑇𝑊𝐹:𝑅𝑅) → 𝑅 = Word (𝐶𝑉))
6766adantr 481 . . . . . . . . . . . . . . 15 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → 𝑅 = Word (𝐶𝑉))
6865, 67eleqtrd 2841 . . . . . . . . . . . . . 14 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → 𝑥 ∈ Word (𝐶𝑉))
69 simprr 770 . . . . . . . . . . . . . . 15 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → 𝑦𝑅)
7069, 67eleqtrd 2841 . . . . . . . . . . . . . 14 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → 𝑦 ∈ Word (𝐶𝑉))
71 eqid 2738 . . . . . . . . . . . . . . . . . 18 (Base‘(freeMnd‘(𝐶𝑉))) = (Base‘(freeMnd‘(𝐶𝑉)))
7249, 71frmdbas 18491 . . . . . . . . . . . . . . . . 17 ((𝐶𝑉) ∈ V → (Base‘(freeMnd‘(𝐶𝑉))) = Word (𝐶𝑉))
7354, 72ax-mp 5 . . . . . . . . . . . . . . . 16 (Base‘(freeMnd‘(𝐶𝑉))) = Word (𝐶𝑉)
7473eqcomi 2747 . . . . . . . . . . . . . . 15 Word (𝐶𝑉) = (Base‘(freeMnd‘(𝐶𝑉)))
75 eqid 2738 . . . . . . . . . . . . . . 15 (+g‘(freeMnd‘(𝐶𝑉))) = (+g‘(freeMnd‘(𝐶𝑉)))
7649, 74, 75frmdadd 18494 . . . . . . . . . . . . . 14 ((𝑥 ∈ Word (𝐶𝑉) ∧ 𝑦 ∈ Word (𝐶𝑉)) → (𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦) = (𝑥 ++ 𝑦))
7768, 70, 76syl2anc 584 . . . . . . . . . . . . 13 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → (𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦) = (𝑥 ++ 𝑦))
7877fveq2d 6778 . . . . . . . . . . . 12 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → (𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = (𝐹‘(𝑥 ++ 𝑦)))
79 ffvelrn 6959 . . . . . . . . . . . . . . 15 ((𝐹:𝑅𝑅𝑥𝑅) → (𝐹𝑥) ∈ 𝑅)
8079ad2ant2lr 745 . . . . . . . . . . . . . 14 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → (𝐹𝑥) ∈ 𝑅)
8180, 67eleqtrd 2841 . . . . . . . . . . . . 13 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → (𝐹𝑥) ∈ Word (𝐶𝑉))
82 ffvelrn 6959 . . . . . . . . . . . . . . 15 ((𝐹:𝑅𝑅𝑦𝑅) → (𝐹𝑦) ∈ 𝑅)
8382ad2ant2l 743 . . . . . . . . . . . . . 14 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → (𝐹𝑦) ∈ 𝑅)
8483, 67eleqtrd 2841 . . . . . . . . . . . . 13 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → (𝐹𝑦) ∈ Word (𝐶𝑉))
8549, 74, 75frmdadd 18494 . . . . . . . . . . . . 13 (((𝐹𝑥) ∈ Word (𝐶𝑉) ∧ (𝐹𝑦) ∈ Word (𝐶𝑉)) → ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))
8681, 84, 85syl2anc 584 . . . . . . . . . . . 12 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))
8778, 86eqeq12d 2754 . . . . . . . . . . 11 (((𝑇𝑊𝐹:𝑅𝑅) ∧ (𝑥𝑅𝑦𝑅)) → ((𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) ↔ (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦))))
88872ralbidva 3128 . . . . . . . . . 10 ((𝑇𝑊𝐹:𝑅𝑅) → (∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) ↔ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦))))
8966raleqdv 3348 . . . . . . . . . . 11 ((𝑇𝑊𝐹:𝑅𝑅) → (∀𝑦𝑅 (𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) ↔ ∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦))))
9066, 89raleqbidv 3336 . . . . . . . . . 10 ((𝑇𝑊𝐹:𝑅𝑅) → (∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) ↔ ∀𝑥 ∈ Word (𝐶𝑉)∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦))))
9188, 90bitr3d 280 . . . . . . . . 9 ((𝑇𝑊𝐹:𝑅𝑅) → (∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)) ↔ ∀𝑥 ∈ Word (𝐶𝑉)∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦))))
92913ad2antr1 1187 . . . . . . . 8 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)) ↔ ∀𝑥 ∈ Word (𝐶𝑉)∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦))))
9364, 92mpbid 231 . . . . . . 7 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ∀𝑥 ∈ Word (𝐶𝑉)∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)))
94 wrd0 14242 . . . . . . . . . . . 12 ∅ ∈ Word (𝐶𝑉)
95 ffvelrn 6959 . . . . . . . . . . . 12 ((𝐹:Word (𝐶𝑉)⟶Word (𝐶𝑉) ∧ ∅ ∈ Word (𝐶𝑉)) → (𝐹‘∅) ∈ Word (𝐶𝑉))
9663, 94, 95sylancl 586 . . . . . . . . . . 11 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐹‘∅) ∈ Word (𝐶𝑉))
97 lencl 14236 . . . . . . . . . . 11 ((𝐹‘∅) ∈ Word (𝐶𝑉) → (♯‘(𝐹‘∅)) ∈ ℕ0)
9896, 97syl 17 . . . . . . . . . 10 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (♯‘(𝐹‘∅)) ∈ ℕ0)
9998nn0cnd 12295 . . . . . . . . 9 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (♯‘(𝐹‘∅)) ∈ ℂ)
100 0cnd 10968 . . . . . . . . 9 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 0 ∈ ℂ)
10199addid1d 11175 . . . . . . . . . 10 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ((♯‘(𝐹‘∅)) + 0) = (♯‘(𝐹‘∅)))
10294, 13eleqtrrid 2846 . . . . . . . . . . . 12 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ∅ ∈ 𝑅)
103 fvoveq1 7298 . . . . . . . . . . . . . 14 (𝑥 = ∅ → (𝐹‘(𝑥 ++ 𝑦)) = (𝐹‘(∅ ++ 𝑦)))
104 fveq2 6774 . . . . . . . . . . . . . . 15 (𝑥 = ∅ → (𝐹𝑥) = (𝐹‘∅))
105104oveq1d 7290 . . . . . . . . . . . . . 14 (𝑥 = ∅ → ((𝐹𝑥) ++ (𝐹𝑦)) = ((𝐹‘∅) ++ (𝐹𝑦)))
106103, 105eqeq12d 2754 . . . . . . . . . . . . 13 (𝑥 = ∅ → ((𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)) ↔ (𝐹‘(∅ ++ 𝑦)) = ((𝐹‘∅) ++ (𝐹𝑦))))
107 oveq2 7283 . . . . . . . . . . . . . . . 16 (𝑦 = ∅ → (∅ ++ 𝑦) = (∅ ++ ∅))
108 ccatidid 14295 . . . . . . . . . . . . . . . 16 (∅ ++ ∅) = ∅
109107, 108eqtrdi 2794 . . . . . . . . . . . . . . 15 (𝑦 = ∅ → (∅ ++ 𝑦) = ∅)
110109fveq2d 6778 . . . . . . . . . . . . . 14 (𝑦 = ∅ → (𝐹‘(∅ ++ 𝑦)) = (𝐹‘∅))
111 fveq2 6774 . . . . . . . . . . . . . . 15 (𝑦 = ∅ → (𝐹𝑦) = (𝐹‘∅))
112111oveq2d 7291 . . . . . . . . . . . . . 14 (𝑦 = ∅ → ((𝐹‘∅) ++ (𝐹𝑦)) = ((𝐹‘∅) ++ (𝐹‘∅)))
113110, 112eqeq12d 2754 . . . . . . . . . . . . 13 (𝑦 = ∅ → ((𝐹‘(∅ ++ 𝑦)) = ((𝐹‘∅) ++ (𝐹𝑦)) ↔ (𝐹‘∅) = ((𝐹‘∅) ++ (𝐹‘∅))))
114106, 113rspc2va 3571 . . . . . . . . . . . 12 (((∅ ∈ 𝑅 ∧ ∅ ∈ 𝑅) ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦))) → (𝐹‘∅) = ((𝐹‘∅) ++ (𝐹‘∅)))
115102, 102, 64, 114syl21anc 835 . . . . . . . . . . 11 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐹‘∅) = ((𝐹‘∅) ++ (𝐹‘∅)))
116115fveq2d 6778 . . . . . . . . . 10 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (♯‘(𝐹‘∅)) = (♯‘((𝐹‘∅) ++ (𝐹‘∅))))
117 ccatlen 14278 . . . . . . . . . . 11 (((𝐹‘∅) ∈ Word (𝐶𝑉) ∧ (𝐹‘∅) ∈ Word (𝐶𝑉)) → (♯‘((𝐹‘∅) ++ (𝐹‘∅))) = ((♯‘(𝐹‘∅)) + (♯‘(𝐹‘∅))))
11896, 96, 117syl2anc 584 . . . . . . . . . 10 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (♯‘((𝐹‘∅) ++ (𝐹‘∅))) = ((♯‘(𝐹‘∅)) + (♯‘(𝐹‘∅))))
119101, 116, 1183eqtrrd 2783 . . . . . . . . 9 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → ((♯‘(𝐹‘∅)) + (♯‘(𝐹‘∅))) = ((♯‘(𝐹‘∅)) + 0))
12099, 99, 100, 119addcanad 11180 . . . . . . . 8 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (♯‘(𝐹‘∅)) = 0)
121 fvex 6787 . . . . . . . . 9 (𝐹‘∅) ∈ V
122 hasheq0 14078 . . . . . . . . 9 ((𝐹‘∅) ∈ V → ((♯‘(𝐹‘∅)) = 0 ↔ (𝐹‘∅) = ∅))
123121, 122ax-mp 5 . . . . . . . 8 ((♯‘(𝐹‘∅)) = 0 ↔ (𝐹‘∅) = ∅)
124120, 123sylib 217 . . . . . . 7 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐹‘∅) = ∅)
12556, 56pm3.2i 471 . . . . . . . 8 ((freeMnd‘(𝐶𝑉)) ∈ Mnd ∧ (freeMnd‘(𝐶𝑉)) ∈ Mnd)
12649frmd0 18499 . . . . . . . . 9 ∅ = (0g‘(freeMnd‘(𝐶𝑉)))
12774, 74, 75, 75, 126, 126ismhm 18432 . . . . . . . 8 (𝐹 ∈ ((freeMnd‘(𝐶𝑉)) MndHom (freeMnd‘(𝐶𝑉))) ↔ (((freeMnd‘(𝐶𝑉)) ∈ Mnd ∧ (freeMnd‘(𝐶𝑉)) ∈ Mnd) ∧ (𝐹:Word (𝐶𝑉)⟶Word (𝐶𝑉) ∧ ∀𝑥 ∈ Word (𝐶𝑉)∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) ∧ (𝐹‘∅) = ∅)))
128125, 127mpbiran 706 . . . . . . 7 (𝐹 ∈ ((freeMnd‘(𝐶𝑉)) MndHom (freeMnd‘(𝐶𝑉))) ↔ (𝐹:Word (𝐶𝑉)⟶Word (𝐶𝑉) ∧ ∀𝑥 ∈ Word (𝐶𝑉)∀𝑦 ∈ Word (𝐶𝑉)(𝐹‘(𝑥(+g‘(freeMnd‘(𝐶𝑉)))𝑦)) = ((𝐹𝑥)(+g‘(freeMnd‘(𝐶𝑉)))(𝐹𝑦)) ∧ (𝐹‘∅) = ∅))
12963, 93, 124, 128syl3anbrc 1342 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝐹 ∈ ((freeMnd‘(𝐶𝑉)) MndHom (freeMnd‘(𝐶𝑉))))
130 eqid 2738 . . . . . . . . . 10 (varFMnd‘(𝐶𝑉)) = (varFMnd‘(𝐶𝑉))
131130vrmdf 18497 . . . . . . . . 9 ((𝐶𝑉) ∈ V → (varFMnd‘(𝐶𝑉)):(𝐶𝑉)⟶Word (𝐶𝑉))
13254, 131ax-mp 5 . . . . . . . 8 (varFMnd‘(𝐶𝑉)):(𝐶𝑉)⟶Word (𝐶𝑉)
133 fcompt 7005 . . . . . . . 8 ((𝐹:Word (𝐶𝑉)⟶Word (𝐶𝑉) ∧ (varFMnd‘(𝐶𝑉)):(𝐶𝑉)⟶Word (𝐶𝑉)) → (𝐹 ∘ (varFMnd‘(𝐶𝑉))) = (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘((varFMnd‘(𝐶𝑉))‘𝑣))))
13463, 132, 133sylancl 586 . . . . . . 7 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐹 ∘ (varFMnd‘(𝐶𝑉))) = (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘((varFMnd‘(𝐶𝑉))‘𝑣))))
135130vrmdval 18496 . . . . . . . . . 10 (((𝐶𝑉) ∈ V ∧ 𝑣 ∈ (𝐶𝑉)) → ((varFMnd‘(𝐶𝑉))‘𝑣) = ⟨“𝑣”⟩)
13654, 135mpan 687 . . . . . . . . 9 (𝑣 ∈ (𝐶𝑉) → ((varFMnd‘(𝐶𝑉))‘𝑣) = ⟨“𝑣”⟩)
137136fveq2d 6778 . . . . . . . 8 (𝑣 ∈ (𝐶𝑉) → (𝐹‘((varFMnd‘(𝐶𝑉))‘𝑣)) = (𝐹‘⟨“𝑣”⟩))
138137mpteq2ia 5177 . . . . . . 7 (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘((varFMnd‘(𝐶𝑉))‘𝑣))) = (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩))
139134, 138eqtrdi 2794 . . . . . 6 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝐹 ∘ (varFMnd‘(𝐶𝑉))) = (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)))
14049, 74, 130frmdup3lem 18505 . . . . . 6 ((((freeMnd‘(𝐶𝑉)) ∈ Mnd ∧ (𝐶𝑉) ∈ V ∧ (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)):(𝐶𝑉)⟶Word (𝐶𝑉)) ∧ (𝐹 ∈ ((freeMnd‘(𝐶𝑉)) MndHom (freeMnd‘(𝐶𝑉))) ∧ (𝐹 ∘ (varFMnd‘(𝐶𝑉))) = (𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)))) → 𝐹 = (𝑟 ∈ Word (𝐶𝑉) ↦ ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)) ∘ 𝑟))))
14157, 58, 60, 129, 139, 140syl32anc 1377 . . . . 5 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝐹 = (𝑟 ∈ Word (𝐶𝑉) ↦ ((freeMnd‘(𝐶𝑉)) Σg ((𝑣 ∈ (𝐶𝑉) ↦ (𝐹‘⟨“𝑣”⟩)) ∘ 𝑟))))
14237, 51, 1413eqtr4rd 2789 . . . 4 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝐹 = (𝑆‘(𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))))
1434, 2, 1mrsubff 33474 . . . . . . 7 (𝑇𝑊𝑆:(𝑅pm 𝑉)⟶(𝑅m 𝑅))
144143ffnd 6601 . . . . . 6 (𝑇𝑊𝑆 Fn (𝑅pm 𝑉))
145144adantr 481 . . . . 5 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝑆 Fn (𝑅pm 𝑉))
1462fvexi 6788 . . . . . . 7 𝑅 ∈ V
147 elpm2r 8633 . . . . . . 7 (((𝑅 ∈ V ∧ 𝑉 ∈ V) ∧ ((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)):𝑉𝑅𝑉𝑉)) → (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)) ∈ (𝑅pm 𝑉))
148146, 53, 147mpanl12 699 . . . . . 6 (((𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)):𝑉𝑅𝑉𝑉) → (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)) ∈ (𝑅pm 𝑉))
14947, 48, 148sylancl 586 . . . . 5 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)) ∈ (𝑅pm 𝑉))
150 fnfvelrn 6958 . . . . 5 ((𝑆 Fn (𝑅pm 𝑉) ∧ (𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩)) ∈ (𝑅pm 𝑉)) → (𝑆‘(𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))) ∈ ran 𝑆)
151145, 149, 150syl2anc 584 . . . 4 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → (𝑆‘(𝑤𝑉 ↦ (𝐹‘⟨“𝑤”⟩))) ∈ ran 𝑆)
152142, 151eqeltrd 2839 . . 3 ((𝑇𝑊 ∧ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))) → 𝐹 ∈ ran 𝑆)
153152ex 413 . 2 (𝑇𝑊 → ((𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦))) → 𝐹 ∈ ran 𝑆))
15411, 153impbid2 225 1 (𝑇𝑊 → (𝐹 ∈ ran 𝑆 ↔ (𝐹:𝑅𝑅 ∧ ∀𝑐 ∈ (𝐶𝑉)(𝐹‘⟨“𝑐”⟩) = ⟨“𝑐”⟩ ∧ ∀𝑥𝑅𝑦𝑅 (𝐹‘(𝑥 ++ 𝑦)) = ((𝐹𝑥) ++ (𝐹𝑦)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wral 3064  Vcvv 3432  cdif 3884  cun 3885  wss 3887  c0 4256  ifcif 4459  cmpt 5157  ran crn 5590  ccom 5593   Fn wfn 6428  wf 6429  cfv 6433  (class class class)co 7275  m cmap 8615  pm cpm 8616  0cc0 10871   + caddc 10874  0cn0 12233  chash 14044  Word cword 14217   ++ cconcat 14273  ⟨“cs1 14300  Basecbs 16912  +gcplusg 16962   Σg cgsu 17151  Mndcmnd 18385   MndHom cmhm 18428  freeMndcfrmd 18486  varFMndcvrmd 18487  mCNcmcn 33422  mVRcmvar 33423  mRExcmrex 33428  mRSubstcmrsub 33432
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-er 8498  df-map 8617  df-pm 8618  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12583  df-fz 13240  df-fzo 13383  df-seq 13722  df-hash 14045  df-word 14218  df-lsw 14266  df-concat 14274  df-s1 14301  df-substr 14354  df-pfx 14384  df-struct 16848  df-sets 16865  df-slot 16883  df-ndx 16895  df-base 16913  df-ress 16942  df-plusg 16975  df-0g 17152  df-gsum 17153  df-mgm 18326  df-sgrp 18375  df-mnd 18386  df-mhm 18430  df-submnd 18431  df-frmd 18488  df-vrmd 18489  df-mrex 33448  df-mrsub 33452
This theorem is referenced by:  mrsubco  33483
  Copyright terms: Public domain W3C validator