Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
ManifoldSubsetPullback.is_closed: Preimage of finite sets is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 24, 2021
1 parent d321b93 commit 07aba9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/manifolds/subsets/pullback.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def is_closed(self):
sage: McF = ManifoldSubsetPullback(c_cart, F, name='McF'); McF
Subset McF of the 2-dimensional topological manifold R^2
sage: McF.is_closed()
False
True
"""
if self.manifold().dimension() == 0:
Expand All @@ -798,6 +798,8 @@ def is_closed(self):
if self._codomain_subset.rank() == self._codomain_subset.base_extend(RR).dimension():
# Discrete subgroup of R^n
return True
elif self._codomain_subset in Sets().Finite():
return True
else:
if hasattr(self._codomain_subset, 'is_topologically_closed'):
try:
Expand Down

0 comments on commit 07aba9e

Please sign in to comment.