agda / cubical

An experimental library for Cubical Agda
https://agda.github.io/cubical/Cubical.README.html
Other
447 stars 136 forks source link

Experiment with notation for algebra and category theory #1037

Open felixwellen opened 1 year ago

felixwellen commented 1 year ago

This is an experiment concerned with the way operators like + or are overloaded with instance arguments. Currently, given e.g. A : AbGroup ℓ this is done by

open AbGroupStr ⦃...⦄
instance
  _ = snd A

The idea is to gain better notation with more flexibility and overloading by separating the notation from the data structures (just look at the changes). Here are a couple of things that would be nice to have:

It is unclear to me, if this is a good idea performance-wise.