source of the "random" bug

9 views
Skip to first unread message

David Eisenbud

unread,
May 17, 2025, 2:32:43 AMMay 17
to maca...@googlegroups.com
I had put
HomologicalAlgebraPackage = "Complexes"
into my init.m2 file to make the switch from "ChainComplexes".

When I commented that out, the bug disappeared.


--
David Eisenbud
Professor of Mathematics
University of California Berkeley

Mahrud Sayrafi

unread,
May 17, 2025, 6:25:31 AMMay 17
to maca...@googlegroups.com
This is strange. Do you mean the issue specifically in your package disappeared or the example you provided? I think the bug is still there when I run your example using either Complexes or OldChainComplexes.

Mahrud

--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/macaulay2/CAFbL_pZUQeG_5x6-%2B2w5T_tCmheOm7yaE3%3Dw7dAKXC3Vtsj1sQ%40mail.gmail.com.

David Eisenbud

unread,
May 17, 2025, 1:33:59 PMMay 17
to maca...@googlegroups.com
You are right, the bug is there both ways. But for example if S = k[t] then
random(S^1, S^2)
works correctly (ie the old way.) I mistakenly tested the "bug" on that example when I said
it was only there without the new Complexes.

David

--
David Eisenbud
Professor of Mathematics
University of California Berkeley


Mahrud Sayrafi

unread,
May 17, 2025, 2:38:06 PMMay 17
to maca...@googlegroups.com
That makes sense. The case where source and target are free is handled differently.

Mahrud

David Eisenbud

unread,
May 17, 2025, 2:40:54 PMMay 17
to maca...@googlegroups.com
I would like to get your fix into my systems, so that I can use the package that is failiing (to do with finding summands). What's the best way to do that?

thanks,

David

--
David Eisenbud
Professor of Mathematics
University of California Berkeley

Mahrud Sayrafi

unread,
May 17, 2025, 3:30:49 PMMay 17
to maca...@googlegroups.com
I'm not sure what's the best way, but the most immediate way is this: type "locate (random, Module, Module)", click on the filename and press enter to open the file, then in the second line of the method swap F and G.

It might make sense to have a quick patch release, but maybe we should wait a few days to see if any other bugs are revealed.

Mahrud

David Eisenbud

unread,
May 17, 2025, 3:38:32 PMMay 17
to maca...@googlegroups.com
Thanks - done! Do I need to brew M2 again after this?

David

--
David Eisenbud
Professor of Mathematics
University of California Berkeley

Mahrud Sayrafi

unread,
May 17, 2025, 3:59:39 PMMay 17
to maca...@googlegroups.com
No, if you do that I think it'll undo the fix.

Mahrud

David Eisenbud

unread,
May 17, 2025, 4:09:10 PMMay 17
to maca...@googlegroups.com
Thanks -- everything is now working (had to add LengthLimits in quite a few places, too.)

David

--
David Eisenbud
Professor of Mathematics
University of California Berkeley

Reply all
Reply to author
Forward
0 new messages