Zulip Chat Archive
Stream: new members
Topic: Restriction of a bundled function to a subset
Luigi Massacci (Mar 11 2024 at 10:46):
If I have some function f : X -> Y, is there a canonical way (maybe with the standard math notation too) to define the restriction f : S -> Y for some subset S of X?
Riccardo Brasca (Mar 11 2024 at 10:49):
We have docs#Set.restrict and docs#Subtype.restrict depending on your precise situation
Luigi Massacci (Mar 11 2024 at 10:50):
Second one I think is good. Thanks!
Luigi Massacci (Mar 11 2024 at 11:01):
Actually it doesn't quite work. My problem is that I have a bundled function type E(X)
. So fromf : E(X)
I want to go to f' : E(S)
(which I need to pass as hypothesis to a theorem). The restriction trivially satisfies the requirements for being E(S)) but if I just do Set.restrict
I'm reasonably missing the proof parts. Do I just def
my own restriction ? I see that is what is done for ContinuousMap.restrict
Riccardo Brasca (Mar 11 2024 at 11:02):
Can you write a #mwe?
Riccardo Brasca (Mar 11 2024 at 11:03):
But if your function is really bundled you have to write the def by hand I think (since there is a theorem behind the scene, maybe a trivial one, but still a theorem)
Riccardo Brasca (Mar 11 2024 at 11:04):
like docs#MonoidHom.restrict, that is done by hand.
Riccardo Brasca (Mar 11 2024 at 11:05):
(Note that here the point is to have docs#SubmonoidClass.subtype, that is the inclusion as a bundled hom, and of course compose with it)
Last updated: May 02 2025 at 03:31 UTC