| 1 | initial version |
Perhaps someone can explain me here a better way but the only way I found to to this now is as follows. Suppose we have two submodules with bases A and B of M defined by M.submodule(). Suppose moreover B is a submodule of A and both are of finite rank. Then we have to lift the basis of B as per (in this case A and B are the same)
sage: A.quotient_module([A.retract(b.lift()) for b in B.basis()])
Free module generated by {} over Rational Field
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.