AlgebraicJulia / GATlab.jl

GATlab: a computer algebra system based on generalized algebraic theories (GATs)
https://algebraicjulia.github.io/GATlab.jl/
MIT License
23 stars 2 forks source link

ability for model methods to extend other methods #105

Closed kris-brown closed 11 months ago

kris-brown commented 11 months ago

We want to be able to say using .ThCategory and have access to compose, id etc., but for theories with names which conflict with Base (e.g. +), we'd still have to qualify those names because of the name collision. This could be addressed by allowing @instance to know for certain methods if you want to extend methods from some preexisting module (and perhaps we do this with Base no matter what when there is a collision).