org.appliedtopology.tda4j.sset

Members list

Type members

Experimental classlikes

object BettiNumbers

Betti numbers of a simplicial set over a prime field F_p: dim H_n(X; F_p) for each degree n, the number of homology classes that are never killed. Computed with the chunks persistence engine on the unfiltered complex (every generator at filtration value 0), so it is the ordinary homology of X.

Betti numbers of a simplicial set over a prime field F_p: dim H_n(X; F_p) for each degree n, the number of homology classes that are never killed. Computed with the chunks persistence engine on the unfiltered complex (every generator at filtration value 0), so it is the ordinary homology of X.

Integer homology is not computed; comparing F_2, F_3, ... shows small torsion.

Attributes

Experimental
true
Source
BettiNumbers.scala
Supertypes
class Object
trait Matchable
class Any
Self type
open class CategoryNerve(val category: FiniteCategory) extends SimplicialSet[CategorySimplex]

The nerve of a finite category: its classifying space, as a (usually infinite) simplicial set produced lazily. n-simplices are chains of n composable morphisms; the non-degenerate ones (CategorySimplex) avoid identities.

The nerve of a finite category: its classifying space, as a (usually infinite) simplicial set produced lazily. n-simplices are chains of n composable morphisms; the non-degenerate ones (CategorySimplex) avoid identities.

Faces: d_0 drops the first morphism, d_n the last, and d_i for 0 < i < n composes morphisms i and i + 1; if that composite is an identity, the face is degenerate -- s_{i-1} of the chain with both removed. A poset's nerve is finite (its order complex); a category with a non-identity endomorphism or a cycle has generators in every dimension, so take skeleton(n) (homology right below degree n) or use persistentHomology.

Attributes

Experimental
true
Source
FiniteCategory.scala
Supertypes
class Object
trait Matchable
class Any
final case class CategorySimplex(start: Int, morphisms: Vector[Int])

A non-degenerate simplex of the nerve of a FiniteCategory: a chain x_0 -f_1-> x_1 -> ... -f_n-> x_n of composable NON-identity morphisms (a chain containing an identity is degenerate). start is x_0, which is source(f_1) when n >= 1; for n = 0 the simplex is the object start.

A non-degenerate simplex of the nerve of a FiniteCategory: a chain x_0 -f_1-> x_1 -> ... -f_n-> x_n of composable NON-identity morphisms (a chain containing an identity is degenerate). start is x_0, which is source(f_1) when n >= 1; for n = 0 the simplex is the object start.

Attributes

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

Attributes

Companion
class
Experimental
true
Source
FiniteCategory.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

The classifying space BG of a finite group G (the Nerve of G), truncated, and its filtration by a chain of subgroups, which makes persistent group (co)homology an ordinary persistence computation.

The classifying space BG of a finite group G (the Nerve of G), truncated, and its filtration by a chain of subgroups, which makes persistent group (co)homology an ordinary persistence computation.

BG has (|G| - 1)^n non-degenerate n-simplices, so this is feasible only for small groups and low degrees.

Attributes

Experimental
true
Source
ClassifyingSpace.scala
Supertypes
class Object
trait Matchable
class Any
Self type

What Brown's collapsing scheme does with a cell of the nerve: keeps it (critical), or matches it with a coface (redundant) or a face (collapsible).

What Brown's collapsing scheme does with a cell of the nerve: keeps it (critical), or matches it with a coface (redundant) or a face (collapsible).

Attributes

Experimental
true
Source
CollapsedNerve.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
open class CollapsedNerve(val rewriting: RewritingSystem)

The nerve of a monoid collapsed by Brown's collapsing scheme ("The geometry of rewriting systems", 1992): a discrete Morse matching on the bar complex from a complete rewriting system, leaving one critical cell per Anick chain -- n + 1 cells in dimension n for Z/4 where the bar complex has 3^n. The critical cells, with the Morse boundary (morseBoundary), form a chain complex with the same homology; lift maps them back to bar cycles.

The nerve of a monoid collapsed by Brown's collapsing scheme ("The geometry of rewriting systems", 1992): a discrete Morse matching on the bar complex from a complete rewriting system, leaving one critical cell per Anick chain -- n + 1 cells in dimension n for Z/4 where the bar complex has 3^n. The critical cells, with the Morse boundary (morseBoundary), form a chain complex with the same homology; lift maps them back to bar cycles.

Filtered by a chain of subgroups that the rewriting system respects, the collapse keeps the barcode (persistentHomology); RewritingSystem.refining builds such a system.

Attributes

Companion
object
Experimental
true
Source
CollapsedNerve.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Experimental
true
Source
CollapsedNerve.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The generators of the minimal simplicial-set model of the complex projective plane (see SimplicialSet.complexProjectivePlane).

The generators of the minimal simplicial-set model of the complex projective plane (see SimplicialSet.complexProjectivePlane).

Attributes

Companion
object
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ConeGenerator

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
enum ConeGenerator[+G]

A generator of the cone on a simplicial set X: the apex, a copy of each generator of X (the base), or the cone Cone(g) over a generator g (one dimension up).

A generator of the cone on a simplicial set X: the apex, a copy of each generator of X (the base), or the cone Cone(g) over a generator g (one dimension up).

Attributes

Companion
object
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object CupProduct

Cochains, the Alexander-Whitney cup product and cohomology classes of a finite simplicial set, over a Field.

Cochains, the Alexander-Whitney cup product and cohomology classes of a finite simplicial set, over a Field.

A p-cochain is a Map[G, F] on the non-degenerate p-simplices (absent = 0; the normalized cochain complex, so a degenerate simplex always evaluates to 0). For the cup product, (a ∪ b)(σ) = a(front_p σ) · b(back_q σ) with the front face d_{p+1} ∘ ... ∘ d_n σ and the back face d_0^p σ (no sign). Linear algebra is dense: SMALL complexes.

Attributes

Experimental
true
Source
CupProduct.scala
Supertypes
class Object
trait Matchable
class Any
Self type
CupProduct.type

Attributes

Companion
class
Experimental
true
Source
FilteredSimplicialSetStream.scala
Supertypes
class Object
trait Matchable
class Any
Self type
open class FilteredSimplicialSetStream[G](sset: FiniteSimplicialSet[G], val filtrationValue: PartialFunction[G, Double])(using x$3: is[G, OrderedCell]) extends StratifiedCellStream[G, Double]

A finite simplicial set filtered by filtrationValue on its generators, as a stream that every engine accepts (unlike SimplicialSetStream, which puts everything at 0). The filtration must be monotone (validateMonotoneFiltration).

A finite simplicial set filtered by filtrationValue on its generators, as a stream that every engine accepts (unlike SimplicialSetStream, which puts everything at 0). The filtration must be monotone (validateMonotoneFiltration).

Attributes

Companion
object
Experimental
true
Source
FilteredSimplicialSetStream.scala
Supertypes
trait StratifiedCellStream[G, Double]
trait CellStream[G, Double]
trait IterableOnce[G]
trait Filtration[G, Double]
trait Filterable[Double]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
trait
Experimental
true
Source
FiniteCategory.scala
Supertypes
class Object
trait Matchable
class Any
Self type

A finite category: objects 0 until objectCount, morphisms 0 until morphismCount. Morphism f goes from source(f) to target(f); andThen(f, g) is the composite "first f, then g", defined when target(f) == source(g) (diagrammatic order, so a monoid's multiply(a, b) is andThen(a, b)).

A finite category: objects 0 until objectCount, morphisms 0 until morphismCount. Morphism f goes from source(f) to target(f); andThen(f, g) is the composite "first f, then g", defined when target(f) == source(g) (diagrammatic order, so a monoid's multiply(a, b) is andThen(a, b)).

The nerve (CategoryNerve) is its classifying space. Implement the six abstract members to define a category by functions, or use a constructor of the companion: fromMonoid, fromPoset, freeOnAcyclicQuiver, actionGroupoid, homotopyOrbits. validate() checks the category laws.

Attributes

Companion
object
Experimental
true
Source
FiniteCategory.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
open class FiniteGroup(table: Array[Array[Int]], names: IndexedSeq[String]) extends FiniteMonoid

A finite monoid whose every element has an inverse.

A finite monoid whose every element has an inverse.

Attributes

Companion
object
Experimental
true
Source
FiniteGroup.scala
Supertypes
class FiniteMonoid
class Object
trait Matchable
class Any
object FiniteGroup

Attributes

Companion
class
Experimental
true
Source
FiniteGroup.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object FiniteMonoid

Attributes

Companion
class
Experimental
true
Source
FiniteGroup.scala
Supertypes
class Object
trait Matchable
class Any
Self type
open class FiniteMonoid(val table: Array[Array[Int]], val names: IndexedSeq[String])

A finite group as a multiplication table on the elements 0 until order, with 0 the identity.

A finite group as a multiplication table on the elements 0 until order, with 0 the identity.

Deliberately the dumbest possible representation: the nerve construction (ClassifyingSpace) only ever multiplies and asks "is this the identity?", and a table makes both an array lookup. Fine up to a few hundred elements (S_5 has 120: a 14,400-entry table).

Attributes

Companion
object
Experimental
true
Source
FiniteGroup.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FiniteGroup
open class FiniteSimplicialSet[G](val generatorsByDim: IndexedSeq[Set[G]], val faces: G => IndexedSeq[SSetElement[G]])(using val ord: Ordering[G]) extends SimplicialSet[G]

A finite simplicial set presented by generators (non-degenerate simplices) and, for each generator, its primitive face data -- from which everything else (arbitrary d_i/s_j, the OrderedCell instance feeding the homology engines) is inferred via faceOf/insertOuter (SSetElement.scala).

A finite simplicial set presented by generators (non-degenerate simplices) and, for each generator, its primitive face data -- from which everything else (arbitrary d_i/s_j, the OrderedCell instance feeding the homology engines) is inferred via faceOf/insertOuter (SSetElement.scala).

faces(g), for g of dimension n, must supply exactly n+1 already-normalized SSetElements of dimension n-1 each (empty for n = 0) -- validate() checks this contract plus the simplicial identities at runtime, since it's easy to get a hand-written presentation subtly wrong with no crash, just silently wrong homology.

Attributes

Experimental
true
Source
SimplicialSet.scala
Supertypes
trait SimplicialSet[G]
class Object
trait Matchable
class Any

The fundamental group of a connected finite simplicial set, as a presentation read off a one-vertex model: reduce collapses a spanning tree of the 1-skeleton to the base vertex, then every remaining non-degenerate edge is a generator and every 2-simplex σ gives the relation d_2 σ · d_0 σ = d_1 σ (a degenerate edge is the identity).

The fundamental group of a connected finite simplicial set, as a presentation read off a one-vertex model: reduce collapses a spanning tree of the 1-skeleton to the base vertex, then every remaining non-degenerate edge is a generator and every 2-simplex σ gives the relation d_2 σ · d_0 σ = d_1 σ (a degenerate edge is the identity).

Attributes

Experimental
true
Source
FundamentalGroup.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class GroupPresentation[G](generators: IndexedSeq[G], relations: IndexedSeq[List[(Int, Int)]])

A finite presentation ``; a relation is a word, each letter (generator index, +1 or -1).

A finite presentation ``; a relation is a word, each letter (generator index, +1 or -1).

Attributes

Experimental
true
Source
FundamentalGroup.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
open class HomotopyOrbitCategory(val group: FiniteGroup, facets: Iterable[Simplex[Int]], val vertexAction: (Int, Int) => Int) extends FiniteCategory

The category of FiniteCategory.homotopyOrbits (and of FiniteCategory.actionGroupoid): object i is simplices(i), and morphism f is the pair (groupElement(f), source(f) -> target(f)).

The category of FiniteCategory.homotopyOrbits (and of FiniteCategory.actionGroupoid): object i is simplices(i), and morphism f is the pair (groupElement(f), source(f) -> target(f)).

Attributes

Experimental
true
Source
FiniteCategory.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The generators of Sage's simplicial model of S^3 (SimplicialSet.hopfMap's source).

The generators of Sage's simplicial model of S^3 (SimplicialSet.hopfMap's source).

Attributes

Companion
object
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum JoinGenerator[+GX, +GY]

A non-degenerate simplex of the join X ⋆ Y: a simplex of X alone, of Y alone, or a pair (a, b) of non-degenerate simplices of both, of dimension dim a + dim b + 1.

A non-degenerate simplex of the join X ⋆ Y: a simplex of X alone, of Y alone, or a pair (a, b) of non-degenerate simplices of both, of dimension dim a + dim b + 1.

Attributes

Companion
object
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object JoinGenerator

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The generators of SimplicialSet.kleinBottle: one vertex, edges a, b, c, triangles T1, T2.

The generators of SimplicialSet.kleinBottle: one vertex, edges a, b, c, triangles T1, T2.

Attributes

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

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The two generators of the minimal n-sphere (SimplicialSet.sphere): its vertex and its single n-simplex.

The two generators of the minimal n-sphere (SimplicialSet.sphere): its vertex and its single n-simplex.

Attributes

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

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
open class Nerve(monoid: FiniteMonoid, subset: Option[Set[Int]] = ...) extends SimplicialSet[NerveSimplex]

The nerve of a finite monoid (as a one-object category): an INFINITE simplicial set with (|M|-1)^n non-degenerate n-simplices, produced lazily; skeleton(n) materializes dimensions 0..n. For a group this is the classifying space BG; subset restricts to the nerve of a submonoid (e.g. a subgroup H, giving BH).

The nerve of a finite monoid (as a one-object category): an INFINITE simplicial set with (|M|-1)^n non-degenerate n-simplices, produced lazily; skeleton(n) materializes dimensions 0..n. For a group this is the classifying space BG; subset restricts to the nerve of a submonoid (e.g. a subgroup H, giving BH).

Faces: d_0 drops the first entry, d_n the last, and d_i for 0 < i < n multiplies entries i and i + 1; if that product is the identity, the result is degenerate -- s_{i-1} applied to the tuple with both entries removed.

Attributes

Experimental
true
Source
ClassifyingSpace.scala
Supertypes
class Object
trait Matchable
class Any
object NerveSimplex

Attributes

Companion
class
Experimental
true
Source
ClassifyingSpace.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class NerveSimplex(entries: Vector[Int])

A non-degenerate simplex of the nerve BG of a finite group: the tuple (g_1, ..., g_n) of NON-identity elements (a tuple containing the identity is degenerate). The empty tuple is the single vertex.

A non-degenerate simplex of the nerve BG of a finite group: the tuple (g_1, ..., g_n) of NON-identity elements (a tuple containing the identity is degenerate). The empty tuple is the single vertex.

Attributes

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

A cell of the simplicial set of a group presentation (see SimplicialSet.presentationComplex).

A cell of the simplicial set of a group presentation (see SimplicialSet.presentationComplex).

Attributes

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

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Experimental
true
Source
Constructions.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ProductGenerator[GX, GY](x: SSetElement[GX], y: SSetElement[GY])

A non-degenerate n-simplex of X x Y: a pair of n-simplices of X and Y, each possibly degenerate, whose degeneracy words are disjoint. (Not an Eilenberg-Zilber shuffle: (e_X, e_Y) for two non-degenerate 1-simplices is a non-degenerate 1-simplex of the product.)

A non-degenerate n-simplex of X x Y: a pair of n-simplices of X and Y, each possibly degenerate, whose degeneracy words are disjoint. (Not an Eilenberg-Zilber shuffle: (e_X, e_Y) for two non-degenerate 1-simplices is a non-degenerate 1-simplex of the product.)

Attributes

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

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

The generators of SimplicialSet.realProjectiveSpace: one cell E(n) per dimension.

The generators of SimplicialSet.realProjectiveSpace: one cell E(n) per dimension.

Attributes

Companion
object
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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.

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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Experimental
true
Source
CollapsedNerve.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object SSetElement

Attributes

Companion
class
Experimental
true
Source
SSetElement.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class SSetElement[G](word: List[Int], generator: G)

A simplex of a finitely-generated simplicial set, in Eilenberg–Zilber normal form: word is the strictly decreasing list of degeneracy indices [w1 > w2 > ... > wk] such that this element is s_w1 s_w2 ... s_wk (generator), read outermost-first (s_w1 is the last degeneracy applied). word = Nil means the element is generator, which must be non-degenerate. Dimension is generator's own dimension plus word.length.

A simplex of a finitely-generated simplicial set, in Eilenberg–Zilber normal form: word is the strictly decreasing list of degeneracy indices [w1 > w2 > ... > wk] such that this element is s_w1 s_w2 ... s_wk (generator), read outermost-first (s_w1 is the last degeneracy applied). word = Nil means the element is generator, which must be non-degenerate. Dimension is generator's own dimension plus word.length.

Decreasing, not increasing: s_i s_j = s_{j+1} s_i for i <= j takes a non-decreasing adjacent pair to a decreasing one, e.g. s_0 s_0 = s_1 s_0 -- so the (unique) normal form for "apply s_0 twice" is [1, 0], never [0, 1].

Attributes

Companion
object
Experimental
true
Source
SSetElement.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
open class SSetMap[GX, GY](val source: FiniteSimplicialSet[GX], val target: FiniteSimplicialSet[GY], val onGenerators: GX => SSetElement[GY])

A simplicial map f : X -> Y between finite simplicial sets, given on generators: onGenerators(g) is the image of the non-degenerate simplex g, an element of Y of the same dimension, possibly degenerate. A degenerate simplex s_J g goes to s_J f(g). Injectivity and surjectivity refer to the map on all simplices.

A simplicial map f : X -> Y between finite simplicial sets, given on generators: onGenerators(g) is the image of the non-degenerate simplex g, an element of Y of the same dimension, possibly degenerate. A degenerate simplex s_J g goes to s_J f(g). Injectivity and surjectivity refer to the map on all simplices.

Attributes

Companion
object
Experimental
true
Source
SSetMap.scala
Supertypes
class Object
trait Matchable
class Any
object SSetMap

Attributes

Companion
class
Experimental
true
Source
SSetMap.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SSetMap.type
trait SimplicialSet[G]

A simplicial set presented, as FiniteSimplicialSet is, by its non-degenerate simplices ("generators") and each generator's faces -- but without insisting that every dimension be materialized, so it can be INFINITE (the nerve of a finite group has (|G|-1)^n generators in every dimension n) and generated lazily.

A simplicial set presented, as FiniteSimplicialSet is, by its non-degenerate simplices ("generators") and each generator's faces -- but without insisting that every dimension be materialized, so it can be INFINITE (the nerve of a finite group has (|G|-1)^n generators in every dimension n) and generated lazily.

skeleton(n) materializes dimensions 0..n as a FiniteSimplicialSet. The homology of an n-skeleton agrees with the full set's only in degrees < n: degree n classes of the skeleton include ones the missing (n+1)-simplices would kill. To get H_k of the full set, take skeleton(k + 1) and ignore the top degree.

Attributes

Companion
object
Experimental
true
Source
SimplicialSet.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Nerve

Every ready-made simplicial set and constructor is here: SimplicialSet.sphere(2), SimplicialSet.torus, SimplicialSet.fromSimplicialComplex(facets), SimplicialSet(generatorsByDim, faces), ... (see SimplicialSetCatalog). Operations on a set you already have are methods of FiniteSimplicialSet.

Every ready-made simplicial set and constructor is here: SimplicialSet.sphere(2), SimplicialSet.torus, SimplicialSet.fromSimplicialComplex(facets), SimplicialSet(generatorsByDim, faces), ... (see SimplicialSetCatalog). Operations on a set you already have are methods of FiniteSimplicialSet.

Attributes

Companion
trait
Experimental
true
Source
SimplicialSet.scala
Supertypes
class Object
trait Matchable
class Any
Self type

The catalog behind object SimplicialSet (every entry is SimplicialSet.): ready-made finite simplicial sets, mostly those of Sage's simplicial_sets, and constructors that build one from data. Operations on a set (product, wedge, cone, quotient, ...) are methods of FiniteSimplicialSet. Pullbacks and integer coefficients are not supported.

The catalog behind object SimplicialSet (every entry is SimplicialSet.): ready-made finite simplicial sets, mostly those of Sage's simplicial_sets, and constructors that build one from data. Operations on a set (product, wedge, cone, quotient, ...) are methods of FiniteSimplicialSet. Pullbacks and integer coefficients are not supported.

Attributes

Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SimplicialSet
open class SimplicialSetStream[G](sset: FiniteSimplicialSet[G])(using x$2: is[G, OrderedCell]) extends CellStream[G, Int]

A finite simplicial set as a stream with every generator at 0, for its ordinary (unfiltered) homology; for a filtration, use FilteredSimplicialSetStream. Generators are ordered by dimension, then by ord. The OrderedCell instance comes from the simplicial set (its faces), so it is passed explicitly by the companion's apply.

A finite simplicial set as a stream with every generator at 0, for its ordinary (unfiltered) homology; for a filtration, use FilteredSimplicialSetStream. Generators are ordered by dimension, then by ord. The OrderedCell instance comes from the simplicial set (its faces), so it is passed explicitly by the companion's apply.

Attributes

Companion
object
Experimental
true
Source
SimplicialSetStream.scala
Supertypes
trait CellStream[G, Int]
trait IterableOnce[G]
trait Filtration[G, Int]
trait Filterable[Int]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Experimental
true
Source
SimplicialSetStream.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Steenrod

Steenrod squares Sq^i : H^n(X; F_2) -> H^(n+i)(X; F_2) of a finite simplicial set, from Steenrod's explicit cup-i products on cochains:

Steenrod squares Sq^i : H^n(X; F_2) -> H^(n+i)(X; F_2) of a finite simplicial set, from Steenrod's explicit cup-i products on cochains:

(a ∪_i b)(σ) = Σ_{0 <= j_0 < ... < j_i <= n} a(σ[front]) · b(σ[back])

where, cutting 0..n at j_0 < ... < j_i into consecutive blocks [0,j_0], [j_0,j_1], ..., [j_i,n], the FRONT face keeps the vertices of the even-numbered blocks and the BACK face those of the odd-numbered ones (neighbouring blocks share their cut vertex). Signs are omitted, so this is valid over characteristic 2 only (enforced). ∪_0 is the ordinary cup product, and Sq^i x = x ∪_{n-i} x for x of degree n. Faces on vertex subsets are composites of face maps, so this works on simplicial SETS, not just complexes; a degenerate face contributes 0 (normalized cochains).

Checked against Wu's formula Sq^i(x^k) = C(k, i) x^(k+i) on B(Z/2) (SteenrodSpec), which exercises ∪_i for every i.

Attributes

Experimental
true
Source
Steenrod.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Steenrod.type

The generators of SimplicialSet.torus: one vertex, loops A, B and diagonal C, triangles U, L.

The generators of SimplicialSet.torus: one vertex, loops A, B and diagonal C, triangles U, L.

Attributes

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

Attributes

Companion
enum
Experimental
true
Source
SimplicialSetCatalog.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Experimental methods

def eitherOrdering[GX, GY](using ox: Ordering[GX], oy: Ordering[GY]): Ordering[Either[GX, GY]]

The order on the generators of a coproduct: every Left before every Right, each side in its own order.

The order on the generators of a coproduct: every Left before every Right, each side in its own order.

Attributes

Experimental
true
Source
Constructions.scala
def faceOf[G](i: Int, word: List[Int], y: G, faces: G => IndexedSeq[SSetElement[G]]): SSetElement[G]

d_i on an arbitrary element s_w1 ... s_wk (y), given only the primitive face data on generators (faces(y)(i) = d_i(y), for y non-degenerate). Bottoms out on word = Nil; otherwise pushes d_i past the outermost degeneracy s_w1 via the simplicial identities:

d_i on an arbitrary element s_w1 ... s_wk (y), given only the primitive face data on generators (faces(y)(i) = d_i(y), for y non-degenerate). Bottoms out on word = Nil; otherwise pushes d_i past the outermost degeneracy s_w1 via the simplicial identities:

  • i < w1: d_i s_w1 = s_{w1-1} d_i (recurse on the same i, rewrap one dimension lower)
  • i in {w1, w1+1}: d_{w1} s_w1 = d_{w1+1} s_w1 = id (cancel: drop s_w1 entirely)
  • i > w1+1: d_i s_w1 = s_w1 d_{i-1} (recurse on i-1, rewrap at the same outer index)

faces(y) must return, for y of dimension n, exactly n+1 already-normalized elements of dimension n-1 (empty for n = 0) -- see FiniteSimplicialSet.validate() for a runtime check of this contract.

Attributes

Experimental
true
Source
SSetElement.scala
def finiteSimplicialSetIsOrderedCell[G](using ord: Ordering[G])(dimOf: G => Int, faces: G => IndexedSeq[SSetElement[G]]): is[G, OrderedCell]

OrderedCell instance for the generators (non-degenerate simplices) of a finite simplicial set: dim is the generator's own dimension, and boundary is the normalized-chain-complex differential -- only faces that are themselves bare generators (word.isEmpty) contribute, with the usual alternating sign; a degenerate face contributes nothing, since the normalized chain complex is quasi-isomorphic to the full one. This is the only place degeneracy matters for homology -- computing it needs no recursive faceOf, only faces(g) itself.

OrderedCell instance for the generators (non-degenerate simplices) of a finite simplicial set: dim is the generator's own dimension, and boundary is the normalized-chain-complex differential -- only faces that are themselves bare generators (word.isEmpty) contribute, with the usual alternating sign; a degenerate face contributes nothing, since the normalized chain complex is quasi-isomorphic to the full one. This is the only place degeneracy matters for homology -- computing it needs no recursive faceOf, only faces(g) itself.

Mirrors simplexIsOrderedCell's injectable-ordering pattern (SimplexOrderedCell.scala).

Attributes

Experimental
true
Source
SimplicialSet.scala
def insertOuter(m: Int, word: List[Int]): List[Int]

Composes a new outermost degeneracy s_m onto an already-normalized word, restoring the strictly-decreasing invariant via s_i s_j = s_{j+1} s_i (i <= j): if m already exceeds the current outermost index the word is untouched (already sorted); otherwise m must move past that index, incrementing it, and recurse.

Composes a new outermost degeneracy s_m onto an already-normalized word, restoring the strictly-decreasing invariant via s_i s_j = s_{j+1} s_i (i <= j): if m already exceeds the current outermost index the word is untouched (already sorted); otherwise m must move past that index, incrementing it, and recurse.

Attributes

Experimental
true
Source
SSetElement.scala
def isNonDegeneratePair[GX, GY](a: SSetElement[GX], b: SSetElement[GY]): Boolean

A pair (a, b) in X_n x Y_n is degenerate in the product iff some single j degenerates both sides at once (s_j on X x Y is literally the diagonal (s_j, s_j)) -- and a is s_j-degenerate exactly when j appears in a.word (the normal form's own meaning: word is precisely the set of indices a is degenerate at, not just the outermost one -- e.g. s_1 s_0(v) is degenerate at both s_1 directly and, via s_0 s_0 = s_1 s_0, at s_0 too, matching both entries of its word [1, 0]). So non-degeneracy of the pair is exactly disjointness of the two words. Cross-checked against the definitional degeneracy(j, face(j, a)) == a test in SimplicialSetConstructionsSpec.

A pair (a, b) in X_n x Y_n is degenerate in the product iff some single j degenerates both sides at once (s_j on X x Y is literally the diagonal (s_j, s_j)) -- and a is s_j-degenerate exactly when j appears in a.word (the normal form's own meaning: word is precisely the set of indices a is degenerate at, not just the outermost one -- e.g. s_1 s_0(v) is degenerate at both s_1 directly and, via s_0 s_0 = s_1 s_0, at s_0 too, matching both entries of its word [1, 0]). So non-degeneracy of the pair is exactly disjointness of the two words. Cross-checked against the definitional degeneracy(j, face(j, a)) == a test in SimplicialSetConstructionsSpec.

Attributes

Experimental
true
Source
Constructions.scala
def productGeneratorOrdering[GX, GY](using ox: Ordering[GX], oy: Ordering[GY]): Ordering[ProductGenerator[GX, GY]]

The order on product generators: by the X side, then the Y side (ssetElementOrdering on each).

The order on product generators: by the X side, then the Y side (ssetElementOrdering on each).

Attributes

Experimental
true
Source
Constructions.scala
def ssetElementOrdering[G](using ordG: Ordering[G]): Ordering[SSetElement[G]]

The order on simplices in normal form: by generator, then by degeneracy word.

The order on simplices in normal form: by generator, then by degeneracy word.

Attributes

Experimental
true
Source
Constructions.scala
def validateMonotoneFiltration[G](sset: FiniteSimplicialSet[G], filtrationValue: G => Double): Seq[String]

The violations of monotonicity in filtrationValue (a non-degenerate face with a larger value than its coface), as messages; empty if there are none. Degenerate faces do not enter boundaries and are not checked.

The violations of monotonicity in filtrationValue (a non-degenerate face with a larger value than its coface), as messages; empty if there are none. Degenerate faces do not enter boundaries and are not checked.

Attributes

Experimental
true
Source
FilteredSimplicialSetStream.scala