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

Open subsets of arbitrary subsets of manifolds #31677

Closed
mkoeppe opened this issue Apr 17, 2021 · 12 comments
Closed

Open subsets of arbitrary subsets of manifolds #31677

mkoeppe opened this issue Apr 17, 2021 · 12 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 17, 2021

Various places in the code assumed that the elements of the _supersets attribute of an open set are open, but this is not a guaranteed invariant.

We fix this by updating all loops over supersets that need to make this assumption to use a new generator function ManifoldSubset.open_supersets.

We also add the method ManifoldSubset.open_subset. It delegates to its base manifold's open_subset method, by passing a new optional parameter supersets to it.

Depends on #31674

CC: @mjungmath @egourgoulhon @tscrim

Component: manifolds

Author: Matthias Koeppe

Branch/Commit: b35eca1

Reviewer: Eric Gourgoulhon

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

@mkoeppe mkoeppe added this to the sage-9.4 milestone Apr 17, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 17, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 17, 2021

Commit: 4e63b30

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 17, 2021

comment:2

Here's the beginning. To complete it, the remaining open_subset methods will need updating.


New commits:

1f6f295TopologicalSubmanifold.open_subset: New
58110f2TopologicalSubmanifold.open_subset: Fix docstring
d815b63{DifferentiableSubmanifold,PseudoRiemannianSubmanifold}.open_subset: New
aac8835{Topological,Differentiable,PseudoRiemannianSubmanifold}._repr_: Print subsets as subsets
004c23aAdd/update examples
ef1614aRefactor Manifold.open_subset methods through new method _init_open_subset
265b0e2TopologicalManifold._init_open_subset: Add docstring
4e63b30WIP

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 17, 2021

Changed commit from 4e63b30 to 5623f49

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 17, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

a93f7edTopologicalSubmanifold._init_open_subset: Add docstring
58b43f7DifferentiableManifold._init_open_subset: Add docstring
5623f49WIP

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 19, 2021

Changed commit from 5623f49 to b35eca1

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 19, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

d542412ManifoldSubset.open_supersets: New generator, use it to fix loops that assume open supersets
c821a75{Topological,...}Manifold.open_subset: New optional parameter supersets
b35eca1ManifoldSubset.{open_subset,_init_open_subset}: New

@mkoeppe

This comment has been minimized.

@egourgoulhon
Copy link
Member

comment:6

LGTM. Thanks for this improvement!

@egourgoulhon
Copy link
Member

Reviewer: Eric Gourgoulhon

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 20, 2021

comment:8

Thanks for reviewing!

@vbraun
Copy link
Member

vbraun commented Jun 6, 2021

Changed branch from u/mkoeppe/open-subsets-of-arbitrary-subsets to b35eca1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants