Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreservedSesquilinearForms runs into an error when no form is preserved #38

Open
fingolfin opened this issue Oct 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@fingolfin
Copy link
Member

Consider this error:

gap> PreservedSesquilinearForms(GL(2,5));
[ < bilinear form > ]
gap> PreservedSesquilinearForms(GL(3,5));
Error, Record Element: <rec> must be a record (not a dense plain list) in
  for y in forms!.invariantforms do
    if y[1] in [ "symplectic", "orthogonalplus", "orthogonalminus", "orthogonalcircle" ]
        then
        newform := BilinearFormByMatrix( y[2], field );
        Add( newforms, newform );
    elif y[1] = "unitary" then
        newform := HermitianFormByMatrix( y[2], field );
        Add( newforms, newform );
    elif y[1] = "linear" then
        i := NrRows( One( grp ) );
        newform := BilinearFormByMatrix( NullMat( i, i, field ), field );
        Add( newforms, newform );
    fi;
od; at GAPROOT/pkg/forms/lib/recognition.gi:1012 called from
...

Apparently it is not ready to deal with all possible outputs of PreservedFormsOp:

gap> PreservedFormsOp(GL(2,5));
rec( field := GF(5),
  invariantforms :=
    [ [ "symplectic", [ [ 0*Z(5), Z(5)^0 ], [ Z(5)^2, 0*Z(5) ] ], [ fail, Z(5)^0 ] ] ],
  maybeDual := true, maybeFrobenius := false )
gap> PreservedFormsOp(GL(3,5));
rec( field := GF(5), invariantforms := [ [ "linear" ] ], maybeDual := false,
  maybeFrobenius := false )
@fingolfin fingolfin added the bug Something isn't working label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant