Congruence helpers
This page contains the documentation for various helper functions for
manipulating Congruence objects.
Contents
| Find the non-trivial classes in the partition of a list of words. | |
| 
 | Partition a list of words. | 
Full API
This page contains the documentation for various helper functions for
manipulating Congruence objects. All such functions are contained in
the submodule congruence.
- congruence.non_trivial_classes(c: Congruence, words: list[list[int] | str]) list[list[list[int]] | list[str]]
- Find the non-trivial classes in the partition of a list of words. - This function returns the classes with size at least \(2\) in the partition of the words in the list words induced by the - Congruenceinstance c.
- congruence.partition(c: Congruence, words: list[list[int] | str]) list[list[list[int]] | list[str]]
- Partition a list of words. - This function returns the classes in the partition of the words in the input list words induced by the - Congruenceinstance c. This function triggers a full enumeration of c.