Skip to content

Commit

Permalink
wup
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Oct 29, 2024
1 parent 116e103 commit c6eead8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions M2/Macaulay2/m2/local.m2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- Copyright 1993-1998 by Daniel R. Grayson, Michael E. Stillman
-- TODO: move to Varieties

needs "ext.m2"

Expand Down
10 changes: 9 additions & 1 deletion M2/Macaulay2/packages/Varieties.m2
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ cohomology(ZZ, ProjectiveVariety, SumOfTwists) := Module => opts -> (p, X, S) ->
-- TODO: when p>0, HH^p(F(*)) gives a "not implemented yet" error
F.cache.HH#(p, b) ??= if p == 0
then twistedGlobalSectionsModule(F, b)
-- uses local cohomology from m2/local.m2
else HH^(p+1)(module F, Degree => b))

-- HH_(>=b)^p(X, F)
Expand Down Expand Up @@ -671,8 +672,14 @@ cohomology(ZZ, ProjectiveVariety, CoherentSheaf) := Module => opts -> (p, X, F)
-- singularities, Cohen–Macaulay schemes, not just smooth schemes.
-- TODO: check that X is proper (or at least finite type)
Ext^(n-p)(M, w));
-- TODO: use part?
k := coefficientRing ring X;
F.cache.HH#p = k^(rank source basis(0, G)))
H := k^(rank source basis(0, G));
-- TODO: to get koszul working
--H.cache.koszul = h -> psi * sheaf(phi.variety, homomorphism(g * h)) * phi;
--H.cache.formation = FunctionApplication { HH, (p, X, F) };
H.cache.HH = (p, F);
F.cache.HH#p = H)

-----------------------------------------------------------------------------
-- Module of twisted global sections Γ_*(F)
Expand Down Expand Up @@ -835,6 +842,7 @@ Ext(ZZ, SheafOfRings, CoherentSheaf) :=
Ext(ZZ, CoherentSheaf, SheafOfRings) :=
Ext(ZZ, CoherentSheaf, CoherentSheaf) := Module => opts -> (n,F,G) -> (
E := Ext^n(F, G(>=0), opts ++ { MinimalGenerators => false });
-- TODO: use part?
k := coefficientRing ring E;
V := k^(rank source basis(0, E));
V.cache.formation = FunctionApplication { Ext, (n, F, G) };
Expand Down

0 comments on commit c6eead8

Please sign in to comment.