Skip to content

Add ConformalOrthogonalGroup, ConformalUnitaryGroup and the projective conformal groups - #6876

Merged
fingolfin merged 7 commits into
masterfrom
mh-ai/conformal-groups
Dec 4, 2026
Merged

fingolfin merged 7 commits into
masterfrom
mh-ai/conformal-groups

Conversation

@fingolfin

Copy link
Copy Markdown
Member

Add ConformalOrthogonalGroup (CO) and ConformalUnitaryGroup (CU), the groups of matrices that respect a quadratic or hermitian form up to scalars, complementing ConformalSymplecticGroup from #6213. They take the same arguments as GO and GU and use the same default forms, so CO(e,d,q) contains GO(e,d,q) and CU(d,q) contains GU(d,q). Each is generated by the generators of GO or GU plus one similarity whose multiplier generates all multipliers.

Also add ProjectiveConformalSymplecticGroup (PCSp), ProjectiveConformalOrthogonalGroup (PCO) and ProjectiveConformalUnitaryGroup (PCU), the actions on lines, like PSp, PGO and PGU. PCU equals PGU; it exists so that each conformal group has a projective version.

The new attributes InvariantQuadraticFormUpToScalars and InvariantSesquilinearFormUpToScalars give form-based membership tests. ConjugateGroup now carries forms up to scalars over to the conjugate; until now, conjugates of CSp lost theirs. ConformalSymplecticGroup, which was missing from the reference manual, is included there now.

Constructing CO and CU for a prescribed form needs gap-packages/forms#92.

Requested in gap-packages/ClassicalMaximals#1.

AI assistance was used to write the code, tests, documentation and this description.

ConjugateGroup carries the stored invariant forms of a classical group
over to the conjugate, but not the bilinear form up to scalars of
ConformalSymplecticGroup. Conjugates of CSp therefore had no
InvariantBilinearFormUpToScalars and no cheap membership test.

Assisted-by: Generative AI
Add ConformalOrthogonalGroup (CO) and ConformalUnitaryGroup (CU), the
groups of similarities of a quadratic or hermitian form, complementing
ConformalSymplecticGroup. They take the same arguments as GO and GU and
use the same default forms, so they contain GO and GU. Methods for a
prescribed form belong in the Forms package.

The new attributes InvariantQuadraticFormUpToScalars and
InvariantSesquilinearFormUpToScalars give cheap membership tests, also
for conjugates. ConformalSymplecticGroup, so far missing from the
reference manual, is included there now.

Requested in gap-packages/ClassicalMaximals#1.

Assisted-by: Generative AI
Add PCSp, PCO and PCU, the conformal symplectic, orthogonal and unitary
groups modulo the scalar matrices, as permutation groups on lines like
PSp, PGO and PGU. PCU equals PGU; it is there so that each conformal
group has a projective version.

Assisted-by: Generative AI
@fingolfin fingolfin added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements kind: new feature topic: library release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes labels Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.93939% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.36%. Comparing base (fa9cce6) to head (b22189a).
⚠️ Report is 35 commits behind head on master.

Files with missing lines Patch % Lines
grp/conformal.gi 89.87% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6876      +/-   ##
==========================================
+ Coverage   80.25%   80.36%   +0.11%     
==========================================
  Files         687      687              
  Lines      296217   296870     +653     
  Branches     8684     8736      +52     
==========================================
+ Hits       237718   238578     +860     
+ Misses      56679    56477     -202     
+ Partials     1820     1815       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

No default form of GO has a binary block with a = 0 and c <> 0, so the
coordinate swap in the CO constructor never ran; assert this instead.
Test membership of matrices over a larger field, and conjugation of a
group that stores only its quadratic form up to scalars.

Assisted-by: Generative AI

@hulpke hulpke 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.

Good and harmless

@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.

Concerning the orthogonal groups:
In the matrix groups constructors that take a field or a field size as input, the field should have priority over the field size, since the field carries information about the intended internal representation of the matrix entries.

Concerning the unitary groups, we have a problem in this respect.
Currently GU and SU do not admit a field as input, and the argument q means that the matrix entries are in the field GF(q^2).
Introducing a new variant GU( d, F ) where F is a field with q elements would not make sense because the function would have to replace F by a "suitable" degree 2 extension field, and there is no natural construction for that if F is of the form FF( p, n ).
What would be a good definition for GU( d, F ) where F is a prescribed field? Should F be the field with q^2 elements in this case, or would this be too confusing?

Comment thread grp/conformal.gi
# ( [<filt>, ]<e>, <d>, <q> ) or ( [<filt>, ]<e>, <d>, <R> )
return ConformalOrthogonalGroupCons( filt, arg[1], arg[2], arg[3] );
fi;
Error( "usage: ConformalOrthogonalGroup( [<filt>, ][<e>, ]<d>, <q>[, <form>] )\n",

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.

The variant ConformalOrthogonalGroup( [<filt>, ][<e>, ]<d>, <R>[, <form>] ) is missing.
From the viewpoint that the internal representation of field elements (from GF( p, n ) or FF( p, n ), say) can be chosen via the argument R, this variant is the recommended one.

Comment thread grp/conformal.gi Outdated
IsInt,
IsPosInt,
IsField and IsFinite ],
{ filt, e, d, F } -> ConformalOrthogonalGroupCons( filt, e, d, Size( F ) ) );

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.

I recommend the delegation in the other direction:
If only q is given, then replace it by GF(q), but if a finite field is given then pass it to the function that does the work. (The field can be a GF(p^d) or a FF(p, d).)

Comment thread grp/conformal.gd Outdated
##
## <Description>
## This property tests whether the matrix group <A>matgrp</A> is the full
## subgroup of GL respecting, up to scalars, the form stored as the value of

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.

Which GL( d, q ) is meant here: Does q belong to the baseDomain of the form or to the FieldOfMatrixGroup value of the group? (Logically, it should be the latter.)

Comment thread grp/conformal.gd Outdated
## of CU( <A>d</A>, <A>q</A> ) modulo the scalar matrices
## (see <Ref Func="ConformalUnitaryGroup"/>),
## in the category given by the filter <A>filt</A>.
## It equals PGU( <A>d</A>, <A>q</A> ).

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.

If PCU( d, q ) and PGU( d, q ) (which is documented) are equal, why is PCU introduced at all?

The ConformalOrthogonalGroupCons method that does the work now takes a
field, and the variant for a field size delegates to GF(q), as for CSp:
the field determines the representation of the matrix entries. GO still
returns matrices over GF(q) for any field with q elements, so CO rejects
fields whose elements are not internal finite field elements instead of
mixing two representations. Document the field variant and list it in
the usage message.

Assisted-by: Generative AI
The full subgroup is taken in GL(d, F) for the FieldOfMatrixGroup value
F of the group, not for the base domain of the stored form.

Assisted-by: Generative AI
ProjectiveConformalUnitaryGroup equals ProjectiveGeneralUnitaryGroup,
so it adds a name but no group.

Assisted-by: Generative AI

@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.

This is a good solution:
As soon as GO and SO admit non-FFE field elements as matrix entries (I have code for most of the necessary changes), the restriction to fields consisting of FFEs can be removed in CO.

@fingolfin

Copy link
Copy Markdown
Member Author

I have no good solution for the unitary groups right now, and hence left out the option to passing fields to any of them, as before.

Perhaps we actually should have an option to go from a finite field to a "square extension field" ?

@fingolfin
fingolfin merged commit a3cf9ce into master Dec 4, 2026
35 checks passed
@fingolfin
fingolfin deleted the mh-ai/conformal-groups branch December 4, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements kind: new feature release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants