Although, if you're here... there's a more focused question that's been bothering me because I feel it should appear in category theory but can't locate it. There's an operation I call Under that I partially introduce at [1] and define at [2]. The idea is that given functions F and G, where G manipulates things in some overall framework like arrays, F⌾G is a function so that F⌾G x is as similar as possible to x while satisfying (G F⌾G x) = G x. Maybe it's a sort of pullback along a functor G. Does that look familiar?
[0] https://mlochbaum.github.io/BQN/doc/replicate.html
[1] https://mlochbaum.github.io/BQN/tutorial/variable.html#modif...
[2] https://mlochbaum.github.io/BQN/spec/inferred.html#under
But I could very well be totally off.
Most of my problem seems to be that the definition of Under really depends on applying functions to particular arguments. So it's hard to see how to set up categories to capture the necessary properties. But I don't know if it's actually hard to do or just confusing.
[0] https://github.com/mlochbaum/BQN/blob/master/md.bqn
[1] https://raw.githubusercontent.com/mlochbaum/BQN/master/comme...