answered 2025-07-23 04:01:38 +0200
I think the problem is the line https://github.com/sagemath/sage/blob/develop/src/sage/homology/chain_complex.py#L1368: it checks whether an entry in a matrix is 1, whereas it should perhaps check that the entry is a unit.