# String Diagrams

A graphical representation and syntax for categorical reasoning that preserves type information and supports calculational proofs.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Tensor Cookbook: Mastering Tensors through Diagrams

DevFeed: [Tensor Cookbook: Mastering Tensors through Diagrams](<https://devfeed.tech/articles/tensor-cookbook-mastering-tensors-through-diagrams-94131.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.16610>)

Author: Beheshteh T. Rakhshan, Guillaume Rabusseau

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [String Diagrams](<https://devfeed.tech/topics/string-diagrams.md>), [graph theory](<https://devfeed.tech/topics/graph-theory.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [cs-gl](<https://devfeed.tech/tags/cs-gl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [networks](<https://devfeed.tech/tags/networks.md>), [numerical-analysis](<https://devfeed.tech/tags/numerical-analysis.md>), [quantum-physics](<https://devfeed.tech/tags/quantum-physics.md>), [signal-processing](<https://devfeed.tech/tags/signal-processing.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

The manuscript presents tensor network diagrams as a way to make high-dimensional tensor algebra easier to express and interpret: contractions become graph edges, reducing index-heavy notation and exposing structure. It offers a self-contained guide to tensor operations, products, reshaping, and classical decompositions, then applies the diagrams to gradients and high-dimensional probability distributions. The authors say this approach yields shorter, more transparent derivations of identities, rank bounds, and gradient formulas. The supplied text is an abstract and does not provide worked examples or further detail.

### Source excerpt

arXiv:2605.16610v2 Announce Type: replace Abstract: High-dimensional data arise naturally in many areas of science and engineering, including machine learning, signal processing, computational physics, and statistics. Such data are often represented as tensors, multi-dimensional generalizations of matrices. While tensors provide a natural representation for multi-modal structure, their direct manipulation quickly becomes challenging as the order grows: the number of parameters increases exponentially, and algebraic expressions involving many indices become difficult to interpret and implement. Tensor networks (TNs) provide an effective framework for addressing these challenges. Originally introduced by Penrose and developed extensively in quantum physics, the graphical language of tensor networks encodes contractions as edges in a graph, reducing notational overhead and revealing structural properties obscured by index notation. Despite the central role of high-dimensional tensors in modern machine learning and numerical analysis, tensor network diagrams remain underutilized outside quantum computing, partly due to the lack of a self-contained mathematical reference accessible to a broad technical audience. This manuscript provides a self-contained guide to tensor networks and their use in tensor algebra. We present the main operations on tensors, contractions, products, and reshaping through, graphical notation, and show how classical tensor decompositions and related computations are naturally expressed in this framework. We also illustrate how tensor networks simplify the derivation of gradients and the manipulation of high-dimensional probability distributions. Throughout, we show that the diagrammatic approach yields genuinely shorter and more transparent proofs of classical identities, rank bounds, and gradient formulas that would otherwise require laborious index manipulation.

## Yoneda Lemma in Double Categories

DevFeed: [Yoneda Lemma in Double Categories](<https://devfeed.tech/articles/yoneda-lemma-in-double-categories-28865.md>)

Original publisher: [Read original article](<https://bartoszmilewski.com/2026/09/13/yoneda-lemma-in-double-categories/>)

Author: Bartosz Milewski

Published: 2026-09-13T12:23:31Z

Content type: article

Language: en

Sources: [Bartosz Milewski's Programming Cafe](<https://devfeed.tech/sources/bartosz-milewski-s-programming-cafe.md>)

Topics: [Category Theory](<https://devfeed.tech/topics/category-theory.md>), [Profunctors](<https://devfeed.tech/topics/profunctors.md>), [String Diagrams](<https://devfeed.tech/topics/string-diagrams.md>), [Haskell](<https://devfeed.tech/topics/haskell.md>)

Tags: [category-theory](<https://devfeed.tech/tags/category-theory.md>), [double-category](<https://devfeed.tech/tags/double-category.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kan-extensions](<https://devfeed.tech/tags/kan-extensions.md>), [proarrow-equipment](<https://devfeed.tech/tags/proarrow-equipment.md>), [profunctor-equipment](<https://devfeed.tech/tags/profunctor-equipment.md>), [profunctors](<https://devfeed.tech/tags/profunctors.md>), [string-diagrams](<https://devfeed.tech/tags/string-diagrams.md>), [yoneda-structure](<https://devfeed.tech/tags/yoneda-structure.md>)

### AI overview

The article explains how to formulate the Yoneda lemma in double categories without directly referring to presheaves or hom-sets. It uses profunctors, universal constructions, Kan extensions, tabulations, 2-cells, and string diagrams to describe the Yoneda embedding and its desired properties, including density and full faithfulness.

### Source excerpt

Working with double categories can be aptly summarized in a meme: Talk to me about sets without mentioning sets. We don't talk about hom-sets, we talk about horizontal units. Secretly, we are visualizing horizontal arrows as profunctors, and the unit of profunctor composition is a hom-functor. Presheaves are defined as -valued functors, so we immediately [...]

## Bending, Yanking, and Cartesian Squares in Double Categories

DevFeed: [Bending, Yanking, and Cartesian Squares in Double Categories](<https://devfeed.tech/articles/bending-yanking-and-cartesian-squares-in-double-categories-28857.md>)

Original publisher: [Read original article](<https://bartoszmilewski.com/2026/05/18/bending-yanking-and-cartesian-squares-in-double-categories/>)

Author: Bartosz Milewski

Published: 2026-05-19T06:54:15Z

Content type: article

Language: en

Sources: [Bartosz Milewski's Programming Cafe](<https://devfeed.tech/sources/bartosz-milewski-s-programming-cafe.md>)

Topics: [Category Theory](<https://devfeed.tech/topics/category-theory.md>), [Profunctor Equipment](<https://devfeed.tech/topics/profunctor-equipment.md>), [String Diagrams](<https://devfeed.tech/topics/string-diagrams.md>)

Tags: [category-theory](<https://devfeed.tech/tags/category-theory.md>), [diagram](<https://devfeed.tech/tags/diagram.md>), [double-categories](<https://devfeed.tech/tags/double-categories.md>), [proarrow-equipment](<https://devfeed.tech/tags/proarrow-equipment.md>), [profunctor-equipment](<https://devfeed.tech/tags/profunctor-equipment.md>), [profunctors](<https://devfeed.tech/tags/profunctors.md>), [string-diagrams](<https://devfeed.tech/tags/string-diagrams.md>)

### AI overview

This article explains how string-diagram manipulations in double categories and proarrow equipment support yanking identities and the spider lemma, then introduces Cartesian squares as a universal construction in category theory.

### Source excerpt

Previously: Profunctor Equipment in Haskell. The major advantage of string diagrams is that they provide surprisingly natural language for complex diagram manipulations. The fact that two traditional diagrams are equal can be often described as a permission to bend, yank, or pinch strings in particular ways. They provide visual and often tactile clues to our [...]