Is anyone else annoyed with having to type
LengthLimit =>
every time you compute a resolution over a factor ring of a polynomial ring? The following fixes the problem when executed within an M2 session, but causes a bug when it's in my init.m2 file. How can I fix this?
Res = method(Options => options res)
Res Ideal := o -> I -> if o.LengthLimit == infinity then
res(I, LengthLimit => numgens ring I) else res I
Res Module := o -> M -> if o.LengthLimit == infinity then
res(M, LengthLimit => numgens ring I) else res M