Skip to content

Commit 1595d13

Browse files
committed
fix side-effects of rebasing and of changes in GAP
1 parent 5c3aefd commit 1595d13

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

lib/classic.gi

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -784,17 +784,17 @@ InstallMethod( SpecialUnitaryGroupCons,
784784
g:= SpecialUnitaryGroupCons( filt, d, q );
785785
stored:= InvariantSesquilinearForm( g ).matrix;
786786

787-
# If the prescribed form fits then just return.
788-
if stored = form!.matrix then
789-
return g;
790-
fi;
791-
792787
# Check that 'form' lives over the intended field.
793788
F:= GF(q^2);
794789
if not IsSubset( F, form!.basefield ) then
795790
Error( "the defining field of <form> does not fit to <q>" );
796791
fi;
797792

793+
# If the prescribed form fits then just return.
794+
if stored = form!.matrix then
795+
return g;
796+
fi;
797+
798798
# Compute a base change matrix.
799799
# (Check that the canonical forms are equal.)
800800
wanted:= HermitianFormByMatrix( stored, F );
@@ -928,6 +928,11 @@ InstallMethod( SymplecticGroupCons,
928928
g:= SymplecticGroupCons( filt, d, F );
929929
stored:= InvariantBilinearForm( g ).matrix;
930930

931+
# Check that 'form' lives over the intended field.
932+
if not IsSubset( F, form!.basefield ) then
933+
Error( "the defining field of <form> does not fit to <q>" );
934+
fi;
935+
931936
# If the prescribed form fits then just return.
932937
form_matrix:= Matrix( form!.matrix, stored );
933938
#T This 'Matrix' call should become unnecessary.
@@ -936,12 +941,6 @@ InstallMethod( SymplecticGroupCons,
936941
return g;
937942
fi;
938943

939-
# Check that 'form' lives over the intended field.
940-
F:= GF(q);
941-
if not IsSubset( F, form!.basefield ) then
942-
Error( "the defining field of <form> does not fit to <q>" );
943-
fi;
944-
945944
# Compute a base change matrix.
946945
# (Check that the canonical forms are equal.)
947946
wanted:= BilinearFormByMatrix( stored, F );
@@ -964,7 +963,7 @@ InstallMethod( SymplecticGroupCons,
964963
SetName( gg, Name( g ) );
965964
fi;
966965

967-
SetInvariantBilinearForm( gg, rec( matrix:= form!.matrix,
966+
SetInvariantBilinearForm( gg, rec( matrix:= form_matrix,
968967
baseDomain:= F ) );
969968
if HasIsFullSubgroupGLorSLRespectingBilinearForm( g ) then
970969
SetIsFullSubgroupGLorSLRespectingBilinearForm( gg,

lib/conformal.gi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ InstallMethod( ConformalSymplecticGroupCons,
1414
{ filt, G } -> ConformalSymplecticGroupCons( filt,
1515
BilinearFormByMatrix(
1616
InvariantBilinearForm( G ).matrix,
17-
Forms_FieldOfDefinition( G, InvariantBilinearForm( G ) ) ) ) );
17+
Forms_FieldOfDefinition( InvariantBilinearForm( G ), G ) ) ) );
1818

1919
InstallMethod( ConformalSymplecticGroupCons,
2020
"matrix group for group with form",
@@ -23,7 +23,7 @@ InstallMethod( ConformalSymplecticGroupCons,
2323
{ filt, G } -> ConformalSymplecticGroupCons( filt,
2424
BilinearFormByMatrix(
2525
InvariantBilinearFormUpToScalars( G ).matrix,
26-
Forms_FieldOfDefinition( G, InvariantBilinearFormUpToScalars( G ) ) ) ) );
26+
Forms_FieldOfDefinition( InvariantBilinearFormUpToScalars( G ), G ) ) ) );
2727

2828
InstallMethod( ConformalSymplecticGroupCons,
2929
"matrix group for form",

tst/adv/conformal.tst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ gap> for q in [ 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25 ] do
4646
> Error( "problem with CSp(", d, ",", q, ")" );
4747
> fi;
4848
>
49-
> if Size( g ) < 10^7 then
49+
> if Size( g ) < 10^7 and filt = IsPlistRep then
50+
> # Change this as soon as also `IsPlistMatrixRep` works!
5051
> pg:= ConformalSymplecticGroup( IsPermGroup, d, q );
5152
> if Size( g ) <> Size( pg ) then
5253
> Error( "problem with CSp(IsPermGroup, ", d, ",", q, ")" );

0 commit comments

Comments
 (0)