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

ManifoldSubset: New methods declare_subset, declare_superset #31763

Closed
mkoeppe opened this issue May 2, 2021 · 19 comments
Closed

ManifoldSubset: New methods declare_subset, declare_superset #31763

mkoeppe opened this issue May 2, 2021 · 19 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented May 2, 2021

Follow-up from #31736, which introduced declare_equal.

Depends on #31736

CC: @egourgoulhon @mjungmath

Component: manifolds

Author: Matthias Koeppe

Branch/Commit: c4acd09

Reviewer: Eric Gourgoulhon

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

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

mkoeppe commented May 2, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 2, 2021

Last 10 new commits:

06aedf8ManifoldSubset.{subset,superset}_digraph: New option quotient; use it for {subset,superset}_poset
c9fd9f7ManifoldSubset.declare_equal: New
1e6a055is_empty, declare_nonempty, has_defined_points: Add doc, examples
e06932bMerge #31732
93b8aa3ManifoldSubset.equal_subset_family: Fixup
5c7bb75src/sage/manifolds/{family,manifold,subset,differentiable/manifold,**/*_submanifold}.py: Update authors, copyright
f244b87ManifoldSubset.subset_digraph: Do not forget to include isolated vertices
b391831Merge #31736
a6a7f02ManifoldSubset.declare_{sub,super}set: New
0cc9eb8src/sage/manifolds/differentiable/examples/real_line.py: Use declare_subset

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 2, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 2, 2021

Commit: 0cc9eb8

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 7, 2021

comment:3

Ready for review.

@egourgoulhon
Copy link
Member

comment:4

In the docstring of declare_superset, the following changes should be made:

    def declare_superset(self, *subsets):
        r"""
-        Declare ``self`` to be a subset of each of the given supersets.
+        Declare ``self`` to be a superset of each of the given subsets.

        INPUT:

-        - ``supersets`` -- other subsets of the same manifold
+        - ``subsets`` -- other subsets of the same manifold

@egourgoulhon
Copy link
Member

comment:5

In the doctests of declare_subset, the line

sage: M.declare_subset(V)

may look surprising at first glance, since it amounts to making all previously introduced subsets U1, U2 and V equal to the whole manifold M. Maybe a comment should be added about this, illustrated by

sage: M.equal_subset_family()
Set {M, U1, U2, V} of open subsets of the 2-dimensional differentiable manifold M

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 9, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

94edd68ManifoldSubset.declare_superset: Fix documentation
41826b4ManifoldSubset.declare_{sub,super}set: Expand docstring

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 9, 2021

Changed commit from 0cc9eb8 to 41826b4

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 9, 2021

comment:7

Good idea, done

@egourgoulhon
Copy link
Member

comment:8

Good to go!

@egourgoulhon
Copy link
Member

Reviewer: Eric Gourgoulhon

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 10, 2021

comment:9

Thanks for the review!

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2021

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

359dde1Merge branch 't/31727/manifoldsubset__add_methods_subset_family__superset_family__equal_subset_family__deprecate_method_list_of_subsets' into t/31732/manifoldsubset__new_methods_declare_empty__declare_nonempty__is_empty__has_defined_points__open_cover_family
fd4506aMerge #31732
7fed9efMerge #31736

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2021

Changed commit from 41826b4 to 7fed9ef

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2021

Changed commit from 7fed9ef to c4acd09

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

c4acd09Merge tag '9.4.beta2' into t/31763/manifoldsubset__new_methods_declare_subset__declare_superset

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 19, 2021

comment:12

Trivial merge with latest beta

@vbraun
Copy link
Member

vbraun commented Jun 21, 2021

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