Hostname: page-component-77f85d65b8-jkvpf Total loading time: 0 Render date: 2026-03-27T14:26:42.234Z Has data issue: false hasContentIssue false

Point-free calculational proofs and program derivation in linear algebra using a graphical syntax

Published online by Cambridge University Press:  18 June 2025

JÚLIA DE ARAÚJO MOTA
Affiliation:
Universidade Federal do Rio de Janeiro, Rio de Janeiro, Brazil
JOÃO A. PAIXÃO
Affiliation:
Universidade Federal do Rio de Janeiro, Rio de Janeiro, Brazil (e-mail: jpaixao@dcc.ufrj.br)
LUCAS RUFINO MARTELOTTE
Affiliation:
Instituto de Matemática Pura e Aplicada, Rio de Janeiro, Brazil
Rights & Permissions [Opens in a new window]

Abstract

This theoretical pearl shows how a graphical, relational, point-free, and calculational approach to linear algebra, known as graphical linear algebra, can be used to reason not only about matrices (and matrix algebra, as can be found in the literature) but also vector spaces and more generally linear relations. Linear algebra is usually seen as the study of vector spaces and linear transformations. However, to reason effectively with subspaces in a point-free and calculational manner, both can be generalized to an unifying concept: linear relations, much like relational algebra. While the semantics is relational, the syntax is graphical and uses string diagrams, 2-dimensional formal diagrams, which represent the linear relations. Most importantly, in a number of cases, the relational semantics allows algorithms and properties to be derived calculationally instead of just verified. Our approach is to proceed primarily by examples which involve finding inverses, switching from an implicit basis to an explicit basis (solving a homogeneous linear system), exploring both the exchange lemma and the Zassenhaus’ algorithm.

Information

Type
Theoretical Pearl
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig. 1: Laws of symmetric strict monoidal (SSM) categories. The numbering on the wires is omitted for readability.

Figure 1

Table 1: Type checking in GLA. The wires of the diagram on the right do not connect.

Figure 2

Table 2: Implicit rules. The dotted lines represent parenthesization.

Figure 3

Table 3: Dictionary of notations (Part 1).

Figure 4

Table 4: Dictionary of notations (Part 2).

Figure 5

Table 5: Theorems, presented in the three different notations (Part 1).

Figure 6

Table 6: Theorems, presented in the three different notations (Part 2).

Figure 7

Algorithm 1. Right Inverse Triangular

Figure 8

Fig. 2: Geometric representation of the implicit and explicit bases of the B subspace.

Figure 9

Algorithm 2. Implicit to Explicit Basis

Figure 10

Algorithm 3. Basis for the intersection

Figure 11

Algorithm 4. Selector for the Exchange Lemma

Submit a response

Discussions

No Discussions have been published for this article.