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

Theorem mrsubccat 32773
 Description: Substitution distributes over concatenation. (Contributed by Mario Carneiro, 18-Jul-2016.)
Hypotheses
Ref Expression
mrsubccat.s 𝑆 = (mRSubst‘𝑇)
mrsubccat.r 𝑅 = (mREx‘𝑇)
Assertion
Ref Expression
mrsubccat ((𝐹 ∈ ran 𝑆𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))

Proof of Theorem mrsubccat
Dummy variables 𝑓 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 n0i 4275 . . . . . 6 (𝐹 ∈ ran 𝑆 → ¬ ran 𝑆 = ∅)
2 mrsubccat.s . . . . . . 7 𝑆 = (mRSubst‘𝑇)
32rnfvprc 6640 . . . . . 6 𝑇 ∈ V → ran 𝑆 = ∅)
41, 3nsyl2 143 . . . . 5 (𝐹 ∈ ran 𝑆𝑇 ∈ V)
5 eqid 2820 . . . . . 6 (mVR‘𝑇) = (mVR‘𝑇)
6 mrsubccat.r . . . . . 6 𝑅 = (mREx‘𝑇)
75, 6, 2mrsubff 32767 . . . . 5 (𝑇 ∈ V → 𝑆:(𝑅pm (mVR‘𝑇))⟶(𝑅m 𝑅))
8 ffun 6493 . . . . 5 (𝑆:(𝑅pm (mVR‘𝑇))⟶(𝑅m 𝑅) → Fun 𝑆)
94, 7, 83syl 18 . . . 4 (𝐹 ∈ ran 𝑆 → Fun 𝑆)
105, 6, 2mrsubrn 32768 . . . . . 6 ran 𝑆 = (𝑆 “ (𝑅m (mVR‘𝑇)))
1110eleq2i 2902 . . . . 5 (𝐹 ∈ ran 𝑆𝐹 ∈ (𝑆 “ (𝑅m (mVR‘𝑇))))
1211biimpi 218 . . . 4 (𝐹 ∈ ran 𝑆𝐹 ∈ (𝑆 “ (𝑅m (mVR‘𝑇))))
13 fvelima 6707 . . . 4 ((Fun 𝑆𝐹 ∈ (𝑆 “ (𝑅m (mVR‘𝑇)))) → ∃𝑓 ∈ (𝑅m (mVR‘𝑇))(𝑆𝑓) = 𝐹)
149, 12, 13syl2anc 586 . . 3 (𝐹 ∈ ran 𝑆 → ∃𝑓 ∈ (𝑅m (mVR‘𝑇))(𝑆𝑓) = 𝐹)
15 simprl 769 . . . . . . . . . . . 12 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑋𝑅)
16 elfvex 6679 . . . . . . . . . . . . . 14 (𝑋 ∈ (mREx‘𝑇) → 𝑇 ∈ V)
1716, 6eleq2s 2929 . . . . . . . . . . . . 13 (𝑋𝑅𝑇 ∈ V)
18 eqid 2820 . . . . . . . . . . . . . 14 (mCN‘𝑇) = (mCN‘𝑇)
1918, 5, 6mrexval 32756 . . . . . . . . . . . . 13 (𝑇 ∈ V → 𝑅 = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
2015, 17, 193syl 18 . . . . . . . . . . . 12 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑅 = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
2115, 20eleqtrd 2913 . . . . . . . . . . 11 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
22 simprr 771 . . . . . . . . . . . 12 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑌𝑅)
2322, 20eleqtrd 2913 . . . . . . . . . . 11 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
24 elmapi 8406 . . . . . . . . . . . . . . . . 17 (𝑓 ∈ (𝑅m (mVR‘𝑇)) → 𝑓:(mVR‘𝑇)⟶𝑅)
2524adantr 483 . . . . . . . . . . . . . . . 16 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑓:(mVR‘𝑇)⟶𝑅)
2625adantr 483 . . . . . . . . . . . . . . 15 (((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) → 𝑓:(mVR‘𝑇)⟶𝑅)
2726ffvelrnda 6827 . . . . . . . . . . . . . 14 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ 𝑣 ∈ (mVR‘𝑇)) → (𝑓𝑣) ∈ 𝑅)
2820ad2antrr 724 . . . . . . . . . . . . . 14 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ 𝑣 ∈ (mVR‘𝑇)) → 𝑅 = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
2927, 28eleqtrd 2913 . . . . . . . . . . . . 13 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ 𝑣 ∈ (mVR‘𝑇)) → (𝑓𝑣) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
30 simplr 767 . . . . . . . . . . . . . 14 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ ¬ 𝑣 ∈ (mVR‘𝑇)) → 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
3130s1cld 13937 . . . . . . . . . . . . 13 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ ¬ 𝑣 ∈ (mVR‘𝑇)) → ⟨“𝑣”⟩ ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
3229, 31ifclda 4477 . . . . . . . . . . . 12 (((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) → if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
3332fmpttd 6855 . . . . . . . . . . 11 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
34 ccatco 14177 . . . . . . . . . . 11 ((𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ 𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌)) = (((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ++ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
3521, 23, 33, 34syl3anc 1367 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌)) = (((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ++ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
3635oveq2d 7149 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌))) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg (((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ++ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
37 fvex 6659 . . . . . . . . . . . 12 (mCN‘𝑇) ∈ V
38 fvex 6659 . . . . . . . . . . . 12 (mVR‘𝑇) ∈ V
3937, 38unex 7447 . . . . . . . . . . 11 ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∈ V
40 eqid 2820 . . . . . . . . . . . 12 (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) = (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))
4140frmdmnd 18003 . . . . . . . . . . 11 (((mCN‘𝑇) ∪ (mVR‘𝑇)) ∈ V → (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd)
4239, 41mp1i 13 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd)
43 wrdco 14173 . . . . . . . . . . 11 ((𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
4421, 33, 43syl2anc 586 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
45 wrdco 14173 . . . . . . . . . . 11 ((𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
4623, 33, 45syl2anc 586 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
47 eqid 2820 . . . . . . . . . . . . . 14 (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))
4840, 47frmdbas 17996 . . . . . . . . . . . . 13 (((mCN‘𝑇) ∪ (mVR‘𝑇)) ∈ V → (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
4939, 48ax-mp 5 . . . . . . . . . . . 12 (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇))
5049eqcomi 2829 . . . . . . . . . . 11 Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) = (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))
51 eqid 2820 . . . . . . . . . . 11 (+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = (+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))
5250, 51gsumccat 17985 . . . . . . . . . 10 (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd ∧ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg (((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ++ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋))(+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
5342, 44, 46, 52syl3anc 1367 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg (((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ++ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋))(+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
5450gsumwcl 17982 . . . . . . . . . . 11 (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd ∧ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
5542, 44, 54syl2anc 586 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
5650gsumwcl 17982 . . . . . . . . . . 11 (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd ∧ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
5742, 46, 56syl2anc 586 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
5840, 50, 51frmdadd 17999 . . . . . . . . . 10 ((((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋))(+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ++ ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
5955, 57, 58syl2anc 586 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋))(+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ++ ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
6036, 53, 593eqtrd 2859 . . . . . . . 8 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌))) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ++ ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
61 ssidd 3969 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (mVR‘𝑇) ⊆ (mVR‘𝑇))
62 ccatcl 13906 . . . . . . . . . . 11 ((𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ 𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → (𝑋 ++ 𝑌) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
6321, 23, 62syl2anc 586 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (𝑋 ++ 𝑌) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
6463, 20eleqtrrd 2914 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (𝑋 ++ 𝑌) ∈ 𝑅)
6518, 5, 6, 2, 40mrsubval 32764 . . . . . . . . 9 ((𝑓:(mVR‘𝑇)⟶𝑅 ∧ (mVR‘𝑇) ⊆ (mVR‘𝑇) ∧ (𝑋 ++ 𝑌) ∈ 𝑅) → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌))))
6625, 61, 64, 65syl3anc 1367 . . . . . . . 8 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌))))
6718, 5, 6, 2, 40mrsubval 32764 . . . . . . . . . 10 ((𝑓:(mVR‘𝑇)⟶𝑅 ∧ (mVR‘𝑇) ⊆ (mVR‘𝑇) ∧ 𝑋𝑅) → ((𝑆𝑓)‘𝑋) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)))
6825, 61, 15, 67syl3anc 1367 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘𝑋) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)))
6918, 5, 6, 2, 40mrsubval 32764 . . . . . . . . . 10 ((𝑓:(mVR‘𝑇)⟶𝑅 ∧ (mVR‘𝑇) ⊆ (mVR‘𝑇) ∧ 𝑌𝑅) → ((𝑆𝑓)‘𝑌) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
7025, 61, 22, 69syl3anc 1367 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘𝑌) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
7168, 70oveq12d 7151 . . . . . . . 8 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ++ ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
7260, 66, 713eqtr4d 2865 . . . . . . 7 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)))
73 fveq1 6645 . . . . . . . 8 ((𝑆𝑓) = 𝐹 → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = (𝐹‘(𝑋 ++ 𝑌)))
74 fveq1 6645 . . . . . . . . 9 ((𝑆𝑓) = 𝐹 → ((𝑆𝑓)‘𝑋) = (𝐹𝑋))
75 fveq1 6645 . . . . . . . . 9 ((𝑆𝑓) = 𝐹 → ((𝑆𝑓)‘𝑌) = (𝐹𝑌))
7674, 75oveq12d 7151 . . . . . . . 8 ((𝑆𝑓) = 𝐹 → (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))
7773, 76eqeq12d 2836 . . . . . . 7 ((𝑆𝑓) = 𝐹 → (((𝑆𝑓)‘(𝑋 ++ 𝑌)) = (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)) ↔ (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
7872, 77syl5ibcom 247 . . . . . 6 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓) = 𝐹 → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
7978ex 415 . . . . 5 (𝑓 ∈ (𝑅m (mVR‘𝑇)) → ((𝑋𝑅𝑌𝑅) → ((𝑆𝑓) = 𝐹 → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))))
8079com23 86 . . . 4 (𝑓 ∈ (𝑅m (mVR‘𝑇)) → ((𝑆𝑓) = 𝐹 → ((𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))))
8180rexlimiv 3267 . . 3 (∃𝑓 ∈ (𝑅m (mVR‘𝑇))(𝑆𝑓) = 𝐹 → ((𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
8214, 81syl 17 . 2 (𝐹 ∈ ran 𝑆 → ((𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
83823impib 1112 1 ((𝐹 ∈ ran 𝑆𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ∧ wa 398   ∧ w3a 1083   = wceq 1537   ∈ wcel 2114  ∃wrex 3126  Vcvv 3473   ∪ cun 3911   ⊆ wss 3913  ∅c0 4269  ifcif 4443   ↦ cmpt 5122  ran crn 5532   “ cima 5534   ∘ ccom 5535  Fun wfun 6325  ⟶wf 6327  ‘cfv 6331  (class class class)co 7133   ↑m cmap 8384   ↑pm cpm 8385  Word cword 13846   ++ cconcat 13902  ⟨“cs1 13929  Basecbs 16462  +gcplusg 16544   Σg cgsu 16693  Mndcmnd 17890  freeMndcfrmd 17991  mCNcmcn 32715  mVRcmvar 32716  mRExcmrex 32721  mRSubstcmrsub 32725 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2792  ax-rep 5166  ax-sep 5179  ax-nul 5186  ax-pow 5242  ax-pr 5306  ax-un 7439  ax-cnex 10571  ax-resscn 10572  ax-1cn 10573  ax-icn 10574  ax-addcl 10575  ax-addrcl 10576  ax-mulcl 10577  ax-mulrcl 10578  ax-mulcom 10579  ax-addass 10580  ax-mulass 10581  ax-distr 10582  ax-i2m1 10583  ax-1ne0 10584  ax-1rid 10585  ax-rnegex 10586  ax-rrecex 10587  ax-cnre 10588  ax-pre-lttri 10589  ax-pre-lttrn 10590  ax-pre-ltadd 10591  ax-pre-mulgt0 10592 This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2891  df-nfc 2959  df-ne 3007  df-nel 3111  df-ral 3130  df-rex 3131  df-reu 3132  df-rmo 3133  df-rab 3134  df-v 3475  df-sbc 3753  df-csb 3861  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-pss 3932  df-nul 4270  df-if 4444  df-pw 4517  df-sn 4544  df-pr 4546  df-tp 4548  df-op 4550  df-uni 4815  df-int 4853  df-iun 4897  df-br 5043  df-opab 5105  df-mpt 5123  df-tr 5149  df-id 5436  df-eprel 5441  df-po 5450  df-so 5451  df-fr 5490  df-we 5492  df-xp 5537  df-rel 5538  df-cnv 5539  df-co 5540  df-dm 5541  df-rn 5542  df-res 5543  df-ima 5544  df-pred 6124  df-ord 6170  df-on 6171  df-lim 6172  df-suc 6173  df-iota 6290  df-fun 6333  df-fn 6334  df-f 6335  df-f1 6336  df-fo 6337  df-f1o 6338  df-fv 6339  df-riota 7091  df-ov 7136  df-oprab 7137  df-mpo 7138  df-om 7559  df-1st 7667  df-2nd 7668  df-wrecs 7925  df-recs 7986  df-rdg 8024  df-1o 8080  df-oadd 8084  df-er 8267  df-map 8386  df-pm 8387  df-en 8488  df-dom 8489  df-sdom 8490  df-fin 8491  df-card 9346  df-pnf 10655  df-mnf 10656  df-xr 10657  df-ltxr 10658  df-le 10659  df-sub 10850  df-neg 10851  df-nn 11617  df-2 11679  df-n0 11877  df-z 11961  df-uz 12223  df-fz 12877  df-fzo 13018  df-seq 13354  df-hash 13676  df-word 13847  df-concat 13903  df-s1 13930  df-struct 16464  df-ndx 16465  df-slot 16466  df-base 16468  df-sets 16469  df-ress 16470  df-plusg 16557  df-0g 16694  df-gsum 16695  df-mgm 17831  df-sgrp 17880  df-mnd 17891  df-submnd 17936  df-frmd 17993  df-mrex 32741  df-mrsub 32745 This theorem is referenced by:  elmrsubrn  32775  mrsubco  32776  mrsubvrs  32777
 Copyright terms: Public domain W3C validator