Skip to content

Commit

Permalink
rename CRS and add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sweeneyde committed Mar 19, 2024
1 parent f57c430 commit 290ce41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/__pycache__/
venv312/
venv/
**.sage.py
2 changes: 1 addition & 1 deletion monoid_homology/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .crs import CanonicalRewritingSystem, CRS
from .crs import CompleteRewritingSystem, CRS
from .from_table import (
op_from_index,
all_gens_crs,
Expand Down
6 changes: 3 additions & 3 deletions monoid_homology/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
finite collection of pairs of strings (L, R),
and we will write uLv --> uRv for any strings u and v.
A rewriting system is called "Canonical" if is
A rewriting system is called "Complete" if is
(1) Noetherian: No infinite chains w0 --> w1 --> w2 --> ...
Expand Down Expand Up @@ -51,7 +51,7 @@
from itertools import permutations
from collections import defaultdict, Counter

class CanonicalRewritingSystem:
class CompleteRewritingSystem:
__slots__ = ("alphabet", "rules", "max_rewrites",
"prefix_to_rules", "essentials", "_successor_words",
"_essrep", "_classifications", "_chain_complex",
Expand Down Expand Up @@ -373,4 +373,4 @@ def print_homology(self, up_to_dimension, **kwargs):
print()


CRS = CanonicalRewritingSystem
CRS = CompleteRewritingSystem

0 comments on commit 290ce41

Please sign in to comment.