Ask Your Question
1

chain morphism between subdivisions

asked 1 year ago

ps231 gravatar image

updated 1 year ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 1 year ago

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

Preview: (hide)
link

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 ( 1 year ago )

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 ( 1 year ago )

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 ( 1 year ago )

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: 1 year ago

Seen: 191 times

Last updated: Dec 10 '23