Skip to content

Add ConformalOrthogonalGroup and ConformalUnitaryGroup methods - #92

Open
fingolfin wants to merge 2 commits into
masterfrom
mh-ai/conformal-groups
Open

fingolfin wants to merge 2 commits into
masterfrom
mh-ai/conformal-groups

Conversation

@fingolfin

Copy link
Copy Markdown
Member

Install methods that construct the conformal orthogonal and unitary groups preserving a prescribed form, given as a matrix, a form object or a group storing an invariant form. GAP provides the constructors from 4.17 on, so the code is read only if they exist.

Requested in gap-packages/ClassicalMaximals#1.

Assisted-by: Generative AI

Install methods that construct the conformal orthogonal and unitary
groups preserving a prescribed form, given as a matrix, a form object
or a group storing an invariant form. GAP provides the constructors
from 4.17 on, so the code is read only if they exist.

Requested in gap-packages/ClassicalMaximals#1.

Assisted-by: Generative AI
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.63602% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.35%. Comparing base (80ed397) to head (41b7aa6).

Files with missing lines Patch % Lines
lib/conformal2.gi 94.37% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #92      +/-   ##
==========================================
+ Coverage   80.40%   81.35%   +0.94%     
==========================================
  Files           8       10       +2     
  Lines        3670     3931     +261     
==========================================
+ Hits         2951     3198     +247     
- Misses        719      733      +14     
Files with missing lines Coverage Δ
lib/conformal2.gd 100.00% <100.00%> (ø)
lib/conformal2.gi 94.37% <94.37%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ThomasBreuer ThomasBreuer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same remarks as for the corresponding pull request for the GAP library)

Comment thread lib/conformal2.gi
function( filt, mat )
local q, form;

# Guess the intended field.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Guess" sounds dangerous, but this is o.k. since we have a method where the form itself is given as the argument.
I regard the method with a given matrix just as a convenience method.

Comment thread lib/conformal2.gi
# Guess the intended field.
q:= Size( BaseDomain( mat ) );
if q = RootInt( q, 2 )^2 then
form:= HermitianFormByMatrix( mat, GF(q) );

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we switch from BaseDomain( mat ) to GF(q).
Should we perhaps signal an error if mat is written over a non-FFE field?

Comment thread lib/conformal2.gi
"IsQuadraticForm" ],
{ filt, e, d, q, form } -> Forms_ConformalOrthogonalGroup(
ConformalOrthogonalGroupCons( filt, e, d, q ),
form ) );

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in the corresponding pull request for the GAP library:
The method that (calls the function that) does the work should take a field, not a field size,
and the delegations should be from methods that take a field size to methods that take a field, not the other way round.

The methods of ConformalOrthogonalGroupCons for a prescribed form now do
their work in the variants for a field, and those for a field size pass
GF(q) on, as for ConformalSymplecticGroup. This matches GAP, where the
field determines the representation of the matrix entries.

Assisted-by: Generative AI
fingolfin added a commit to gap-system/gap that referenced this pull request Dec 4, 2026
Add ConformalOrthogonalGroup (CO) and ConformalUnitaryGroup (CU), the
groups of matrices that respect a quadratic or hermitian form up to
scalars, alongside ConformalSymplecticGroup. They take the arguments of
GO and GU and use the same default forms, so they contain GO and GU.
CO also accepts a field in place of q; for now its elements must be
internal finite field elements, since GO ignores other representations.
Methods for a prescribed form are in the Forms package
(gap-packages/forms#92).

Add ProjectiveConformalSymplecticGroup (PCSp) and
ProjectiveConformalOrthogonalGroup (PCO), the actions on lines, like
PSp and PGO.

The new attributes InvariantQuadraticFormUpToScalars and
InvariantSesquilinearFormUpToScalars give form-based membership tests.
ConjugateGroup now carries forms up to scalars over to the conjugate,
so conjugates of CSp keep theirs. ConformalSymplecticGroup is now in
the reference manual.

Assisted-by: Generative AI

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants