Back to search

Universidade do Minho

Matrices as arrows: why categories of matrices matter

Abstract

dc:description.abstract

Due to an expanding dematerialization process, computing devices are pervasive and play vital roles in our everyday. Furthermore, society’s dependence on this technology is spiraling, which turns the dependable word the most important adjective among the computer science community that is responsible for the development and programming of such devices’ behavior. From the side of mathematics, linear algebra (LA) is catching the attention of the community because it smooths the difficulties imposed by the task of exploring the parallelism and complexity available in current computing devices and networks. Less widespread but relevant on a different register is category theory (CT), a branch of mathematics focusing on the interaction of mathematical concepts as arrows, which is used to type and reason algebraically about computing systems. Both mathematical approaches help in obtaining dependability: while one ensures the best execution time/resource usage, the other asserts behavioral correctness. The fact that the LA concept of a matrix is amenable to arrow abstraction has been by and large ignored by mathematicians and computer scientists. Categories of matrices (Mat) are mentioned just in passing in the curricula, contrarily to the cases of the category of relations, Rel, which establishes foundations for data representation and transformation and the category of sets, Set, used to reason about functional programs. Research-wise, and except for a few papers, the intersection of linear algebra and category theory is forgotten in the conundrum of theoretical formalisms. To the general professional and in common matrix languages such as e.g.MATLAB vernacular, a matrix is just a rectangle of numbers, thus neglecting the implicit algebraic type richness. The ultimate the goal of this dissertation is to integrate the forgotten categories of matrices into the mainstream of computer system foundations, trying to answer the question: ``Can matrices regarded as categorial arrows improve computer science foundations and computer system design methodologies?'' Grounded on a study of the synthesis of linear algebra kernels (algorithms) in digital signal processing (DSP) from such a perspective, it is shown how general such typed matrix theory is and how it expands to other domains such as, for instance, quantitative data aggregation in data-mining. The study of the category of matrices over a field leads to a typed matrix theory where matrices are abstracted as arrows between natural numbers (dimensions) and their categorical properties, such as biproducts, monoidality and closeness, are inspected. Biproducts and type sum operators in Mat are shown to be the essence of the whole approach because they express blocked matrix algebra in a simple and effective way. They are crucial even in the definition of the Hadamard, Khatri-Rao and Kronecker products, the latter prominent in the monoidal structure that equips the type system with a multiplication. The theory is validated by refactoring the proofs of known results (e.g. Roth’s relationship and the properties of the commutation matrix) and deriving new ones. Among these, the blocked extension to matrix linearization (vectorization) is shown to be grounded on a self-adjunction in the category. This approach enables the calculation of algorithms implementing matrix multiplication, the central operation of matrix algebra, ranging from its divide-and-conquer to vectorized implementation. Known algorithms such as e.g. Gaussian elimination are generalized blockwise by relying on the biproduct’s calculational properties. Expanding the traditional scope of application of linear algebra, the crosstabulation, cube and other constructs central to online analytical processing (OLAP) are given as case studies in the ‘‘do it in typed linear algebra’’ flavour of the dissertation. This shows how to generalize database relations from Rel to quantitative relations, i.e. typed matrices in Mat. Biproduct and type multiplication play the major role in their capturing data stacking and pairing. The end result is a calculus for OLAP which offers a new approach to the synthesis of parallel OLAP operations and which allows the proof of properties such as cross-tab incremental construction that one can hardly find elsewhere. As a whole, the dissertation helps in breaking the frontier between disjoint knowledge areas through mathematical abstraction. A number of practical applications are within reach, as is the case of implementing biproduct-based type checkers for computer algebra systems such as MATLAB and obtaining parallel OLAP systems ‘‘for free’’ based on solid aggregation/parallelization theories.

Degree

thesis:*
Name thesis:degree_name
Tese de doutoramento em Informática
Year dc:date.issued
2012

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Macedo, Hugo Daniel
Advisor dc:contributor.advisor
  • Oliveira, José Nuno Fonseca

Rights

dc:rights
Statement dc:rights
  • restrictedAccess
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Tid
101393393

Chain of custody

source
Harvested from
Universidade do Minho
Base URL
repositorium.sdum.uminho.pt/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Macedo, Hugo Daniel. Matrices as arrows: why categories of matrices matter. 2012. https://hdl.handle.net/1822/22894