Generalized compose of linear maps w.r.t. to change of scalar - #1627
Generalized compose of linear maps w.r.t. to change of scalar#1627hivert wants to merge 1 commit into
Conversation
|
CI is not happy, unfortunately, it seems that making the new code an actual generalization of the previous one will require some more efforts (to infer things like |
|
Your |
bdc289c to
bbdc7e8
Compare
I'm trying something like that (inserting the id in the notation)... |
|
My fix doesn't work. The compose of two simple linear function, that is with the scaling Any trick to solve convince here that Otherwise, I don't really know what's the best path here... |
From a general point of view, this is true. Now is The use case I had was something along the line of having Rocq/MC infer that the obvious map |
Motivation for this change
This PR generalize the compose or linear morphism w.r.t. to change of scalar:
By "linear with change of scalar" I mean the following: suppose that I've two rings$$R$$ and $$S$$ together with a morphism $$f : R \to S$$ , and two modules $$M_R$$ and $$M_S$$ respectively on $$R$$ and $$S$$ . I'm considering maps $$\phi : M_R \to M_S$$ which are $$Z$$ -module morphisms and moreover for all $$c \in R$$ and $$x\in M_R$$ verify $$\phi (c\cdot x) = f(c)\cdot\phi(x)$$ where "$$\cdot$$" denote scalar multiplication. Such a map would be of type
{linear RM -> SM | f \; *:%R}with MC notations. If someone knows a better name than "linear with change of scalar" I'd like to know by the way.So here is my attempt:
So far so good. My problem is that the compose map is not linear:
MC should be able to infer this instance.
Minimal TODO list
doc/changelog/make-entry.shSee this Checklist for details.
Automatic note to reviewers
Read this Checklist.