Given a convex polyhedral space X and a finite linear group G, computes the (simplicial) (co)homology of the orbit space X/G. Computes a Dirichlet fundamental domain and refines triangulation by including extra vertices which are fixed by the action of G.
This code was originally written for the case of unlabled networks with non-negative, real edge weights where
REQUIRED SOFTWARE:
Sage - http://www.sagemath.org/
lrslib - http://cgm.cs.mcgill.ca/~avis/C/lrs.html
SETUP:
This code is written in Python for the SageMath software system. You will need to install and configure the latest version of SageMath, available at http://www.sagemath.org/.
The Polyhedra functions in Sage are able to make use of the following optional Sage package 'lrslib'. This is most easily installed within Sage using the following terminal command:
sage -i lrslib
Using this optional package will increase the speed these computations immensely, very roughly by a factor of 10.
RUNTIME:
To get started, open
orbit_space_simplicial_homology.ipynb
in the Sage environment, i.e. a Jupyter notebook with the Sage kernel. You will receive a prompt to set the global variable
n = "your desired number of vertices"
The global variable
F=fund_domain([1,2,3,4,5,6.1])[1]; F
http://doc.sagemath.org/html/en/reference/geometry/sage/geometry/polyhedron/constructor.html
To compute the cohomology, run the rest of the notebook. It will compute the
#compute a cross section of the fundamental domain (sum of components is constant)
F2=cross_section(F[1])
#compute vertices fixed by G action
vertices=fixed_verts(F2,QQ); vertices
#compute glued 0-faces
zero_faces=glued_faces(0); zero_faces
#compute glued 1-faces
one_faces=glued_faces(1); one_faces
...
#list of all glued face
glued_face_list=[zero_faces,one_faces,two_faces,…]
#form the chain complex with truncation at degree 2
#computes each boundary map
cc = chain_complex(max_degree=2)
#compute the homology of the chain complex
cc.homology()
G-CW complexes: https://math.mit.edu/research/undergraduate/urop-plus/documents/2016/Liu.pdf