Example rewriting systems

KnuthBendix.jl contains an internal module ExampleRWS which stores various rewriting systems used mostly for testing purposes.

ExampleRWS submodule

KnuthBendix.ExampleRWS.ZxZ_nonterminatingFunction
ZxZ_nonterminating()

Rewriting system of the natural presentation of

ℤ² = ⟨ a, b | a·b = b·a ⟩

ordered by LenLex order a < b < a⁻¹ < b⁻¹.

Knuth-Bendix completion does not terminate on this system producing an infinite set of rewriting rules of the form a·bⁿ·a⁻¹ → bⁿ.

source
KnuthBendix.ExampleRWS.Sims_Example_5_4Function
Sims_Example_5_4()

Rewriting system of the (l,n,m) = (2,3,3)-triangle group presentation

⟨ a, b, B | 1 = aˡ = bⁿ = (a·b)ᵐ = b·B = B·b ⟩

ordered by LenLex order a < b < B.

Inverse of b is specified to be B on the alphabet level.

source
KnuthBendix.ExampleRWS.triangle_237_quotientFunction
triangle_237_quotient(n)

Rewriting system of the presentation of

⟨ a, b, B | 1 = a² = b·B = B·B = b³ = (a·b)⁷ = (a·b·a·B)ⁿ ⟩

ordered by LenLex a < b < B. The presentation defines a quotient of (2,3,7)-triangle group by n-th power of the commutator [a,b].

source
KnuthBendix.ExampleRWS.π₁Surface_recursiveFunction
π₁Surface_recursive(n)

Rewriting system of the group presentation of π₁(Σₙ), the fundamental group of orientable surface of genus n:

⟨ aᵢ, Aᵢ, bᵢ, Bᵢ | 1 = Πᵢ[aᵢ, bᵢ] ⟩

ordered by Left-Recursive ordering Bₙ < bₙ < Aₙ < aₙ < ... < B₁ < b₁ < A₁ < a₁.

This terminating system was discovered by S.M.Hermiller[Hermiller1994].

source
KnuthBendix.ExampleRWS.π₁SurfaceFunction
π₁Surface(n)

Rewriting system of the group presentation of π₁(Σₙ), the fundamental group of orientable surface of genus n:

⟨ aᵢ, Aᵢ, bᵢ, Bᵢ | 1 = Πᵢ[aᵢ, bᵢ] ⟩

ordered by LenLex ordering a₁ < A₁ < a₂ < A₂ < ⋯ < aₙ < Aₙ < b₁ < B₁ < b₂ < B₂ < ⋯ < b₃ < B₃.

source
KnuthBendix.ExampleRWS.Fibonacci2Function
Fibonacci2(n)

Rewriting system corresponding to monoid presentation of the Fibonacci group F(2,n)

⟨ a₁, …, aₙ | a₁·a₂ = a₃, a₂·a₃ = a₄, …, aₙ₋₁·aₙ = a₁, aₙ·a₁ = a₂⟩

ordered by LenLex ordering a₁ < a₂ < … < aₙ.

F(2,n) groups are finite for n = 2,3,4,5,7 and infinite for other ns.

source

LenLex confluent rewriting system for $\pi_1(\Sigma_g)$

Maybe the only truly mathematically interesting rewriting system contained in ExampleRWS is the length-then-lexicographical ordering for the surface groups (i.e. the the fundamental group of orientable surface) which does not seem to be known in the mathematical literature. The author found it by accident while trying to play around and trying to force Dehn-style algorithms to produce something resembling normal forms.

Theorem

Let $\pi_1(\Sigma_g) = \langle a_1,\ldots, a_g, b_1, \ldots, b_g \mid \prod_{i=1}^g a_i^{-1}b_i^{-1}a_i b_i = 1 \rangle$ be the presentation of the fundamental group of $\Sigma_g$, the orientable surface of genus $g$. Then the rewriting system consisting of the following $4g$ pairs

\[\begin{aligned} (a_1^{-1} b_1^{-1}a_1 b_1\cdots a_g^{-1}b_g^{-1}a_g b_g \quad&,\quad 1)\\ (b_1^{-1}a_1 b_1\cdots a_g^{-1}b_g^{-1}a_g b_g \quad&,\quad a_1)\\ (a_1 b_1\cdots a_g^{-1}b_g^{-1}a_g b_g \quad&,\quad b_1 a_1)\\ \vdots\\ (a_g b_g \quad&,\quad b_g a_g b_{g-1}^{-1} a_{g-1}^{-1} \cdots b_1^{-1} a_1^{-1} b_1 a_1)\\ (b_g \quad&,\quad a_g^{-1} b_g a_g b_{g-1}^{-1} a_{g-1}^{-1} \cdots b_1^{-1} a_1^{-1} b_1 a_1)\\ \end{aligned}\]

ordered by length-then-lexicographical ordering induced by

\[a_1 < a_1^{-1} < a_2 < a_2^{-1} < \cdots < a_g^{-1} < b_1 < b_1^{-1} < \cdots b_g < b_g^{-1}\]

is reduced and confluent.

  • Hermiller1994Susan M. Hermiller Rewriting systems for Coxeter groups Journal of Pure and Applied Algebra, Volume 92, Issue 2, 1994, p. 137-148.
  • Hermiller1994Susan M. Hermiller Rewriting systems for Coxeter groups Journal of Pure and Applied Algebra, Volume 92, Issue 2, 1994, p. 137-148.