sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.3k stars 447 forks source link

Automorphisms of simplicial complexes #13943

Closed fchapoton closed 11 years ago

fchapoton commented 11 years ago

It would be good to have a method to compute the automorphism group of a simplicial complex.

This patch implements that.

And also a procedure to check wether two simplicial complexes are isomorphic

Component: algebraic topology

Keywords: simplicial automorphism

Author: Frédéric Chapoton

Reviewer: Nathann Cohen

Merged: sage-5.7.beta1

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

fchapoton commented 11 years ago
comment:2

Better version, acting on vertices. Thanks, Nathann !

fchapoton commented 11 years ago
comment:3

It would be good to have a method to compute the automorphism group of a simplicial complex.

This patch implements that.

And also a procedure to check wether two simplicial complexes are isomorphic.

fchapoton commented 11 years ago

Description changed:

--- 
+++ 
@@ -1,3 +1,5 @@
 It would be good to have a method to compute the automorphism group of a simplicial complex.

 This patch implements that.
+
+And also a procedure to check wether two simplicial complexes are isomorphic
6bdad4c1-1e26-4f2f-a442-a01a2292c181 commented 11 years ago
comment:5

Excellent ! Well, it seems good to go, it will certainly be useful eventually, and at the very least in #13888. Passes all tests, does its job :-)

Nathann

jdemeyer commented 11 years ago

Reviewer: Nathann Cohen

jdemeyer commented 11 years ago
comment:7

Sphinx is unhappy:

/release/merger/sage-5.7.beta1/local/lib/python2.7/site-packages/sage/homology/simplicial_complex.py:docstring of sage.homology.simplicial_complex:3: WARNING: Bullet list ends without a blank line; unexpected unindent.
fchapoton commented 11 years ago
comment:8

I think I have corrected the sphinx issue in the new patch.

6bdad4c1-1e26-4f2f-a442-a01a2292c181 commented 11 years ago
comment:9

Just checked again, and there's no warning... Sorry for that ^^;

Nathann

jdemeyer commented 11 years ago
comment:10

On rosemary (RHEL 5.6 x86_64):

sage -t  --long -force_lib devel/sage/sage/homology/simplicial_complex.py
**********************************************************************
File "/home/buildbot/build/sage/rosemary-1/rosemary_full/build/sage-5.7.beta1/devel/sage-main/sage/homology/simplicial_complex.py", line 2914:
    sage: Z1.is_isomorphic(Z2, certify=True)
Expected:
    (True, {'a': 't', 1: 'e', 2: 4, 3: 'r'})
Got:
    (True, {'a': 'r', 2: 4, 3: 't', 1: 'e'})
**********************************************************************
File "/home/buildbot/build/sage/rosemary-1/rosemary_full/build/sage-5.7.beta1/devel/sage-main/sage/homology/simplicial_complex.py", line 2972:
    sage: Z.automorphism_group()
Expected:
    Permutation Group with generators [(3,4)]
Got:
    Permutation Group with generators [(1,4)]
**********************************************************************
File "/home/buildbot/build/sage/rosemary-1/rosemary_full/build/sage-5.7.beta1/devel/sage-main/sage/homology/simplicial_complex.py", line 2974:
    sage: Z.automorphism_group(translation=True)
Expected:
    (Permutation Group with generators [(3,4)], {'a': 4, 1: 1, 2: 2, 3: 3})
Got:
    (Permutation Group with generators [(1,4)], {'a': 1, 1: 2, 2: 3, 3: 4})
**********************************************************************
fchapoton commented 11 years ago
comment:11

I have tried to make more intrinsic doctests, and I hope they will pass.

fchapoton commented 11 years ago
comment:12

Attachment: trac-13943-automorphism-group-of-simplical-fc.patch.gz

new patch, with good tests

6bdad4c1-1e26-4f2f-a442-a01a2292c181 commented 11 years ago
comment:13

Well, it looks good to me again. The first dictionary in the doctests should not be a problem as the hash function of an integer is the integer itself, and the other tests are now isomorphism tests, returning True/False.

Sooooooooo I guess it's good to go again !

Nathann

jdemeyer commented 11 years ago

Merged: sage-5.7.beta1