-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Implement categories for topological and metric spaces and related categories #18175
Comments
comment:1
I've implemented a bunch of stub categories as an overall layout guide. My method stubs and documentation will need to be expanded upon, including adding (more) tests, along with lifting methods from the hyperbolic geometry module. There is currently an abuse of Eric, hopefully this is enough to get you started on what you'd want/need for SageManifolds. I probably won't work much more on this for a while. New commits:
|
Commit: |
Dependencies: #18174 |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:4
Handled conflicts with #17160. |
comment:5
Hi Travis, Replying to @tscrim:
That's great! Many thanks for implementing this. In a week or two, I'll start to split SageManifolds in small tickets and will of course use your category framework. Eric. |
Changed keywords from topology to topology, sd67 |
comment:7
Hi Travis, I gave a look at the category
Eric. |
comment:8
Replying to @egourgoulhon:
I wasn't sure about the dimension making sense for manifolds unless they are connected as far as my definition. Mainly do we want the disjoint union of a 1-sphere and 2-sphere be a manifold? (Current definition is yes). If so, then is the dimension the maximal dimension of each component? I will leave the decision up to you.
Feel free to change the docstrings and categories as much as you want. However if you just want to get these category stubs into Sage as a smaller step, we can do that too. |
comment:9
Replying to @tscrim:
For all the textbook definitions I am aware of, the disjoint union of a 1-sphere and a 2-sphere is not a manifold. In other words, the dimension is unique among all the connected components of the manifold. So I think the dimension should be at the level of
Apart from the dimension issue discussed above, the current categories seems fine to rebase SageManifolds on them, thanks. I'll try soon and let you know. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Replying to @egourgoulhon:
I split the difference in that I kept a more general definition, but I had dimension be the maximum of the dimensions of each connected component so you don't necessarily have to specify connected.
I made some fixes, specifically I stopped an infinite recursion with metric spaces caused by some of my last-minute refactoring. I forgot to make the other change to the manifold's doc, but I want to make sure you're okay with my definition of a manifold before I keep changing it. This is almost ready for review up to some methods not containing doctests. |
comment:12
Replying to @tscrim:
Do you have a reference for such a definition of a manifold ? It seems non-standard () to me, but I might be wrong. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
On Wikipedia (http://en.wikipedia.org/wiki/Dimension), they are careful to say a connected manifold. I do agree with you that the standard definition, but the usual case only considers connected manifolds. I did find some papers which don't assume each component has the same dimension, but I can't find them in minute I have to write this. I will look later though. For this, I wanted to be general and consistent with CW complexes. I think SageManifolds can create connected components with different dimension, but I haven't tried. |
comment:15
Replying to @tscrim:
Yes. I've looked a little further and found that some authors do allow for different dimensions on different connected components; they then define a pure manifold as a manifold for which the dimension is the same among all connected components. On the other side, other authors refuse to do this: for instance, J.M. Lee, in his Introduction to Topological Manifolds (2nd ed., 2011) says on p. 39: "the first remark is that the definition of a manifold requires that every manifold have a specific, well-defined dimension. This rules out, for example, spaces such as a disjoint union of a line and a plane in R3 ". |
comment:16
My professional opinion as a topologist is that a manifold should have a well-defined dimension n, and every point of that manifold should have a neighborhood homeomorphic to Rn. So even if it's not connected, the different components should have the same dimension. I think that more people would be unpleasantly surprised if we allowed different components to have different dimensions than if we had the more relaxed version. (There is no similar discomfort for CW complexes or simplicial complexes: topologists are perfectly happy having a CW complex with maximal cells of different dimensions.) |
comment:53
Some doctests are still failing: |
comment:56
Thanks for the new version. Two remarks: 1/ The new categories do not appear in the reference manual, in the section "Individual Categories". Shouldn't they ? 2/ The p-adic fields implemented in Sage seems not to have been taken into account:
One should actually have
There could be other metric fields in Sage, or more generally topological rings, that should be included. But maybe this is too much work for this ticket and should be delayed to some subsequent ticket ? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:58
Replying to @egourgoulhon:
Yes they should and now they do.
I've added them in and I reworked the default |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:61
Replying to @tscrim:
Very good.
The default I've merged the last commit of this ticket in all the tickets of #18528, replacing the I've just one last question: In the examples (in and three suggestions of typo corrections:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:63
Replying to @egourgoulhon:
That's very good to hear!
The reason we have
All done (and some other pyflakes cleanup). |
comment:64
Replying to @tscrim:
No not at all; I was just curious. Thanks for the explanation.
Thank you for your work ! It's nice to have these categories. |
comment:65
Thanks for doing the review. |
This comment has been minimized.
This comment has been minimized.
Changed branch from public/categories/topological_metric_spaces-18175 to |
After a discussion at Sage Days 64, we decided to implement a variety of categories pertaining to geometry and topology to lend assistance to SageManifolds (#18528) and to generalize idioms in the hyperbolic geometry (#9439). This implements the following categories:
and axioms:
Depends on #18174
Depends on #17160
CC: @nthiery @egourgoulhon
Component: categories
Keywords: topology, sd67
Author: Travis Scrimshaw
Branch/Commit:
f6fdd7d
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/18175
The text was updated successfully, but these errors were encountered: