Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/smallantimagmas/lib/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 26.8.2025 mit Größe 574 B image not shown  

Quelle  utils.gi   Sprache: unbekannt

 
InstallMethod(AntimagmaGeneratorPossibleDiagonals, "for possible antiassociative diagonals", [IsPosInt],
    function(n)
        return Filtered(EnumeratorOfTuples([1 .. n], n), t -> ForAll([1 .. n], i -> t[i] <> i));
end);

InstallMethod(UpToIsomorphism, "for a list of non-equivalent antimagmas", [IsList],
    function(Ms)
        local result, m;
        result := [];

        while not IsEmpty(Ms) do
            m := First(Ms);
            Add(result, m);
            Ms := Filtered(Ms, n -> IsMagmaIsomorphic(m, n) = false);
        od;
        return result;
end);

[ Dauer der Verarbeitung: 0.25 Sekunden  (vorverarbeitet)  ]