Check out our new preprint "Higher-Order DisCoCat (Peirce-Lambek-Montague semantics)"! @gio_defel

https://arxiv.org/abs/2311.17813

too long; didn't read? here's a meme that summarises the paper

Higher-Order DisCoCat (Peirce-Lambek-Montague semantics)

We propose a new definition of higher-order DisCoCat (categorical compositional distributional) models where the meaning of a word is not a diagram, but a diagram-valued higher-order function. Our models can be seen as a variant of Montague semantics based on a lambda calculus where the primitives act on string diagrams rather than logical formulae. As a special case, we show how to translate from the Lambek calculus into Peirce's system beta for first-order logic. This allows us to give a purely diagrammatic treatment of higher-order and non-linear processes in natural language semantics: adverbs, prepositions, negation and quantifiers. The theoretical definition presented in this article comes with a proof-of-concept implementation in DisCoPy, the Python library for string diagrams.

arXiv.org
It took a while to get it into shape, but this is the paper I would've wanted to read when I started working on these DisCoCat models as a masters student, it closes a conjecture that goes back to 2008 and the first paper introducing them...
https://arxiv.org/abs/1003.4394
Mathematical Foundations for a Compositional Distributional Model of Meaning

We propose a mathematical framework for a unification of the distributional theory of meaning in terms of vector space models, and a compositional theory for grammatical types, for which we rely on the algebra of Pregroups, introduced by Lambek. This mathematical framework enables us to compute the meaning of a well-typed sentence from the meanings of its constituents. Concretely, the type reductions of Pregroups are `lifted' to morphisms in a category, a procedure that transforms meanings of constituents into a meaning of the (well-typed) whole. Importantly, meanings of whole sentences live in a single space, independent of the grammatical structure of the sentence. Hence the inner-product can be used to compare meanings of arbitrary sentences, as it is for comparing the meanings of words in the distributional model. The mathematical structure we employ admits a purely diagrammatic calculus which exposes how the information flows between the words in a sentence in order to make up the meaning of the whole sentence. A variation of our `categorical model' which involves constraining the scalars of the vector spaces to the semiring of Booleans results in a Montague-style Boolean-valued semantics.

arXiv.org

In short, we provide a beefed up definition of #DisCoCat where the meaning of words is given not by a #diagram but by a diagram-valued function.

As a concrete example, we take #CharlesSandersPeirce 's existential graphs to go from the #Lambek calculus to logic, i.e. #Montague grammar with diagrams!