Skip to content

Commit 1375b8b

Browse files
Fix size issue in SpStabilizerOfIsotropicSubspace (#128)
1 parent f569bac commit 1375b8b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

gap/ReducibleMatrixGroups.gi

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,10 @@ function(d, q, k)
425425

426426
SpDim := d - 2 * k;
427427
if SpDim <> 0 then
428-
# These two generators are diagonal block matrices with 2x2 blocks
429-
# that generate a subgroup of Sp(d, q) corresponding to Sp(d - 2 * k, q).
428+
# These two generators are diagonal block matrices with a 3x3 arrangement
429+
# of blocks with the 3 diagonal blocks being square of size k, d - 2k and
430+
# k respectively and the other blocks being zero. They generate a subgroup
431+
# of Sp(d, q) corresponding to Sp(d - 2 * k, q).
430432
for Spgen in GeneratorsOfGroup(Sp(SpDim, q)) do
431433
Yi := IdentityMat(d, field);
432434
Yi{[k + 1 .. d - k]}{[k + 1 .. d - k]} := Spgen;
@@ -442,7 +444,9 @@ function(d, q, k)
442444

443445
# This generator is in Sp(d, q) and stabilises the group generated by
444446
# the first k unit vectors.
445-
Add(gens, I + SquareSingleEntryMatrix(field, d, d, d - k) - SquareSingleEntryMatrix(field, d, k + 1, 1));
447+
if SpDim <> 0 then
448+
Add(gens, I + SquareSingleEntryMatrix(field, d, d, d - k) - SquareSingleEntryMatrix(field, d, k + 1, 1));
449+
fi;
446450

447451
# Size according to Table 2.3 of [BHR13]
448452
result := MatrixGroupWithSize(field, gens, q ^ (k * d + QuoInt(k - 3 * k * k, 2)) * SizeGL(k, q) * SizeSp(d - 2 * k, q));

tst/standard/ReducibleMatrixGroups.tst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ gap> TestSpStabilizerOfIsotropicSubspace := function(n, q, k)
4646
> CheckSize(G);
4747
> end;;
4848
gap> TestSpStabilizerOfIsotropicSubspace(4, 2, 1);
49+
gap> TestSpStabilizerOfIsotropicSubspace(4, 5, 2);
4950
gap> TestSpStabilizerOfIsotropicSubspace(4, 9, 1);
5051
gap> TestSpStabilizerOfIsotropicSubspace(6, 4, 1);
5152
gap> TestSpStabilizerOfIsotropicSubspace(6, 7, 2);
@@ -132,7 +133,9 @@ gap> TestOmegaStabilizerOfNonDegenerateSubspace(1, 10, 7, 0, 3);
132133
gap> TestOmegaStabilizerOfNonDegenerateSubspace(-1, 8, 5, 0, 1);
133134
gap> TestOmegaStabilizerOfNonDegenerateSubspace(-1, 8, 7, 0, 3);
134135
gap> TestOmegaStabilizerOfNonDegenerateSubspace(-1, 6, 7, 0, 1);
135-
gap> TestOmegaStabilizerOfNonDegenerateSubspace(-1, 10, 7, 0, 3);
136+
#@if IsBound(CLASSICAL_MAXIMALS_RUN_BROKEN_TESTS)
137+
gap> TestOmegaStabilizerOfNonDegenerateSubspace(-1, 10, 7, 0, 3); # info messages: '#I Have 58653 points' etc.
138+
#@fi
136139

137140
# Test error handling
138141
gap> OmegaStabilizerOfNonDegenerateSubspace(2, 5, 5, 1, 2);

0 commit comments

Comments
 (0)