Ask Your Question
1

chain morphism between subdivisions

asked 2023-12-09 19:40:14 +0100

ps231 gravatar image

updated 2023-12-09 19:45:43 +0100

I am trying to compute a morphism between chain complexes (and homology/cohomology ultimately) that is induced by a simplicial map. The problem seems to be when I try to specify the map between barycentric subdivisions.

As a concrete example - this works:

S = SimplicialComplex([[1,2]],is_mutable=False)
T = SimplicialComplex([[1,2],[2,3],[1,3]],is_mutable=False)
f = {x[0]:x[0] for x in S.cells()[0]}
H  = Hom(S,T)
z = H(f)
r = z.associated_chain_complex_morphism()

If I try to do the same with the subdivision - I get

S = SimplicialComplex([[1,2]],is_mutable=False).barycentric_subdivision()
S.set_immutable()
T = SimplicialComplex([[1,2],[2,3],[1,3]],is_mutable=False).barycentric_subdivision()
T.set_immutable()
f = {x[0]:x[0] for x in S.cells()[0]}
H  = Hom(S,T)
z = H(f)
r = z.associated_chain_complex_morphism()

I get:

ValueError: matrices must define a chain complex morphism

Any insight would be helpful.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-12-10 07:03:38 +0100

This looks like a bug. Thank you for reporting it; I have posted a fix to https://github.com/sagemath/sage/pull....

edit flag offensive delete link more

Comments

A stupid question since I do not work with sage a lot - is the right way to do this to install the development version of sage and either wait for the pull request to go through or pull in fix directly on my local version?

ps231 gravatar imageps231 ( 2023-12-10 09:51:47 +0100 )edit

That's right: install the development version and pull in the fix. Or wait, but it might take a while, first to get reviewed (positively, I hope) and then merged into a new official release.

John Palmieri gravatar imageJohn Palmieri ( 2023-12-10 19:07:46 +0100 )edit

The pull request now has a positive review, so it should be part of an upcoming beta release: possibly the next one, which would be 10.3.beta2.

John Palmieri gravatar imageJohn Palmieri ( 2023-12-13 04:36:04 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2023-12-09 19:40:14 +0100

Seen: 163 times

Last updated: Dec 10 '23