Skip to content

Commit

Permalink
declared and installed PrimaryIdealOfGrAnnOfPowerAtTheOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-barakat committed Sep 14, 2017
1 parent 43c0d8e commit 1dda364
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Subtitle := "A homalg based package for D-modules",
## See '?Extending: Version Numbers' in GAP help for an explanation
## of valid version numbers. For an automatic package distribution update
## you must provide a new version number even after small changes.
Version := "2015.02.25",
Version := "2015.02.26",
## Please adjust also the VERSION file in the package directory when
## changing this.

Expand Down
4 changes: 3 additions & 1 deletion gap/D-Modules.gd
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ DeclareOperation( "OrderOfFirstEquality",
DeclareOperation( "FiltrationByOrder",
[ IsInt, IsHomalgModule ] );

DeclareOperation( "PrimaryIdealOfGrAnnOfPowerAtTheOrigin",
[ IsInt, IsDivisor ] );

####################################
#
# synonyms:
#
####################################

32 changes: 32 additions & 0 deletions gap/D-Modules.gi
Original file line number Diff line number Diff line change
Expand Up @@ -462,3 +462,35 @@ InstallMethod( FiltrationByOrder,
return HomalgAscendingFiltration( filt );

end );

##
InstallMethod( PrimaryIdealOfGrAnnOfPowerAtTheOrigin,
"for a homalg divisor",
[ IsInt, IsDivisorRep ],

function( s, D )
local anns, granns, R, m, pr;

anns := AnnihilatorOfPower( s, D );

granns := AssociatedOrderGradedModule( anns );

R := HomalgRing( granns );

m := Indeterminates( BaseRing( R ) );
m := LeftSubmodule( m );
m := R * m;

pr := PrimaryDecomposition( granns );

pr := First( pr, a -> a[2] = m );

if pr = fail then
return m^0;
fi;

SetAssociatedPrimes( pr[1], [ pr[2] ] );

return pr[1];

end );

0 comments on commit 1dda364

Please sign in to comment.