RewritingSystem

org.appliedtopology.tda4j.sset.RewritingSystem
See theRewritingSystem companion object
final case class RewritingSystem(monoid: FiniteMonoid, normalForms: IndexedSeq[Vector[Int]], levels: Map[Int, Int])

A complete rewriting system for a finite monoid, given by the normal form of every element: normalForms(x) is a word in the letters (element indices, the keys of levels), the empty word for the identity. The rules are the minimal words that are not normal forms, each rewritten to the normal form of its value.

levels orders the letters for termination: a rule must decrease in the wreath product of shortlex orders by level (the collection order of polycyclic presentations), which validate() checks along with the rest. Build one by hand, or with RewritingSystem.refining from a chain of subgroups.

Attributes

Companion
object
Experimental
true
Source
CollapsedNerve.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def compareWords(u: Vector[Int], v: Vector[Int]): Int

The collection order: compare the letters of the top level by shortlex; if equal, compare the segments between them, left to right, one level down.

The collection order: compare the letters of the top level by shortlex; if equal, compare the segments between them, left to right, one level down.

Attributes

Source
CollapsedNerve.scala
def evaluate(w: Vector[Int]): Int

The element a word evaluates to.

The element a word evaluates to.

Attributes

Source
CollapsedNerve.scala
def isNormal(w: Vector[Int]): Boolean

Whether w is a normal form (equivalently: irreducible).

Whether w is a normal form (equivalently: irreducible).

Attributes

Source
CollapsedNerve.scala
def respects(chain: Seq[Set[Int]]): Seq[String]

Empty when every element of every subgroup in chain has a normal form using only that subgroup's letters -- the condition under which Brown's collapse (CollapsedNerve) never matches cells of two filtration levels.

Empty when every element of every subgroup in chain has a normal form using only that subgroup's letters -- the condition under which Brown's collapse (CollapsedNerve) never matches cells of two filtration levels.

Attributes

Source
CollapsedNerve.scala
def validate(): Seq[String]

Empty when this is a complete rewriting system: one normal form per element, evaluating to it, the identity's empty; every letter its own normal form; normal forms closed under taking factors; every rule decreasing in the collection order (so rewriting terminates, and with unique normal forms it is confluent).

Empty when this is a complete rewriting system: one normal form per element, evaluating to it, the identity's empty; every letter its own normal form; normal forms closed under taking factors; every rule decreasing in the collection order (so rewriting terminates, and with unique normal forms it is confluent).

Attributes

Source
CollapsedNerve.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala

Concrete fields

val letters: IndexedSeq[Int]

The letters, by level and then by element index.

The letters, by level and then by element index.

Attributes

Source
CollapsedNerve.scala
lazy val rules: Seq[(Vector[Int], Vector[Int])]

Every minimal non-normal word (its longest proper prefix and suffix are normal), with the normal form of its value.

Every minimal non-normal word (its longest proper prefix and suffix are normal), with the normal form of its value.

Attributes

Source
CollapsedNerve.scala