Closed mkoeppe closed 3 years ago
A minor point: to generate correctly the documentation, the following change shall be made in the docstring of ManifoldSubsetPullback
:
- - ``map`` - an instance of :class:`ContinuousMap`,
+ - ``map`` - an instance of :class:`~sage.manifolds.continuous_map.ContinuousMap`,
:class:`ScalarField`, or :class:`Chart`
For :class:`ScalarField`
and :class:`Chart`
, this is not necessary because these classes are imported in pullback.py
.
This example in the doctstring of ManifoldSubsetPullback.is_closed
is dubious:
The pullback of finite sets is closed::
sage: F = Family([vector(QQ, [1, 2], immutable=True), vector(QQ, [2, 3], immutable=True)])
sage: McF = ManifoldSubsetPullback(c_cart, F, name='McF'); McF
Subset McF of the 2-dimensional topological manifold R^2
sage: McF.is_closed()
False
Replying to @egourgoulhon:
This example in the doctstring of
ManifoldSubsetPullback.is_closed
is dubious:
Indeed. Looks like I had forgotten to actually implement this case. Done now
Thanks for the update. As soon as the patchbot visits the ticket and is green, the ticket can be set to positive review.
OK, since the changes since the last time the patchbot visited the ticket are quite minor, let us move on without waiting for another visit.
Thank you for the new features introduced here!
Thanks for the review!
Replying to @egourgoulhon:
OK, since the changes since the last time the patchbot visited the ticket are quite minor, let us move on without waiting for another visit.
It seems that we don't have any patchbot at the moment: https://patchbot.sagemath.org/ticket/0/
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
4b930ff | Merge tag '9.4.beta4' into t/31688/pullbacks_of_manifold_subsets_under_continuous_maps |
sage -t --long --warn-long 41.5 --random-seed=0 src/sage/geometry/polyhedron/base.py
**********************************************************************
File "src/sage/geometry/polyhedron/base.py", line 2975, in sage.geometry.polyhedron.base.Polyhedron_base.incidence_matrix
Failed example:
M == P.incidence_matrix()
Expected:
False
Got:
True
**********************************************************************
1 item had failures:
1 of 31 in sage.geometry.polyhedron.base.Polyhedron_base.incidence_matrix
[1737 tests, 1 failure, 35.30 s]
----------------------------------------------------------------------
sage -t --long --warn-long 41.5 --random-seed=0 src/sage/geometry/polyhedron/base.py # 1 doctest failed
----------------------------------------------------------------------
Branch pushed to git repo; I updated commit sha1. New commits:
4558e26 | Polyhedron_base.incidence_matrix: Remove accidental change to doctest |
Changed branch from u/mkoeppe/pullbacks_of_manifold_subsets_under_continuous_maps to 4558e26
Similar to #31653, given a continuous map
\Phi: N -> M
and a manifold subsetS
ofM
, we define the pullback (preimage) ofS
as the subset ofN
of pointsp
with\Phi(p)
inS
.Given a real scalar field
Phi: N -> R
and aRealSet
S
, we define the pullback in the same way.Also, we view a chart
C
as a continuous functionPhi: C.domain() -> R^n
and allow pulling back any subset ofR^n
(an object with a__contains__
method; for example polyhedra, lattices, linear subspaces, tensor modules) by it as well.In all cases, because
Phi
is continuous, topological closures/interiors pull back.An application is in #31981.
Depends on #31883 Depends on #31904 Depends on #31653 Depends on #31916 Depends on #31644 Depends on #31959 Depends on #31990 Depends on #21243
CC: @egourgoulhon @tscrim @mjungmath
Component: manifolds
Author: Matthias Koeppe
Branch/Commit:
4558e26
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/31688