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_equal, equal_subsets, equal_subset_family #31736

Closed
mkoeppe opened this issue Apr 26, 2021 · 22 comments
Closed

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 26, 2021

Two subsets are equal if they are subsets of each other.

We add methods equal_subsets, equal_subset_family; and a method declare_equal to make two or more subsets equal.

We modify the method subset_poset and superset_poset to quotient out by equality.

Depends on #31727
Depends on #31732

CC: @egourgoulhon @mjungmath @tscrim

Component: manifolds

Author: Matthias Koeppe

Branch/Commit: fd4506a

Reviewer: Eric Gourgoulhon

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

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

mkoeppe commented Apr 27, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 27, 2021

Commit: c9fd9f7

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 27, 2021

Last 10 new commits:

cec7fa2ManifoldSubset.open_covers: Add option supersets; use it to fix is_empty
c40ec03ManifoldSubset.open_cover_family: Add option supersets
a066387Fix doctests
1b5e5acManifoldSubset.declare_empty: Add plot
48b2700src/sage/manifolds/subset.py: Remove unused import, make doctest stable by using 'sorted'
b4171c9Merge #31732
b77e098ManifoldSubsetFiniteFamily.from_subsets_or_families: New constructor
8051a21ManifoldSubset.equal_subsets, equal_subset_family: New
06aedf8ManifoldSubset.{subset,superset}_digraph: New option quotient; use it for {subset,superset}_poset
c9fd9f7ManifoldSubset.declare_equal: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 28, 2021

Changed commit from c9fd9f7 to e06932b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 28, 2021

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

1e6a055is_empty, declare_nonempty, has_defined_points: Add doc, examples
e06932bMerge #31732

@egourgoulhon
Copy link
Member

comment:4

Shouldn't we have

    def equal_subset_family(self):
-        return ManifoldSubsetFiniteFamily(self.supersets())
+        return ManifoldSubsetFiniteFamily(self.equal_subsets())

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2021

Changed commit from e06932b to 93b8aa3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2021

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

93b8aa3ManifoldSubset.equal_subset_family: Fixup

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 2, 2021

comment:6

Indeed, thanks for catching this.

@egourgoulhon
Copy link
Member

comment:7

Another comment: your name should appear in the AUTHORS field of src/sage/manifolds/subset.py, and possibly in other files, like src/sage/manifolds/topological_submanifold.py; such a field should also be added to src/sage/manifolds/family.py.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2021

Changed commit from 93b8aa3 to 5c7bb75

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2021

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

5c7bb75src/sage/manifolds/{family,manifold,subset,differentiable/manifold,**/*_submanifold}.py: Update authors, copyright

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 2, 2021

comment:9

(I used git blame -w --date=format:%Y src/sage/manifolds/manifold.py | sort -k2 to determine what copyright years to add.)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2021

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

f244b87ManifoldSubset.subset_digraph: Do not forget to include isolated vertices

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 2, 2021

Changed commit from 5c7bb75 to f244b87

@egourgoulhon
Copy link
Member

Reviewer: Eric Gourgoulhon

@egourgoulhon
Copy link
Member

comment:13

Replying to @mkoeppe:

(I used git blame -w --date=format:%Y src/sage/manifolds/manifold.py | sort -k2 to determine what copyright years to add.)

Thanks!

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 3, 2021

comment:14

Thanks for reviewing!

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2021

Changed commit from f244b87 to fd4506a

@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

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 19, 2021

comment:16

Merged updated #31732 to resolve merge conflict

@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