@@ -354,12 +354,17 @@ end );
354
354
InstallOtherMethodForCompilerForCAP( LinearClosureMorphismNC,
355
355
[ IsLinearClosure, IsLinearClosureObject, IsList, IsList, IsLinearClosureObject ] ,
356
356
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 ) ) );
357
363
358
364
return CreateCapCategoryMorphismWithAttributes( category,
359
- source, range,
360
- CoefficientsList, coefficients,
361
- SupportMorphisms, support_morphisms
362
- );
365
+ source, range,
366
+ CoefficientsList, coefficients,
367
+ SupportMorphisms, support_morphisms );
363
368
364
369
end );
365
370
@@ -638,7 +643,7 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_LINEAR_CLOSURE,
638
643
639
644
coeffs := ListX( CoefficientsList( alpha ), CoefficientsList( beta ), { a,b } -> a * b );
640
645
641
- supp := ListX( SupportMorphisms( alpha ), SupportMorphisms( beta ), { alpha, beta } -> PreCompose( underlying_category, alpha, beta ) );
646
+ supp := ListX( SupportMorphisms( alpha ), SupportMorphisms( beta ), { a, b } -> PreCompose( underlying_category, a, b ) );
642
647
643
648
return MorphismConstructor( cat, Source( alpha ), Pair( coeffs, supp ), Range( beta ) );
644
649
0 commit comments