Skip to content

Commit 97a9d24

Browse files
fingolfincodex
andauthored
meataxe: use TestModulesFitTogether in more places (#6283)
Also adjust formatting of `function` expression headers. Co-authored-by: Codex <codex@openai.com>
1 parent 5b88db1 commit 97a9d24

File tree

3 files changed

+74
-86
lines changed

3 files changed

+74
-86
lines changed

lib/meatauto.gi

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,8 @@ local nv, nw, F, zero, zeroW, gV, gW, k, U, echu, r, homs, s, work, ans, v0,
632632
nv:=V.dimension;
633633
nw:=W.dimension;
634634

635+
TestModulesFitTogether(V,W);
635636
F:=V.field;
636-
if F<>W.field then
637-
Error("different fields");
638-
fi;
639637
zero:=Zero(F);
640638

641639
zeroW:=ListWithIdenticalEntries(nw,zero);
@@ -647,9 +645,6 @@ local nv, nw, F, zero, zeroW, gV, gW, k, U, echu, r, homs, s, work, ans, v0,
647645

648646
# <k> is the number of generators of the acting group
649647
k:=Length(gV);
650-
if k<>Length(gW) then
651-
Error("generator lengths");
652-
fi;
653648

654649
# <U> is the semi-ech basis for the currently known submodule, of
655650
# dimension <r>

0 commit comments

Comments
 (0)