Definition. Tensor of Grammars
For formal grammars and , their tensor represents the concatenation of the languages they describe. A parse for at a string consists of a splitting of into a prefix and suffix , along with a parse of in and a parse of in .
Formally, it is defined as:
This operation is exactly the Day convolution of and , where we view formal grammars as presheaves over the monoid of strings.