Skip to content

Commit 0ae8fd3

Browse files
LinearClosureMorphismNC now does a cheap assertion
1 parent 91a0cc1 commit 0ae8fd3

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

LinearClosuresForCAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "LinearClosuresForCAP",
1212
Subtitle := "Linear closures",
13-
Version := "2025.08-04",
13+
Version := "2025.09-01",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

LinearClosuresForCAP/gap/LinearClosure.gi

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,17 @@ end );
354354
InstallOtherMethodForCompilerForCAP( LinearClosureMorphismNC,
355355
[ IsLinearClosure, IsLinearClosureObject, IsList, IsList, IsLinearClosureObject ],
356356
function( category, source, coefficients, support_morphisms, range )
357+
local underlying_category;
358+
359+
underlying_category := UnderlyingCategory( category );
360+
361+
#% CAP_JIT_DROP_NEXT_STATEMENT
362+
Assert( 0, ForAll( support_morphisms, mor -> IsIdenticalObj( CapCategory( mor ), underlying_category ) ) );
357363

358364
return CreateCapCategoryMorphismWithAttributes( category,
359-
source, range,
360-
CoefficientsList, coefficients,
361-
SupportMorphisms, support_morphisms
362-
);
365+
source, range,
366+
CoefficientsList, coefficients,
367+
SupportMorphisms, support_morphisms );
363368

364369
end );
365370

0 commit comments

Comments
 (0)