Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Categories of matrices #178

Merged
merged 15 commits into from
Jun 26, 2020
Merged

Conversation

epatters
Copy link
Member

@epatters epatters commented Jun 26, 2020

Adds support for categories of matrices, both dense and sparse, over a commutative rig. This includes the rig of booleans, paving the way for support for FinRel.

The opportunity is also taken to clean up the hierarchy of theories for relational structures, so as to eventually have a consistent interface for finite relations and linear relations. In particular, the theory for GLA now inherits that of abelian bicategories of relations (relevant to @jpfairbanks, @bosonbaas). Finally, a number of theories related to distributive monoidal structures are added. In a subsequent PR, this will be used to define the theory of distributive bicategories of relations.

Affects the theories of SMCs in additive notation.
Refactor theory of linear functions (functional fragment of GLA) to
inherit from this theory.
To avoid confusion once we have theories of additive and semiadditive
categories.
The latter was changed to use additive notation. The theory of GLA
now inherits the theory of abelian bicategories of relations.
Leads to ambiguity when multiple monoidal products are available.
Instead, use `swap` in the additive case.
Also fix missing imports in wiring diagrams module.
@epatters epatters merged commit 7b50ebf into AlgebraicJulia:master Jun 26, 2020
@epatters epatters deleted the bool-matrices branch June 26, 2020 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants