Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FacadeInclusionMorphism #34461

Open
mkoeppe opened this issue Aug 31, 2022 · 7 comments · May be fixed by #35030
Open

FacadeInclusionMorphism #34461

mkoeppe opened this issue Aug 31, 2022 · 7 comments · May be fixed by #35030

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Aug 31, 2022

To discuss the notion of "set inclusion" in the presence of coercion, we need to be able to discover inclusion morphisms (= injective coercion morphisms).

One mechanism to model subsets is through facade sets. But the relation of facade parents to the parent that they are a facade to is not known to the coercion system.

By registering a FacadeInclusionMorphism as a coercion, we can make this relation discoverable.

sage: from sage.categories.pushout import pushout
sage: from sage.categories.morphism import FacadeInclusionMorphism
sage: S = Sets().Facade().example(); S
An example of facade set: the monoid of positive integers
sage: iota = FacadeInclusionMorphism(Hom(S, ZZ))
sage: iota.register_as_coercion()
sage: pushout(S, ZZ)
Integer Ring

CC: @tscrim

Component: categories

Author: Matthias Koeppe

Branch/Commit: u/mkoeppe/facadeinclusionmorphism @ 5db7f09

Issue created by migration from https://trac.sagemath.org/ticket/34461

@mkoeppe mkoeppe added this to the sage-9.7 milestone Aug 31, 2022
@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 31, 2022

Branch: u/mkoeppe/facadeinclusionmorphism

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 31, 2022

New commits:

5db7f09src/sage/categories/morphism.pyx (FacadeInclusionMorphism): New

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 31, 2022

Author: Matthias Koeppe

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 31, 2022

Commit: 5db7f09

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 8, 2023

PR #35030 replaces the attached branch.

@mkoeppe mkoeppe modified the milestones: sage-10.0, sage-10.1 Apr 30, 2023
@mkoeppe mkoeppe removed this from the sage-10.1 milestone Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant