TDA in pictures

Detecting topological features with a filtration:

center

“Barcodes” of persistence homology:

center

Topological spaces: basic notions

01 Theory - Spaces, subspaces, connectedness

Topological space

A topological space is a set X (the ‘space’) together with a topology structure.

A topology structure is a determination of open subsets of X.

Formally: open sets are collected together in a set of sets τ, the topology.

Open sets (in τ) must satisfy axioms:

  • and X are open
  • All unions of opens are open
  • Finite intersections of opens are open

A set AX is called closed when X\A is open.

Although these axioms for open sets seem rather obscure, a long history (leading up to and in consequence of the axioms) has shown that the concept of open set they determine accurately formalizes our intuitions about spatial connectedness, and the aspect of proximity that underwrites connectedness.

Many geometric sets have natural topology structures:

center

Some notes:

  • The trivial topology has only the minimum of open sets, and X.
  • The discrete topology has the maximum of open sets, τ=2X. (All subsets are open.)
  • Sometimes a set is simultaneously closed and open, thus ‘clopen’. E.g. and X are always clopen.

Subspace topology

For any subset AX, there is a subspace topology structure on A.

The open sets of A are the intersections AU where U is open in X.

Beware that open sets AU in a subspace topology might not be open in X itself.

Connectedness

A topological space X is connected when it is impossible to decompose it as a disjoint union of opens:

XUV(for any opens U,V)

02 Illustration

Simple topology - connectedness

Three points: X={A,B,C}, with two (nontrivial) open sets. This is not a topology because the intersection {B} is not open:

center

This is a topology, and it is connected:

center

Continuum - real number interval

center

The standard topology structure for real numbers is generated by open intervals (a,b).

(“Generated”: it is the smallest topology structure containing all such intervals.)

In nD, the open sets are generated by open boxes (a,b)×(c,d) or (equivalently) open balls 𝐁ε(c)={xn||xc|<ε}.

Open in S but not in 2

Consider the subspace S=[0,1]22 equipped with the subspace topology inherited from the topology structure on 2:

center

An open set in S may be given as the intersection with a ball in 2, but this set is not open in 2 because the top and right edges would be included. No open ball can be found around a point in this edge and contained in S.

03 Theory - Metric, open balls, continuity

Metric space

A metric space is a set X (the ‘space’) together with a metric structure.

A metric structure is a determination of distance between points in the set.

Formally: distance is measured by a function d:X×X satisfying: Triangle inequality:

  • d(x,z)d(x,y)+d(y,z)

    center

and more basic axioms:

  • d(x,y)0 for all x,yX
  • d(x,y)=d(y,x)
  • d(x,y)=0x=y

In n the distance function is, of course, d(x,y)=(x1y1)2++(xnyn)2.


Using any distance function, we can define open balls:

𝐁r(x)={yX|d(y,x)<r}

Then we can generate a topology on X from these open balls. We are, in effect, using the topology of in the codomain of d:X×X to induce a topology back on the space X.

Metric space topology

Any metric space (X,d) has a natural metric space topology structure.

The open sets are generated by open balls 𝐁r(x). That is, open sets are all unions of open balls:

x,r𝐁r(x)

Every structure of metric space automatically has a natural structure of topological space due to the above definition.

A topology structure formalizes only the notion of connectedness, or one might say “touching vs. separated”, while a metric structure adds a quantitative measure of distance. As such it implies notions like “double the distance” or “100× the distance.” But a metric structure does imply at least a topology structure, because any points that are separated by some distance are in fact separated.

Topological structures that do not come from metric structures can also be useful and interesting. (E.g. in algebraic geometry.) But the notion of “touching” that they express is rather abstracted from the geometrical one we are accustomed to.

“All unions of open balls”

The collection “all unions of open balls” satisfies the axioms of a topology. The first two axioms clearly hold. To check the third axiom, one would have to formalize the concept of ‘generates’, which is applicable to the concept of ‘subbase’. The essential verification is that for any point inside a finite intersection of open balls, there is another open ball around that point which is contained in the intersection. The triangle axiom is needed to confirm this.


LEMMA: open subsets via open balls

In any metric space (X,d), a subset AX is open if and only if:

xA,r,xwith:x𝐁r(x)A

In words: A is open IFF any x in A has some open ball around it which is contained in A.

This lemma provides a functional characterization of open sets in a metric space.

Proof of LEMMA

Assume the Lemma condition holds; try to prove A is open.

  • For each x, write Bx for some open ball over x contained in A. Then A=xABx, and A is a union of open sets, thus open.

Now assume A is open; try to prove the condition holds.

  1. A is necessarily the union of some open balls. (Definition of topology structure given a metric.)
  2. Select any xA. By 1., this x is in some open ball 𝐁r(x): x𝐁r(x)A
  3. Find a ball centered at x which is inside 𝐁r(x), thus inside A.
    • Set m:=d(x,x)
    • Definition of ball and x𝐁r(x) implies m<r
    • Set r:=12(rm)
    • Triangle Inequality: Every y𝐁r(x) satisfies d(y,x)d(y,x)+d(x,x)
    • Therefore d(y,x)<r+m<r

center


Continuous functions

A function between topological spaces f:XY is continuous when:

VYis openf1(V)Xis open

This definition implies that a connected subset cannot be mapped to a disconnected subset by a continuous f. Given any disjoint union of opens UVImY that ‘disconnects’ the image of f, the definition implies that f1(U) and f1(V) are disjoint opens covering X and disconnecting it. The fact that the definition of continuity appears to go “the wrong way” (implication from codomain Y to domain X) is related to the logical negation inside “no possible disjoint union of opens” in the definition of connectedness.

For example, the graph of a function with a jump discontinuity:

center

The disconnected image of f can be separated by open sets in the codomain (vertical axis). The domain is not separated by the preimages – the function is not continuous.


An equivalent definition of continuity can be cast in terms of the metric structure, if the topology comes from a metric:

Continuity and distance

A map f:(X,d)(Y,d) of metric spaces is continuous at x0 when:

For all ε>0, there exists δ>0 such that:

d(x,x0)<δd(f(x),f(x0))<ε

Then f itself is continuous if it is continuous at every point x0.

04 Illustration

In Calc I we learn that f: is continuous at x0 when:

ε,δ such that:|xx0|<δ|f(x)f(x0)|<ε

Or, in terms of set containment:

ε,δ such that:f((x0δ,x0+δ))(f(x0)ε,f(x0)+ε)

center

Let us compare this to the definition in terms of open sets:

Open-set continuity agrees with ε-δ continuity

Assume that f is continuous according to the topological definition.

  1. Select any x0. Let ε>0 be given.
  2. The interval V=(f(x0)ε,f(x0)+ε) is open.
  3. By the topological definition of continuity, the preimage f1(V) is open. It contains x0.
  4. By the Lemma for metric space continuity, find an open ball around x0 inside f1(V).
  5. This ball is an interval (x0δ,x0+δ).
  6. All elements of this interval are mapped into V, confirming the ε-δ condition.

Assume that f is continuous according to the ε-δ definition.

  1. Select any V open set. We must show f1(V) is open.
  2. Select any x0f1(V). Define y=f(x0).
  3. Then y0V, and so y0𝐁ε(y0)V for some ε>0 by metric space continuity.
  4. This 𝐁ε(y0) is an interval: y𝐁ε(y0)|yy0|<ε
  5. By the ε-δ definition of continuity, produce some δ>0 so that: |xx0|<δ|f(x)y0|<ε
  6. Therefore, whenever x𝐁δ(x0), we know f(x)V.
  7. So 𝐁δ(x0) is open (by definition), is contained in f1(V), and contains x0, confirming the topological continuity condition.

05 Theory - Compactness, homeomorphism, continuity, homotopy

Compactness

A topological space is compact when every open cover has a finite subcover.

The entire real line is not compact because the open cover {(n1,n+1)|n} has no finite subset which also covers .

The closed interval [0,1] is compact.

  1. Let 𝒰={Uα}α be any open cover of [0,1].
  2. Define A[0,1]:
A={x[0,1]|[0,x] can be covered finitely out of 𝒰}
  1. Let be the supremum of A.
  2. We show =1.
    • Suppose <1 and seek a contradiction.
    • Take some open set U in 𝒰 containing , and an open ball 𝐁ε()U around and contained in U.
    • Move leftwards to 12ε. There is a finite cover of [0,12ε] from 𝒰.
    • Add U to this cover, and get a finite cover of [0,+12ε].
    • This contradicts the supremum property of . So we know =1.
  3. Take some open set U in 𝒰 containing 1, and an open ball 𝐁ε(1)U.
  4. There is a finite cover of [0,112ε] because =1.
  5. Add U to this cover to get a finite cover of [0,1]. QED

Homeomorphism

A homeomorphism is a map between topological spaces, f:XY, satisfying:

  • f is bijective
  • f is continuous
  • f1 is continuous

PROP: ‘Homeomorphism’ simplifies for compact metric spaces

If f:XY is a continuous bijection between metric spaces, and X and Y are both compact, then f is necessarily a homeomorphism.

metric space+compactdon’t check f1

Homotopy

A homotopy is a morphism between continuous maps.

Given f0,f1:XY continuous maps, a homotopy is a continuous function:

F:X×[0,1]Y,F(x,0)=f0andF(x,1)=f1

We say f0 and f1 are homotopic if any homotopy exists between them.

A homotopy is a continuous deformation of f0 into f1. Define ft(x)=F(x,t) to view it this way.

For example, suppose we have two maps f0,f1:𝕊1𝕊1:

center

The “winding number” is preserved by F, meaning that each ft has the same winding number.

Topological spaces: further notions

06 Theory - Quotients, gluing

Quotient topology

For any partition of 𝒫 of X into cells Yα, α𝒜, there is a quotient topology structure on the set of cells Y={Yα}𝒜.

The open sets of Y are the collections of cells whose unions are open in X.

A quotient space is therefore given by ‘collapsing’ some sets of points in X into single objects Yα, and the open sets come from open sets in X that are compatible with the partition, meaning they do not cross partition boundaries, or that they contain only whole cells.

There are many equivalent formulations of this notion, and these two are most common:

  • Using an equivalence relation on X, whereby the equivalence classes [x] determine cells of the partition. Then the quotient space is written X/.
    • Recall that partitions and equivalence relations are interchangeable notions.
  • Using a surjective function f:XY, whereby the preimage fibers f1(y) determine cells of the partition. Then Y has the quotient topology when open sets are given by V where f1(V) is open in X.

Gluing

Two spaces X1 and X2 can be glued along specified subsets A1X1 and A2X2 using a bijection φ:A1A2 by defining the quotient topology X1X2/ where identifies a1A1 with φ(a1)A2.

07 Illustration

Gluing shapes

  • Glue a pair of triangles along an edge.
  • Glue a line segment to a triangle, endpoint to vertex.

center

Real projective space n

Consider the unit sphere 𝕊23. Antipodal points of 𝕊2 are those determining a straight line passing through the origin.

Define 2 as the quotient 𝕊2/ where equivalence classes of are the pairs of antipodal points.

Define n similarly by gluing together antipodal points in 𝕊n.

We can also describe 2 using a disk with antipodally glued boundary:

center

This surface is also derivable by gluing a disk to a Mobius band:

center

08 Theory - Embedding, limit points, closure, boundary

Embedding

An embedding f:AY is a continuous injective map that induces a homeomorphism f:Af(A).

It is important to emphasize that f(A) should have the subspace topology inherited from Y.

For example, a knot in 3 is an embedding 𝕊13.

center

Exercise - Touching upon

An open interval is mapped into 2 by f such that one end has a limit point on the image of the middle.

center

The map f is continuous and bijective. Show that f1 is not continuous.


Limit points

Given a subspace SX, a point pS is a limit point of S when every open set around p touches S somewhere besides p.

pUopen(US)\{p}

Notes:

  • Limit points are sometimes called accumulation points.
  • The limit point p might be outside S!
  • In a metric space, this can be reformulated: p is a limit point of S when there is some sequence xnS such that d(xn,p)0 as n. This is written xnp.
    • In other words, p is “approached” from inside S.

Interior and exterior

The interior of a set SX is the set of points pS with an open neighborhood contained in S.

The exterior of a set SX is the interior of the complement of S.

Closure of a set

The closure S of a set SX is the union of S with all limit points of S.

  • Equivalently: the closure S is the complement of the union of all open sets in X that don’t touch S.
  • Equivalently: the closure S is the intersection of all closed sets containing S.

Boundary of a set

The boundary Bd(S) of a set SX is the set of points in both S and (X\S).

  • Equivalently: the boundary Bd(S) is the set of points for which every open neighborhood touches both the interior and the exterior of S.
  • Boundary points are not always in S!

Simplicial complexes

A simplicial complex is an assembly of simplices, which generalize triangles and tetrahedra. Simplices provide “building block” objects in each dimension that may be glued together to form a complex.

Simplices provide a combinatorial method of representing a large class of topological spaces, since the ‘assembly data’ encoding the gluing of simplices into a complex is combinatorial in nature.

Simplicial homology is a homology theory (topological invariant) that is naturally defined in terms of a given simplicial complex. It is easy to find this homology for a space when a representation as simplicial complex is known.

Simplicial homology is isomorphic to other homology theories.

  • Singular homology: abstract ‘naturality’; proving invariance is easier
  • Simplicial homology: combinatorial; build complexes by gluing faces ‘directly’; stricter gluing rules
  • Delta homology: combinatorial, like simplicial; more relaxed gluing rules
  • CW homology: combinatorial, like simplicial but gluing cells (balls) not simplices; build CW complexes inductively; very relaxed gluing rules

For smooth manifolds, we also have:

  • De Rham cohomology: uses differential forms “closed but not exact”

09 Theory - Simplices and complexes

n=0:

  • A 0-simplex is a point (a vertex).

n=1:

  • A 1-simplex is a line segment.

n=2:

  • A 2-simplex is a triangle (interior included).

n=3:

  • A 3-simplex is a tetrahedron.

center

Geometric simplex

Vertices: v0,v1,,vnn+1, required to be affinely independent.

Geometric simplex:

σ=[v0,v1,,vn]={xn+1,x=tivi|i,ti0andti=1}
  • Thus σ is the “convex hull” of v0,,vn. In other words: all weighted averages of the vertices.
  • Affinely independent means: v0,,vn do not lie in any hyperplane (dimension n) of n+1; equivalently that v1v0,,vnv0 are linearly independent, or that they generate a vector space of dimension n.
  • A simplex failing this criterion is called degenerate.

center

  • Standard n-simplex σn: vertices are the unit vectors in n+1.

For example, with n=1 the standard simplex is:

σ1={v2|v=t0𝐞x+(1t0)𝐞y,0t01}

This defines the line segment from (1,0) to (0,1).

Similarly, with n=2 we find that σ2 is parametrized by v=t0𝐞x+t1𝐞y+(1t0t1)𝐞z.

center


A simplicial complex can be characterized in several ways:

  • Combinatorially
  • Geometrically
  • Topologically

Simplicial complex - Combinatorial

A combinatorial simplical complex K with a set of ‘vertices’ 𝒱={v0,v1,,vN} is a collection of subsets of 𝒱, called ‘simplices’, satisfying:

  • All faces included: If σK, then all faces of σ are in K. (And thus faces of faces, all the way down to vertices.)
  • Touching only at a face: If σ,τK, and στ=, then στ is a face of σ and a face of τ.

For σ={w1,,wn}𝒱, the faces of σ are the subsets of σ lacking a single vertex of σ.

A simplicial complex has a topology. This is given by gluing the disjoint union of constituent simplices along the faces that intersect. (The quotient topology.)

If the simplicial complex is given a geometric representation in n, then the glued/quotient topology should match the one inherited by the complex as a subspace of n.


10 Illustration

For example, given a simplex [v0,v1,v2], the faces are [v0,v1] and [v1,v2] and [v0,v2]:

center


A simplicial complex 𝒦 with 3D subcomplex σ3 and 2D subcomplex τ2 and 1D subcomplex γ1.

center

Simplices of dimension 0 are called vertices, simplices of dimension 1 are called edges, and simplices of dimension n1 in an nD complex are called faces.

The simplices of top dimension are sometimes called facets (i.e. the biggest ones are called ‘little faces’).


The intersection of two sub-simplices is allowed to be a single face, not two faces (vertices, in this case):

center

Torus as simplicial complex

It is easy to create a torus by gluing the edges of a square:

center

But it is not this easy to represent a torus as a simplicial complex. Initial attempts fail:

center

One can do it with a little more work and complexity:

center


Every finite simple undirected graph is a simplex.

  • No “parallel edges”
  • No “one-loops”

center


In a geometric representation of a simplicial complex, edges should not cross, etc.

center

Kuratawki: Graph planarity

The graph planarity theorem of Kuratowski says that a graph is planar (can be drawn in 2 without self intersection) if and only if it does not contain a copy of K5 or K3,3:

center

11 Theory - Subdivision and triangulation

A single topological space (up to homeomorphism) can be represented in many different ways as a simplicial complex:

center|center

One can perform “barycentric subdivision” upon a given simplicial complex. This produces a simplicial complex that is homeomorphic to the original one, but the edges are shorter and areas of faces smaller.

center|center

center|center


A triangulation is a simplicial complex that is homeomorphic to a given smooth manifold. A triangulated manifold is a simplicial complex together with a homeomorphism to a given smooth manifold.

For example, the tetrahedron obtained by gluing four copies of the standard 2-simplex σ2 is homeomorphic to 𝕊2 and is therefore a triangulation of 𝕊2.

Triangulations of spheres

For 𝕊2, all possible triangulation types have been found by Tutte.

For 𝕊3, there is not a known enumeration of triangulation types.

Simplicial homology

Simplicial homology can be defined with “coefficients in ” or with “coefficients in ” (or another ring). Using gives abelian groups, while using gives vector spaces. Vector spaces are nicer to work with, but some information is lost. (Generators of finite order are lost, for example.)

12 Theory - Boundaries, chain complexes

Fix a simplicial complex 𝒦 which is n-dimensional. (Highest dimension of a simplex in 𝒦 is n.)

Chain groups

For each k, kn, define the kth chain group Ck(𝒦):

Ck(𝒦)=free abelian groupgenerated byk-simplices in 𝒦

In other words:

Ck={iIfiniteniσi|ni,σi𝒦,dim(σi)=k}

An element of the k-chain group, written generically as n1σ1++nσ, is called a k-chain.

  • Sometimes 𝒦 is dropped and we write just Ck when the complex is clear from context.

By allowing combinations of simplices with coefficients, we can define a boundary operator with alternating signs. This alternation leads to cancellation when boundaries of boundaries are taken. The cancellation in turn enables the definition of homology, which is generated by cycles of simplices that are not boundaries.

Boundary operator

The boundary operator k maps simplices to their boundaries. It is defined on simplices and extended linearly to chains:

k:CkCk1k:[v0,,vk]i=0n(1)i[v0,,vi^,,ith omittedxvk]

Examples:

  • A 1-simplex:
([v0,v1])[v0^,v1][v0,v1^]v1v0
  • A 2-simplex:
([v0,v1,v2])[v1,v2][v0,v2]+[v0,v1]

Orientation and vertex ordering

A simplex was initially defined as the convex closure of a set of points. The points were not ordered! The simplex was not ordered!

The boundary map was defined for an ordered list of points (“ith omitted”). These definitions are not compatible!

Let us upgrade both definitions to employ oriented sets of points.

Hereafter, the notation [v0,,vn] will indicate an ordered list of vertex points up to the equivalence relation that identifies lists which are related by an even permutation.

For example: [v0,v1,v2]=[v1,v2,v0], but: [v1,v0,v2][v0,v1,v2].

  • With this convention, the boundary map is well-defined.
  • Notice that the orientation of the vertex list determines the sign of its boundary:
([v0,v1])v0v1but:([v1,v0])v1v0
  • Therefore: one may interpret the sign of a coefficient in Ck as indicating the orientation of the simplex it is attached to.
  • Thus the boundary of a 2-simplex (filled triangle) is an oriented path around the triangle:
([v0,v1,v2])[v1,v2][v0,v2]+[v0,v1][v0,v1]+[v1,v2]+[v2,v0]

LEMMA: Boundary of boundary is empty

For all k, we have:

k1k=0

Proof of LEMMA

Apply the double boundary to a generator of Ck:

Ck[v0,,vk]ki=0k(1)i[v0,,vi^,,ith omittedxvk]k1i=0kj<i(1)i(1)j[v0,,vj^,,vi^,,vk]++i=0kj>i(1)i(1)j1[v0,,vi^,,vj^,,vk]=0

The second summation duplicates the terms of the first summation, but has one fewer power of 1, so the whole sum vanishes. Both summations cover all (k2)-simplices omitting some two vertices.

Using this fact we construct the chain complex of group homomorphisms:

Chain complex

Given a simplicial complex 𝒦 of maximal dimension n, we define the chain complex of 𝒦 as the sequence of morphisms:

0CnnCn1n1Cn2C11C00

This sequence is a complex because the Lemma ensures that

Im(k)Ker(k1)for everyk.

The image and kernel groups have names:

  • Bk:=Im(k+1) — called the boundary chains
  • Zk:=Ker(k) — called the cycles

Homology

The kth homology of 𝒦 is defined as the quotient group of cycles modulo boundary chains:

Hk(𝒦)=Ker(k)Im(k+1)

Notice that k in Hk appears in the numerator. So Hk is generated by chains of k-simplices.

13 Illustration

Homology of a triangle

Consider the 1D simplicial complex consisting of a triangle:

center

The chain complex is:

0C1C0003130

The group C1 is generated by the 1-simplices:

C1=[v0,v1],[v1,v2],[v0,v2]

The group C0 is generated by the 0-simplices:

C0=v0,v1,v2

The boundary operator:

[v0,v1]1v1v0[v1,v2]1v2v1[v0,v2]1v2v0

The kernel of 1 is freely generated by [v0,v1]+[v1,v2][v0,v2]. The image of 1 is isomorphic to via the map determined by v01.

So we have H1 and H0. Higher homology groups vanish.

Homology counts holes by dimension

Consider the space X, the wedge sum of three copies of 𝕊1 and one copy of 𝕊2 obtained by gluing all spaces at a single point:

center

The homology of this space is:

Hi(X)={0i>32i=23i=1i=0

Homology independent loops in a graph

The “nullity” of a connected graph is the number of independent cycles in the graph. If H1(Γ)=c for Γ a graph considered as a simplicial complex, then c is the nullity.

So H1(Γ)=6 for Γ the following graph:

center