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

Theorem mrsubccat 33380
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 4264 . . . . . 6 (𝐹 ∈ ran 𝑆 → ¬ ran 𝑆 = ∅)
2 mrsubccat.s . . . . . . 7 𝑆 = (mRSubst‘𝑇)
32rnfvprc 6750 . . . . . 6 𝑇 ∈ V → ran 𝑆 = ∅)
41, 3nsyl2 141 . . . . 5 (𝐹 ∈ ran 𝑆𝑇 ∈ V)
5 eqid 2738 . . . . . 6 (mVR‘𝑇) = (mVR‘𝑇)
6 mrsubccat.r . . . . . 6 𝑅 = (mREx‘𝑇)
75, 6, 2mrsubff 33374 . . . . 5 (𝑇 ∈ V → 𝑆:(𝑅pm (mVR‘𝑇))⟶(𝑅m 𝑅))
8 ffun 6587 . . . . 5 (𝑆:(𝑅pm (mVR‘𝑇))⟶(𝑅m 𝑅) → Fun 𝑆)
94, 7, 83syl 18 . . . 4 (𝐹 ∈ ran 𝑆 → Fun 𝑆)
105, 6, 2mrsubrn 33375 . . . . . 6 ran 𝑆 = (𝑆 “ (𝑅m (mVR‘𝑇)))
1110eleq2i 2830 . . . . 5 (𝐹 ∈ ran 𝑆𝐹 ∈ (𝑆 “ (𝑅m (mVR‘𝑇))))
1211biimpi 215 . . . 4 (𝐹 ∈ ran 𝑆𝐹 ∈ (𝑆 “ (𝑅m (mVR‘𝑇))))
13 fvelima 6817 . . . 4 ((Fun 𝑆𝐹 ∈ (𝑆 “ (𝑅m (mVR‘𝑇)))) → ∃𝑓 ∈ (𝑅m (mVR‘𝑇))(𝑆𝑓) = 𝐹)
149, 12, 13syl2anc 583 . . 3 (𝐹 ∈ ran 𝑆 → ∃𝑓 ∈ (𝑅m (mVR‘𝑇))(𝑆𝑓) = 𝐹)
15 simprl 767 . . . . . . . . . . . 12 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑋𝑅)
16 elfvex 6789 . . . . . . . . . . . . . 14 (𝑋 ∈ (mREx‘𝑇) → 𝑇 ∈ V)
1716, 6eleq2s 2857 . . . . . . . . . . . . 13 (𝑋𝑅𝑇 ∈ V)
18 eqid 2738 . . . . . . . . . . . . . 14 (mCN‘𝑇) = (mCN‘𝑇)
1918, 5, 6mrexval 33363 . . . . . . . . . . . . 13 (𝑇 ∈ V → 𝑅 = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
2015, 17, 193syl 18 . . . . . . . . . . . 12 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑅 = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
2115, 20eleqtrd 2841 . . . . . . . . . . 11 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
22 simprr 769 . . . . . . . . . . . 12 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑌𝑅)
2322, 20eleqtrd 2841 . . . . . . . . . . 11 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
24 elmapi 8595 . . . . . . . . . . . . . . . . 17 (𝑓 ∈ (𝑅m (mVR‘𝑇)) → 𝑓:(mVR‘𝑇)⟶𝑅)
2524adantr 480 . . . . . . . . . . . . . . . 16 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → 𝑓:(mVR‘𝑇)⟶𝑅)
2625adantr 480 . . . . . . . . . . . . . . 15 (((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) → 𝑓:(mVR‘𝑇)⟶𝑅)
2726ffvelrnda 6943 . . . . . . . . . . . . . 14 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ 𝑣 ∈ (mVR‘𝑇)) → (𝑓𝑣) ∈ 𝑅)
2820ad2antrr 722 . . . . . . . . . . . . . 14 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ 𝑣 ∈ (mVR‘𝑇)) → 𝑅 = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
2927, 28eleqtrd 2841 . . . . . . . . . . . . 13 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ 𝑣 ∈ (mVR‘𝑇)) → (𝑓𝑣) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
30 simplr 765 . . . . . . . . . . . . . 14 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ ¬ 𝑣 ∈ (mVR‘𝑇)) → 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)))
3130s1cld 14236 . . . . . . . . . . . . 13 ((((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) ∧ ¬ 𝑣 ∈ (mVR‘𝑇)) → ⟨“𝑣”⟩ ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
3229, 31ifclda 4491 . . . . . . . . . . . 12 (((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) ∧ 𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇))) → if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
3332fmpttd 6971 . . . . . . . . . . 11 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
34 ccatco 14476 . . . . . . . . . . 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 1369 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌)) = (((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ++ ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
3635oveq2d 7271 . . . . . . . . 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 6769 . . . . . . . . . . . 12 (mCN‘𝑇) ∈ V
38 fvex 6769 . . . . . . . . . . . 12 (mVR‘𝑇) ∈ V
3937, 38unex 7574 . . . . . . . . . . 11 ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∈ V
40 eqid 2738 . . . . . . . . . . . 12 (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) = (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))
4140frmdmnd 18413 . . . . . . . . . . 11 (((mCN‘𝑇) ∪ (mVR‘𝑇)) ∈ V → (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd)
4239, 41mp1i 13 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) ∈ Mnd)
43 wrdco 14472 . . . . . . . . . . 11 ((𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
4421, 33, 43syl2anc 583 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
45 wrdco 14472 . . . . . . . . . . 11 ((𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ (𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)):((mCN‘𝑇) ∪ (mVR‘𝑇))⟶Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
4623, 33, 45syl2anc 583 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌) ∈ Word Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
47 eqid 2738 . . . . . . . . . . . . . 14 (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))
4840, 47frmdbas 18406 . . . . . . . . . . . . 13 (((mCN‘𝑇) ∪ (mVR‘𝑇)) ∈ V → (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
4939, 48ax-mp 5 . . . . . . . . . . . 12 (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = Word ((mCN‘𝑇) ∪ (mVR‘𝑇))
5049eqcomi 2747 . . . . . . . . . . 11 Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) = (Base‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))
51 eqid 2738 . . . . . . . . . . 11 (+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇)))) = (+g‘(freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))))
5250, 51gsumccat 18395 . . . . . . . . . 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 1369 . . . . . . . . 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 18392 . . . . . . . . . . 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 583 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
5650gsumwcl 18392 . . . . . . . . . . 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 583 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
5840, 50, 51frmdadd 18409 . . . . . . . . . 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 583 . . . . . . . . 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 2782 . . . . . . . 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 3940 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (mVR‘𝑇) ⊆ (mVR‘𝑇))
62 ccatcl 14205 . . . . . . . . . . 11 ((𝑋 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)) ∧ 𝑌 ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇))) → (𝑋 ++ 𝑌) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
6321, 23, 62syl2anc 583 . . . . . . . . . 10 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (𝑋 ++ 𝑌) ∈ Word ((mCN‘𝑇) ∪ (mVR‘𝑇)))
6463, 20eleqtrrd 2842 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (𝑋 ++ 𝑌) ∈ 𝑅)
6518, 5, 6, 2, 40mrsubval 33371 . . . . . . . . 9 ((𝑓:(mVR‘𝑇)⟶𝑅 ∧ (mVR‘𝑇) ⊆ (mVR‘𝑇) ∧ (𝑋 ++ 𝑌) ∈ 𝑅) → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌))))
6625, 61, 64, 65syl3anc 1369 . . . . . . . 8 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ (𝑋 ++ 𝑌))))
6718, 5, 6, 2, 40mrsubval 33371 . . . . . . . . . 10 ((𝑓:(mVR‘𝑇)⟶𝑅 ∧ (mVR‘𝑇) ⊆ (mVR‘𝑇) ∧ 𝑋𝑅) → ((𝑆𝑓)‘𝑋) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)))
6825, 61, 15, 67syl3anc 1369 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘𝑋) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)))
6918, 5, 6, 2, 40mrsubval 33371 . . . . . . . . . 10 ((𝑓:(mVR‘𝑇)⟶𝑅 ∧ (mVR‘𝑇) ⊆ (mVR‘𝑇) ∧ 𝑌𝑅) → ((𝑆𝑓)‘𝑌) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
7025, 61, 22, 69syl3anc 1369 . . . . . . . . 9 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘𝑌) = ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌)))
7168, 70oveq12d 7273 . . . . . . . 8 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)) = (((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑋)) ++ ((freeMnd‘((mCN‘𝑇) ∪ (mVR‘𝑇))) Σg ((𝑣 ∈ ((mCN‘𝑇) ∪ (mVR‘𝑇)) ↦ if(𝑣 ∈ (mVR‘𝑇), (𝑓𝑣), ⟨“𝑣”⟩)) ∘ 𝑌))))
7260, 66, 713eqtr4d 2788 . . . . . . 7 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)))
73 fveq1 6755 . . . . . . . 8 ((𝑆𝑓) = 𝐹 → ((𝑆𝑓)‘(𝑋 ++ 𝑌)) = (𝐹‘(𝑋 ++ 𝑌)))
74 fveq1 6755 . . . . . . . . 9 ((𝑆𝑓) = 𝐹 → ((𝑆𝑓)‘𝑋) = (𝐹𝑋))
75 fveq1 6755 . . . . . . . . 9 ((𝑆𝑓) = 𝐹 → ((𝑆𝑓)‘𝑌) = (𝐹𝑌))
7674, 75oveq12d 7273 . . . . . . . 8 ((𝑆𝑓) = 𝐹 → (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))
7773, 76eqeq12d 2754 . . . . . . 7 ((𝑆𝑓) = 𝐹 → (((𝑆𝑓)‘(𝑋 ++ 𝑌)) = (((𝑆𝑓)‘𝑋) ++ ((𝑆𝑓)‘𝑌)) ↔ (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
7872, 77syl5ibcom 244 . . . . . 6 ((𝑓 ∈ (𝑅m (mVR‘𝑇)) ∧ (𝑋𝑅𝑌𝑅)) → ((𝑆𝑓) = 𝐹 → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
7978ex 412 . . . . 5 (𝑓 ∈ (𝑅m (mVR‘𝑇)) → ((𝑋𝑅𝑌𝑅) → ((𝑆𝑓) = 𝐹 → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))))
8079com23 86 . . . 4 (𝑓 ∈ (𝑅m (mVR‘𝑇)) → ((𝑆𝑓) = 𝐹 → ((𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))))
8180rexlimiv 3208 . . 3 (∃𝑓 ∈ (𝑅m (mVR‘𝑇))(𝑆𝑓) = 𝐹 → ((𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
8214, 81syl 17 . 2 (𝐹 ∈ ran 𝑆 → ((𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌))))
83823impib 1114 1 ((𝐹 ∈ ran 𝑆𝑋𝑅𝑌𝑅) → (𝐹‘(𝑋 ++ 𝑌)) = ((𝐹𝑋) ++ (𝐹𝑌)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wrex 3064  Vcvv 3422  cun 3881  wss 3883  c0 4253  ifcif 4456  cmpt 5153  ran crn 5581  cima 5583  ccom 5584  Fun wfun 6412  wf 6414  cfv 6418  (class class class)co 7255  m cmap 8573  pm cpm 8574  Word cword 14145   ++ cconcat 14201  ⟨“cs1 14228  Basecbs 16840  +gcplusg 16888   Σg cgsu 17068  Mndcmnd 18300  freeMndcfrmd 18401  mCNcmcn 33322  mVRcmvar 33323  mRExcmrex 33328  mRSubstcmrsub 33332
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169  df-fzo 13312  df-seq 13650  df-hash 13973  df-word 14146  df-concat 14202  df-s1 14229  df-struct 16776  df-sets 16793  df-slot 16811  df-ndx 16823  df-base 16841  df-ress 16868  df-plusg 16901  df-0g 17069  df-gsum 17070  df-mgm 18241  df-sgrp 18290  df-mnd 18301  df-submnd 18346  df-frmd 18403  df-mrex 33348  df-mrsub 33352
This theorem is referenced by:  elmrsubrn  33382  mrsubco  33383  mrsubvrs  33384
  Copyright terms: Public domain W3C validator