FiniteSimplicialSet

org.appliedtopology.tda4j.sset.FiniteSimplicialSet
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).

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
Graph
Supertypes
trait SimplicialSet[G]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def allGenerators: IndexedSeq[G]

Every generator, dimension by dimension, each dimension in ord order.

Every generator, dimension by dimension, each dimension in ord order.

Attributes

Source
SimplicialSet.scala
def bettiNumbers(prime: Int): Vector[Int]

dim H_n(X; F_p) for n = 0 .. dimension (see BettiNumbers).

dim H_n(X; F_p) for n = 0 .. dimension (see BettiNumbers).

Attributes

Source
SimplicialSet.scala

The unreduced cone CX (contractible).

The unreduced cone CX (contractible).

Attributes

Source
SimplicialSet.scala
def coproduct[GY](that: FiniteSimplicialSet[GY]): FiniteSimplicialSet[Either[G, GY]]

The coproduct (disjoint union) X ⊔ Y.

The coproduct (disjoint union) X ⊔ Y.

Attributes

Source
SimplicialSet.scala
def degeneracy(j: Int, e: SSetElement[G]): SSetElement[G]

s_j e, normalized.

s_j e, normalized.

Attributes

Source
SimplicialSet.scala
override def dimOf(g: G): Int

Dimension of a generator.

Dimension of a generator.

Attributes

Definition Classes
Source
SimplicialSet.scala
def dimension: Int

The highest dimension with a generator (-1 for the empty set).

The highest dimension with a generator (-1 for the empty set).

Attributes

Source
SimplicialSet.scala

Σ (-1)^n · #generators(n) -- equal to Σ (-1)^n · β_n over any field.

Σ (-1)^n · #generators(n) -- equal to Σ (-1)^n · β_n over any field.

Attributes

Source
SimplicialSet.scala
def fVector: Vector[Int]

Number of generators per dimension (Sage's f_vector).

Number of generators per dimension (Sage's f_vector).

Attributes

Source
SimplicialSet.scala
def face(i: Int, e: SSetElement[G]): SSetElement[G]

d_i e, normalized.

d_i e, normalized.

Attributes

Source
SimplicialSet.scala
def filtered(filtrationValue: G => Double): FilteredSimplicialSetStream[G]

A filtered simplicial set: filtrationValue(g) is when generator g appears (must not precede its faces -- checked). { case V => 0.0; case E => 1.0 } works as the argument.

A filtered simplicial set: filtrationValue(g) is when generator g appears (must not precede its faces -- checked). { case V => 0.0; case E => 1.0 } works as the argument.

Attributes

Source
SimplicialSet.scala
def generators(n: Int): IndexedSeq[G]

The generators (non-degenerate simplices) of dimension n, in ord order -- the cells homology sees.

The generators (non-degenerate simplices) of dimension n, in ord order -- the cells homology sees.

Attributes

Source
SimplicialSet.scala
def identify(pairs: Seq[(G, G)]): FiniteSimplicialSet[G]

Glue generators of equal dimension pairwise (transitively); each class keeps its ord-least member.

Glue generators of equal dimension pairwise (transitively); each class keeps its ord-least member.

Attributes

Source
SimplicialSet.scala
def isConnected: Boolean

Whether the 1-skeleton is connected (the empty set counts as not connected).

Whether the 1-skeleton is connected (the empty set counts as not connected).

Attributes

Source
SimplicialSet.scala

The join X ⋆ Y (S^0 ⋆ X is the suspension, pt ⋆ X the cone, S^p ⋆ S^q = S^(p+q+1)).

The join X ⋆ Y (S^0 ⋆ X is the suspension, pt ⋆ X the cone, S^p ⋆ S^q = S^(p+q+1)).

Attributes

Source
SimplicialSet.scala

The product X × Y, degreewise (X × Y)_n = X_n × Y_n.

The product X × Y, degreewise (X × Y)_n = X_n × Y_n.

Attributes

Source
SimplicialSet.scala
def quotient(quotientMap: G => SSetElement[G]): FiniteSimplicialSet[G]

The quotient by quotientMap: each generator goes to its representative, a surviving generator (SSetElement(Nil, rep), a fixed point) or a degenerate collapse onto one. Must resolve in ONE step.

The quotient by quotientMap: each generator goes to its representative, a surviving generator (SSetElement(Nil, rep), a fixed point) or a degenerate collapse onto one. Must resolve in ONE step.

Attributes

Source
SimplicialSet.scala
def simplices(n: Int): IndexedSeq[SSetElement[G]]

EVERY n-simplex, degenerate ones included, each as (degeneracy word, generator) -- by the Eilenberg-Zilber normal form, a generator g of dimension p <= n under each strictly decreasing word of n - p indices from 0..n-1. (generators(n) is the non-degenerate part.)

EVERY n-simplex, degenerate ones included, each as (degeneracy word, generator) -- by the Eilenberg-Zilber normal form, a generator g of dimension p <= n under each strictly decreasing word of n - p indices from 0..n-1. (generators(n) is the non-degenerate part.)

Attributes

Source
SimplicialSet.scala
def smash[GY](at: G, that: FiniteSimplicialSet[GY], thatAt: GY): FiniteSimplicialSet[ProductGenerator[G, GY]]

The smash product X ∧ Y = (X × Y) / (X ∨ Y) with base points at and thatAt.

The smash product X ∧ Y = (X × Y) / (X ∨ Y) with base points at and thatAt.

Attributes

Source
SimplicialSet.scala

Every generator at filtration value 0 (plain homology through a persistence engine).

Every generator at filtration value 0 (plain homology through a persistence engine).

Attributes

Source
SimplicialSet.scala
def subcomplex(keep: Set[G]): FiniteSimplicialSet[G]

The sub-simplicial set on keep, which must be closed under faces.

The sub-simplicial set on keep, which must be closed under faces.

Attributes

Source
SimplicialSet.scala

The unreduced suspension SX: two cones glued along X.

The unreduced suspension SX: two cones glued along X.

Attributes

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

Attributes

Source
SimplicialSet.scala
def wedge[GY](at: G, that: FiniteSimplicialSet[GY], thatAt: GY): FiniteSimplicialSet[Either[G, GY]]

The wedge X ∨ Y at vertex at of X and vertex thatAt of that.

The wedge X ∨ Y at vertex at of X and vertex thatAt of that.

Attributes

Source
SimplicialSet.scala

Inherited methods

def persistentHomology(filtrationValue: G => Double, maxDegree: Int, prime: Int): PersistenceDiagram[G]

The persistent homology over F_p of this set filtered by filtrationValue (when each generator enters), in degrees 0..maxDegree, with a representative cycle for every bar. Computed on the (maxDegree + 1)-skeleton, so it is exact in every degree it reports, also for an infinite set (a nerve, a classifying space).

The persistent homology over F_p of this set filtered by filtrationValue (when each generator enters), in degrees 0..maxDegree, with a representative cycle for every bar. Computed on the (maxDegree + 1)-skeleton, so it is exact in every degree it reports, also for an infinite set (a nerve, a classifying space).

filtrationValue must not let a generator enter before one of its non-degenerate faces; a filtration that does is rejected with the offending faces named. The chunks engine does the reduction.

Attributes

Inherited from:
SimplicialSet
Source
SimplicialSet.scala
def skeleton(n: Int): FiniteSimplicialSet[G]

Dimensions 0..n as a finite simplicial set (see the trait doc for what its homology means).

Dimensions 0..n as a finite simplicial set (see the trait doc for what its homology means).

Attributes

Inherited from:
SimplicialSet
Source
SimplicialSet.scala

Concrete fields

val faces: G => IndexedSeq[SSetElement[G]]

faces(g) for g of dimension n: exactly n+1 normalized SSetElements of dimension n-1 (none if n = 0).

faces(g) for g of dimension n: exactly n+1 normalized SSetElements of dimension n-1 (none if n = 0).

Attributes

Source
SimplicialSet.scala
val generatorsByDim: IndexedSeq[Set[G]]

Attributes

Source
SimplicialSet.scala

Givens

Givens

given cellInstance: is[G, OrderedCell]

The generators as an OrderedCell (normalized chain complex). import x.given before building an engine over x's generators.

The generators as an OrderedCell (normalized chain complex). import x.given before building an engine over x's generators.

Attributes

Source
SimplicialSet.scala
given ord: Ordering[G]

Ordering used to tie-break generators (same role as in FiniteSimplicialSet).

Ordering used to tie-break generators (same role as in FiniteSimplicialSet).

Attributes

Source
SimplicialSet.scala