You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixessagemath#36441
The check for whether a custom invariant_form could be used with
Sp(n, R) incorrectly used `isinstance(ring, FiniteField)`. Due to this
it failed to detect finite rings like Zmod(p) (p prime), leading to
the invariant_form being silently ignored by GAP instead of raising
the expected NotImplementedError.
Changed the check to `ring.is_finite()`, which fixes the described
limitation.
Added Doctests.
Steps To Reproduce
GAP does not allow custom invariant forms for finite groups. An implementation error is raised when an invariant form for
GF(p)
is used:If instead someone uses
Zmod(11)
, then this error is avoided but the invariant form is not set:Expected Behavior
Should raise an error
Actual Behavior
It silently fails.
My thought is that this check should be
ring.is_finite()
-- I am happy to change this, but wanted some advice on what's best here.Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: