Skip to content

Commit 6f3b785

Browse files
Use proper class for Congruence
1 parent 8ee4714 commit 6f3b785

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2586
-1754
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
This provides configuration for the generation of the docs
55
"""
6+
67
import importlib.metadata
78
import sys
89
from pathlib import Path

docs/source/data-structures/presentations/to-present.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ letters of the type of word specified in *Return*.
159159

160160
.. _knuth-bendix-to-presentation:
161161

162-
Converting a :any:`KnuthBendixStringRewriteTrie` to a :any:`PresentationStrings`
162+
Converting a :any:`KnuthBendix` to a :any:`PresentationStrings`
163163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164164

165165
To construct a :any:`PresentationStrings` from a
166-
:any:`KnuthBendixStringRewriteTrie`, specify the following values for
166+
:any:`KnuthBendix`, specify the following values for
167167
*args*:
168168

169-
* **kb** (:any:`KnuthBendixStringRewriteTrie`) -- the
170-
:any:`KnuthBendixStringRewriteTrie` from which to obtain the rules.
169+
* **kb** (:any:`KnuthBendix`) -- the
170+
:any:`KnuthBendix` from which to obtain the rules.
171171

172172
Additionally, specify the following for *Return*:
173173

@@ -186,7 +186,7 @@ this function.
186186

187187
.. seealso::
188188

189-
* :any:`KnuthBendixStringRewriteTrie.active_rules`; and
189+
* :any:`KnuthBendix.active_rules`; and
190190
* :any:`Runner.run`.
191191

192192
.. doctest:: Python

docs/source/data-structures/to-function.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This page contains links to the documentation of the uses of the function
1414
another type. These mostly only apply to the types implementing the main
1515
algorithms in ``libsemigroups_pybind11``.
1616

17-
For example, to convert a :any:`ToddCoxeterWord` ``tc`` object to a
17+
For example, to convert a :any:`ToddCoxeter` ``tc`` object to a
1818
:any:`FroidurePinPBR` object, you can simply do ``to(tc, Return=FroidurePin)``.
1919

2020
A summary of the possible conversions available in ``libsemigroups_pybind11`` of

docs/source/data-structures/word-graph/forest.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
Forest
1010
======
1111

12-
This class represents the collection of spanning trees of a word graph.
12+
.. autoclass:: Forest
13+
:doc-only:
14+
:class-doc-from: class
1315

1416
Contents
1517
--------
@@ -35,4 +37,4 @@ Full API
3537
.. autoclass:: Forest
3638
:members:
3739
:show-inheritance:
38-
:class-doc-from: class
40+
:class-doc-from: init

docs/source/main-algorithms/action/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The following helper functions are also available:
6868
... [0, 0, 1, 0],
6969
... [0, 0, 0, 0]])
7070
... )
71-
<incomplete action with 5 generators, 1 points>
71+
<incomplete right action with 5 generators, 1 points>
7272
>>> len(o)
7373
553
7474

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
.. Copyright (c) 2024 J. D. Mitchell
1+
.. Copyright (c) 2025 J. D. Mitchell
22
33
Distributed under the terms of the GPL license version 3.
44
55
The full license is in the file LICENSE, distributed with this software.
66
7-
.. currentmodule:: _libsemigroups_pybind11
7+
.. currentmodule:: libsemigroups_pybind11
88

9-
The CongruenceWord class
10-
========================
9+
The Congruence class
10+
====================
1111

12-
.. autoclass:: CongruenceWord
12+
.. autoclass:: Congruence
1313
:doc-only:
1414
:class-doc-from: class
1515

@@ -19,21 +19,29 @@ Contents
1919
.. autosummary::
2020
:signatures: short
2121

22-
~CongruenceWord
23-
CongruenceWord.add_generating_pair
24-
CongruenceWord.contains
25-
CongruenceWord.copy
26-
CongruenceWord.currently_contains
27-
CongruenceWord.generating_pairs
28-
CongruenceWord.init
29-
CongruenceWord.max_threads
30-
CongruenceWord.number_of_classes
31-
CongruenceWord.number_of_runners
32-
CongruenceWord.presentation
22+
~Congruence
23+
Congruence.add_generating_pair
24+
Congruence.contains
25+
Congruence.copy
26+
Congruence.currently_contains
27+
Congruence.generating_pairs
28+
Congruence.get
29+
Congruence.has
30+
Congruence.init
31+
Congruence.max_threads
32+
Congruence.number_of_classes
33+
Congruence.number_of_runners
34+
Congruence.presentation
3335

3436
Full API
3537
--------
3638

37-
.. autoclass:: CongruenceWord
39+
.. autoclass:: Congruence
3840
:class-doc-from: init
3941
:members:
42+
:exclude-members:
43+
current_state, dead, finished, internal_generating_pairs, kill,
44+
last_report, report, report_every, report_prefix, report_why_we_stopped,
45+
reset_last_report, reset_start_time, run, run_for, run_until, running,
46+
running_for, running_until, start_time, started, state, stopped,
47+
stopped_by_predicate, success, timed_out,

docs/source/main-algorithms/congruence/helpers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
55
The full license is in the file LICENSE, distributed with this software.
66
7-
CongruenceWord helper functions
8-
===============================
7+
Congruence helper functions
8+
===========================
99

1010
This page contains the documentation for various helper functions for
11-
manipulating :any:`CongruenceWord` objects.
11+
manipulating :any:`Congruence` objects.
1212

1313
Contents
1414
--------

docs/source/main-algorithms/congruence/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Congruence
1010
==========
1111

1212
This page contains links to the documentation for the class
13-
:any:`CongruenceWord`.
13+
:any:`Congruence`.
1414

15-
Helper functions for the class :any:`CongruenceWord` can be found in the
15+
Helper functions for the class :any:`Congruence` can be found in the
1616
submodule :doc:`helpers`. At present the helper
1717
functions in these two namespaces are identical, because there are no helper
18-
functions that only apply to the :any:`CongruenceWord` class.
18+
functions that only apply to the :any:`Congruence` class.
1919

2020
.. toctree::
2121
:maxdepth: 1

docs/source/main-algorithms/congruence/to-cong.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
77
.. currentmodule:: libsemigroups_pybind11
88

9-
Converting to a CongruenceWord
9+
Converting to a Congruence
1010
==============================
1111

1212
This page contains documentation relating to converting
13-
``libsemigroups_pybind11`` objects into :any:`CongruenceWord` instances using
13+
``libsemigroups_pybind11`` objects into :any:`Congruence` instances using
1414
the :any:`to` function.
1515

1616
.. seealso::
@@ -23,17 +23,17 @@ Various uses
2323

2424
Recall that the signature for the :any:`to` function is ``to(*args, Return)``.
2525
In what follows, we explain how different values of *args* and *Return* may
26-
be used to construct :any:`CongruenceWord` objects. The following options are
26+
be used to construct :any:`Congruence` objects. The following options are
2727
possible:
2828

2929
* :ref:`froidure-pin-to-congruence`.
3030

3131
.. _froidure-pin-to-congruence:
3232

33-
Converting a :any:`FroidurePinPBR` to a :any:`CongruenceWord`
33+
Converting a :any:`FroidurePinPBR` to a :any:`Congruence`
3434
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3535

36-
To construct a :any:`CongruenceWord` from a :any:`FroidurePinPBR`, specify all
36+
To construct a :any:`Congruence` from a :any:`FroidurePinPBR`, specify all
3737
of the following values for *args*:
3838

3939
* **knd** (:any:`congruence_kind`) -- the kind of the congruence being
@@ -44,17 +44,17 @@ of the following values for *args*:
4444

4545
Additionally, specify one of the following tuples for *Return*:
4646

47-
* ``(Congruence, str)`` for constructing a :any:`CongruenceWord` on words
47+
* ``(Congruence, str)`` for constructing a :any:`Congruence` on words
4848
of type ``str``; or
49-
* ``(Congruence, List[int])`` for constructing a :any:`CongruenceWord` on
49+
* ``(Congruence, List[int])`` for constructing a :any:`Congruence` on
5050
words of type ``List[int]``.
5151

5252
This function converts the :any:`FroidurePinPBR` object *fpb* into a
53-
:any:`CongruenceWord` object using the :any:`WordGraph` *wg* (which should be
53+
:any:`Congruence` object using the :any:`WordGraph` *wg* (which should be
5454
either the :any:`FroidurePinBase.left_cayley_graph` or the
5555
:any:`FroidurePinBase.right_cayley_graph` of *fpb*).
5656

57-
This returned :any:`CongruenceWord` object represents the trivial congruence
57+
This returned :any:`Congruence` object represents the trivial congruence
5858
over the semigroup defined by *fpb*.
5959

6060
This will throw a :any:`LibsemigroupsError` if *wg* is not the

docs/source/main-algorithms/froidure-pin/helpers.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ Contents
2929
Full API
3030
--------
3131

32+
.. currentmodule:: libsemigroups_pybind11.froidure_pin
33+
3234
.. automodule:: libsemigroups_pybind11.froidure_pin
3335
:members:
36+
:imported-members:
37+
:exclude-members: FroidurePin, FroidurePinBase

0 commit comments

Comments
 (0)