Skip to content

Implement SmallAntimagmasInformation function similar to SmallGroupInformation#178

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-8e60e49c-07ed-4f98-bd22-eeb4576c898e
Draft

Implement SmallAntimagmasInformation function similar to SmallGroupInformation#178
Copilot wants to merge 3 commits intomainfrom
copilot/fix-8e60e49c-07ed-4f98-bd22-eeb4576c898e

Conversation

Copy link
Contributor

Copilot AI commented Aug 21, 2025

This PR implements a SmallAntimagmasInformation function similar to the SmallGroupInformation function from the smallgrp package, addressing issue #112.

New Functions

SmallAntimagmasInformation(n)

Returns a record with comprehensive information about antiassociative magmas of order n:

  • total: Total number of antiassociative magmas (including isomorphic copies)
  • upToIsomorphism: Number of antiassociative magmas up to isomorphism
  • upToIsomorphismAndAntiisomorphism: Number of antiassociative magmas up to isomorphism and anti-isomorphism

NrSmallAntimagmasUpToAntiisomorphism(n)

Returns the count of antiassociative magmas of order n up to isomorphism and anti-isomorphism.

Usage Example

gap> SmallAntimagmasInformation(3);
rec( total := 52, upToIsomorphism := 10, upToIsomorphismAndAntiisomorphism := 7 )

gap> NrSmallAntimagmasUpToAntiisomorphism(2);
1

Implementation Details

The implementation leverages existing anti-isomorphism functionality (IsMagmaAntiisomorphic) to identify equivalence classes under both isomorphism and anti-isomorphism. The algorithm:

  1. Starts with all magmas up to isomorphism (using AllSmallAntimagmas)
  2. Iteratively checks if each magma is anti-isomorphic to any previously processed magma
  3. Only counts magmas that form new equivalence classes
  4. Maintains the mathematical relationship: upToIsomorphismAndAntiisomorphism ≤ upToIsomorphism ≤ total

Files Changed

  • lib/smallantimagmas.gd: Added function declarations with documentation
  • lib/smallantimagmas.gi: Added function implementations
  • tst/test_smallantimagmas_information.tst: Added comprehensive tests verifying mathematical properties

The implementation follows existing code patterns and maintains compatibility with all existing functionality.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits August 21, 2025 11:59
…morphism functions

Co-authored-by: limakzi <50334623+limakzi@users.noreply.github.com>
Co-authored-by: limakzi <50334623+limakzi@users.noreply.github.com>
Copilot AI changed the title [WIP] In smallgrp package we have SmallGroupInformation global method. We want to implement something similar in smallantimagmas. Here you are the issue: @gap-packages/smallantimagmas/issues/112 For now it is suffient to present number of all antiasso... Implement SmallAntimagmasInformation function similar to SmallGroupInformation Aug 21, 2025
Copilot AI requested a review from limakzi August 21, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants