Hello, I want to build a structure which could also serve as a type, alike linear
in math-comp
's ssralg
.
Basically, the parts I want is
Additive -> Linear
.Linear
notation to construct {linear U -> V}
from the proof that given function is linear.[linear of (f \+ g)]
for f
, g
with linear structure.In addition, I'd like to attach structures, like zmodType
on an analogue of {linear U -> V}
.
How do I go with this?
Currently, the best solution is to mimic the way linear
is done in ssralg.v. I admit this is a bit tricky, involving quite a bit of boilerplate.
This should become easier with HB once we release the port https://github.com/math-comp/math-comp/pull/733 , hopefully before christmas.
Last updated: Jan 29 2023 at 15:02 UTC