Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-06T09:24:10.282Z Has data issue: false hasContentIssue false

A concrete model for a typed linear algebraic lambda calculus

Published online by Cambridge University Press:  21 November 2023

Alejandro Díaz-Caro*
Affiliation:
CONICET-Universidad de Buenos Aires, Instituto de Ciencias de la Computación (ICC), Buenos Aires, Argentina Departamento de Ciencia y Tecnología, Universidad Nacional de Quilmes, Bernal, Buenos Aires, Argentina
Octavio Malherbe
Affiliation:
IMERL, Facultad de Ingeniería, Universidad de la República, Montevideo, Uruguay
*
Corresponding author: Alejandro Díaz-Caro; Email: adiazcaro@conicet.gov.ar
Rights & Permissions [Opens in a new window]

Abstract

We give an adequate, concrete, categorical-based model for Lambda-${\mathcal S}$, which is a typed version of a linear-algebraic lambda calculus, extended with measurements. Lambda-${\mathcal S}$ is an extension to first-order lambda calculus unifying two approaches of non-cloning in quantum lambda-calculi: to forbid duplication of variables and to consider all lambda-terms as algebraic linear functions. The type system of Lambda-${\mathcal S}$ has a superposition constructor S such that a type A is considered as the base of a vector space, while SA is its span. Our model considers S as the composition of two functors in an adjunction relation between the category of sets and the category of vector spaces over $\mathbb C$. The right adjoint is a forgetful functor U, which is hidden in the language, and plays a central role in the computational reasoning.

Information

Type
Paper
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1: Syntax of types and terms of Lambda-${\mathcal S}$.

Figure 1

Figure 2. Typing relation.

Figure 2

Figure 3. Beta rules.

Figure 3

Figure 4. Linear distribution rules.

Figure 4

Figure 5. Rules of the conditional construction.

Figure 5

Figure 6. Rules for lists.

Figure 6

Figure 7. Rules implementing the vector space axioms.

Figure 7

Figure 8. Rules for castings $\Uparrow_r$ and $\Uparrow_\ell$.

Figure 8

Figure 9. Rules for the projection.

Figure 9

Figure 10. Contextual rules (notice that, in particular, there is no reduction under lambda).