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

more examples of simplicial complexes: RP^n, CP^2, etc. #9125

Closed
jhpalmieri opened this issue Jun 3, 2010 · 27 comments
Closed

more examples of simplicial complexes: RP^n, CP^2, etc. #9125

jhpalmieri opened this issue Jun 3, 2010 · 27 comments

Comments

@jhpalmieri
Copy link
Member

This patch adds more examples of simplicial complexes: real projective spaces (that is, RPd for any positive d), CP2, and the Poincare homology sphere. Some of these are the minimal triangulations, some are not; see the documentation.

These are important test cases for homology and other computations which I hope will be implemented soon -- see tickets #6102 and #6103, for instance.

Apply:

trac_9125-projective-space.patch

trac_9125-cumulative-doctest.patch

Component: algebraic topology

Author: John Palmieri

Reviewer: Robert Goss, Marshall Hampton

Merged: sage-4.7.alpha4

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

@jhpalmieri jhpalmieri added this to the sage-4.7 milestone Jun 3, 2010
@jhpalmieri jhpalmieri self-assigned this Jun 3, 2010
@jhpalmieri
Copy link
Member Author

Attachment: trac_9125-projective-space.patch.gz

@sagetrac-robert-goss
Copy link
Mannequin

sagetrac-robert-goss mannequin commented Nov 10, 2010

comment:2

A very useful patch the documentation is very good.

The doc tests all run and the functionality seems correct.

I have been working on a function to generate simplicial complexes for the lens spaces. Although the implimentation is naive would it be something which would be useful to put in this patch?

Robert

@jhpalmieri
Copy link
Member Author

comment:3

Replying to @sagetrac-robert-goss:

I have been working on a function to generate simplicial complexes for the lens spaces. Although the implimentation is naive would it be something which would be useful to put in this patch?

I think having lens spaces would be very nice, although maybe it could go on another ticket so that the current patch can get merged. If you post something, I'll almost certainly review it. A naive approach would be fine, but you might also look at some of the papers referenced in the current patch. In particular,

  • Basudeb Datta, "Minimal triangulations of manifolds", J. Indian Inst. Sci. 87 (2007), no. 4, 429-449.

  • Frank H. Lutz, "Triangulated Manifolds with Few Vertices: Combinatorial Manifolds", preprint (2005), 484 arXiv:math/0506372.

are both expository papers which might include some discussion of lens spaces, or might give references. (I think I've seen discussions of triangulations of lens spaces somewhere, but I don't remember where. You might also try searching the web.)

@jdemeyer
Copy link

comment:4

robert_goss: please add your real name to Account Names mapped to Real Names and also add it on this ticket as Reviewer.

@sagetrac-robert-goss
Copy link
Mannequin

sagetrac-robert-goss mannequin commented Nov 14, 2010

Reviewer: Robert Goss

@sagetrac-robert-goss
Copy link
Mannequin

sagetrac-robert-goss mannequin commented Nov 14, 2010

comment:5

Replying to @jdemeyer:

robert_goss: please add your real name to Account Names mapped to Real Names and also add it on this ticket as Reviewer.

Hi thank you jdemeyer this is my first time contributing directly to sage and I am not sure of all the procedures.

Is there anything else I should do?

@jdemeyer
Copy link

Merged: sage-4.6.1.alpha2

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Nov 18, 2010

comment:7

See the notes from François Bissey

https://groups.google.com/group/sage-devel/browse_thread/thread/9e4cef8c8558150?hl=en

that this may be the cause of some timeouts seen on sage-gentoo.

Dave

@jdemeyer
Copy link

Changed merged from sage-4.6.1.alpha2 to none

@jdemeyer
Copy link

comment:8

The tests take way too long time. This is on a 32-bit Linux Pentium 4 system:

sage: P5 = simplicial_complexes.RealProjectiveSpace(Integer(5))
sage: time P5.homology()
CPU times: user 4083.68 s, sys: 0.63 s, total: 4084.31 s
Wall time: 4084.50 s
{0: 0, 1: C2, 2: 0, 3: C2, 4: 0, 5: Z}

@jdemeyer jdemeyer reopened this Nov 18, 2010
@jdemeyer
Copy link

Work Issues: reduce doctest time

@jhpalmieri
Copy link
Member Author

comment:10

Apply this patch on top of the other one. This way the doctest will only run if you give it a command like sage -t -long -only-optional=chomp. Since the test finishes in about a second when using CHomP, as opposed to around half an hour (sometimes causing timeouts, since 1800 seconds is the cutoff for long doctests) without CHomP, this seems like the right solution.

@jdemeyer
Copy link

comment:11

On the same Pentium 4 system, the following test

sage:P4 = simplicial_complexes.RealProjectiveSpace(4)

takes almost 4 seconds, so that should also be # long time (and hence also the following tests involving P4).

@jdemeyer
Copy link

Changed work issues from reduce doctest time to none

@jhpalmieri
Copy link
Member Author

comment:12

Replying to @jdemeyer:

On the same Pentium 4 system, the following test takes almost 4 seconds, so that should also be # long time (and hence also the following tests involving P4).

I'll do that, but are you using specific guidelines about what constitutes "long"? On a 2-year-old iMac, it takes about 10 seconds to doctest the whole file ("sage -t examples.py", not "sage -t -long"). That doesn't seem excessively long to me, especially since the machine isn't new, and it wasn't a top-of-the line machine even when it was new.

@jdemeyer
Copy link

comment:13

The guideline is that 1 second is the bound for # long time. In the Sage developer manual, there is the following example:

sage: E = EllipticCurve([0, 0, 1, -1, 0])
sage: E.regulator()              # long time (1 second)
0.0511114082399688

@jhpalmieri
Copy link
Member Author

apply on top of other patch

@jhpalmieri
Copy link
Member Author

comment:14

Attachment: trac_9125-doctest-fix.patch.gz

Can this get reviewed soon? The original patch was reviewed positively already, so I think only "trac_9125-doctest-fix.patch" needs to be reviewed. That one just marks some doctests as being "long time" or "optional - CHomP", so I think it should be easy to review.

@sagetrac-mhampton
Copy link
Mannequin

sagetrac-mhampton mannequin commented Mar 28, 2011

comment:15

Looks like you missed one "long time" addition, so there is a doctest failure.

**********************************************************************
File "/Users/mh/sagestuff/sage-4.7.alpha2/devel/sage-t1/sage/homology/examples.py", line 518:
    sage: P4.dimension()
Exception raised:
    Traceback (most recent call last):
      File "/Users/mh/sagestuff/sage-4.7.alpha2/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/Users/mh/sagestuff/sage-4.7.alpha2/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/Users/mh/sagestuff/sage-4.7.alpha2/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_12[7]>", line 1, in <module>
        P4.dimension()###line 518:
    sage: P4.dimension()
    NameError: name 'P4' is not defined
**********************************************************************

I am attaching a cumulative patch that fixes that.

@sagetrac-mhampton
Copy link
Mannequin

sagetrac-mhampton mannequin commented Mar 28, 2011

Use instead of previous doctest patch

@sagetrac-mhampton
Copy link
Mannequin

sagetrac-mhampton mannequin commented Mar 28, 2011

comment:16

Attachment: trac_9125-cumulative-doctest.patch.gz

Oops, I forgot to fold so my patch is only cumulative with respect to trac_9125-doctest-fix.patch.

@sagetrac-mhampton
Copy link
Mannequin

sagetrac-mhampton mannequin commented Mar 28, 2011

comment:17

Looks good, passes all tests in sage/homology without chomp and everything passes -long -optional with chomp installed.

John, I think this can have a positive review but you should just double-check my patch. (Its a tiny change.) If its OK then you can change to positive review.

@sagetrac-mhampton

This comment has been minimized.

@sagetrac-mhampton

This comment has been minimized.

@jhpalmieri
Copy link
Member Author

comment:20

Thanks, Marshall, looks good. Tests failed with just my two patches, but they pass with yours.

@jhpalmieri
Copy link
Member Author

Changed reviewer from Robert Goss to Robert Goss, Marshall Hampton

@jdemeyer
Copy link

jdemeyer commented Apr 7, 2011

Merged: sage-4.7.alpha4

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

2 participants