Mod-2 homology of a triangulated 2-sphere #
For a 2-complex L (a finite set of triangles) the chains with coefficients in a field K of
characteristic 2 (for example ℤ/2) are the functions on its triangles, edges and vertices.
bd2 K L sends a 2-chain to its boundary (each triangle to its three edges) and bd1 K L a 1-chain
to its boundary (each edge to its two vertices). Characteristic 2 makes orientations unnecessary.
bd1_bd2: the boundary of a boundary is0.IsSurfaceSphere.ker_bd2: the only 2-cycles are0and the sum of all triangles (the vertex links are connected, so a 2-cycle is constant around every vertex, and the 1-skeleton is connected).mem_range_bd1_of_sum_eq_zero: every 0-chain with coefficient sum0is a boundary (the 1-skeleton is connected).IsSurfaceSphere.range_bd2,IsSurfaceSphere.exists_bd2_eq: every 1-cycle is a boundary (H₁(L; K) = 0). The dimensions of the cycles and boundaries agree because the Euler characteristic is2.
The coefficient field is a variable rather than ZMod 2 itself: with the concrete ZMod 2,
Mathlib's dimension lemmas (already finrank_span_singleton) run out of time unifying the ring
structure of ZMod 2 with the one derived from its field structure.
The boundary of a 2-chain: the sum, over the triangles containing an edge, of their coefficients.
Equations
- Lightlike.PR.bd2 K L = LinearMap.pi fun (e : ↥(Lightlike.PR.edges2 L)) => ∑ τ : ↥L with ↑e ⊆ ↑τ, LinearMap.proj τ
Instances For
The boundary of a 1-chain: the sum, over the edges containing a vertex, of their coefficients.
Equations
- Lightlike.PR.bd1 K L = LinearMap.pi fun (v : ↥(Lightlike.PR.verts2 L)) => ∑ e : ↥(Lightlike.PR.edges2 L) with ↑v ∈ ↑e, LinearMap.proj e
Instances For
Sums over subtypes #
Extend a function on the elements of S by 0.
Equations
- Lightlike.PR.extFn f x = if h : x ∈ S then f ⟨x, h⟩ else 0
Instances For
A sum over the elements of S satisfying P is the sum over S.filter P.
Edges with two triangles #
If the boundary of a 2-chain vanishes on an edge, its two triangles have the same coefficient.
A vertex of a 3-element set has another vertex next to it.
A 2-chain whose boundary vanishes on every edge through u is constant on the triangles
around u: the link of u is connected, and the two triangles at each edge through u have the
same coefficient.
The 2-cycles of a triangulated 2-sphere are constant.
The 2-cycles #
The 2-cycles of a triangulated 2-sphere are 0 and the sum of all triangles.
The boundary of a boundary #
The edges of a set τ through a vertex v of τ are the pairs {v, w}, w ∈ τ, w ≠ v.
In a triangle, a vertex lies in exactly two of the three edges (or in none).
The edges of L through v inside a triangle τ of L are the 2-element subsets of τ
that contain v.
bd1 ∘ bd2 at a vertex v: each triangle is counted once for every edge through v in it.
The boundary of a boundary is 0: in a complex of triangles, a vertex of a triangle lies
in two of its edges, and 2 = 0 in characteristic 2.
The 0-boundaries #
Every 0-chain δ_u + δ_{u₀} is a boundary: join u₀ to u by a path of edges.
The 0-chains with coefficient sum 0 are boundaries.
The first homology vanishes #
The 1-cycles of a triangulated 2-sphere are exactly the boundaries. The boundaries of
2-chains have dimension F - 1 (the 2-cycles are 0 and the sum of all triangles), the 1-cycles
have dimension at most E - (V - 1) (every 0-chain with coefficient sum 0 is a boundary), and
V - E + F = 2.
Every 1-cycle of a triangulated 2-sphere is the boundary of a 2-chain
(H₁(L; K) = 0 for a field K of characteristic 2).
The crossing lemma #
If a 2-chain has boundary 1 on an edge e, the coefficients of the two triangles at e
add up to 1.
The crossing lemma, over any field K of characteristic 2. Around a vertex v with
consecutive link vertices v₁, v₂, v₃, v₄ (triangles v v₁ v₂, v v₂ v₃, v v₃ v₄, v₁ ≠ v₄),
the diagonals v₁v₃ and v₂v₄ are not both edges. The cycle v v₁ v₃ bounds a 2-chain
(H₁ = 0), which is constant around v₂ and around v₄ because no edge of the cycle passes
through them; but its two triangles v v₂ v₃ and v v₃ v₄ at the cycle edge v v₃ differ, and a
triangle through v₂ v₄ would have to equal both.
The crossing lemma (coefficients ℤ/2): around a vertex of a triangulated 2-sphere, two
interleaved diagonals of its link are not both edges.