Chapter 10Meshes with cuts
The cap theorem is about cutting a surface along some of its edges. So its file needs meshes in which a seam can be kept or cut. This chapter covers the part of Unfoldings/Cap/Abstract.lean that sets this up.
10.1 The same mesh, defined again
/-- The local face plane, ambient three-dimensional space, and three triangle corners. -/abbrev Plane := EuclideanSpace ℝ (Fin 2)abbrev Space := EuclideanSpace ℝ (Fin 3)abbrev Corner := Fin 3def next : Corner → Corner | 0 => 1 | 1 => 2 | 2 => 0/-- A triangular face is the convex hull of its three corners. Its edges are closed segments. -/def triangle (vertex : Corner → Plane) : Set Plane := convexHull ℝ (Set.range vertex)def edge (vertex : Corner → Plane) (i : Corner) : Set Plane := segment ℝ (vertex i) (vertex (next i))/-- A finite triangulation specifies its corner coordinates and full-edge isometric pairings.The determinant excludes degenerate triangles. Each local edge occurs in at most one pairing. -/structure Mesh (Face Seam : Type*) [Fintype Face] [Fintype Seam] where vertex : Face → Corner → Plane nondegenerate : ∀ f, (vertex f 1 0 - vertex f 0 0) * (vertex f 2 1 - vertex f 0 1) - (vertex f 1 1 - vertex f 0 1) * (vertex f 2 0 - vertex f 0 0) ≠ 0 first : Seam → Face × Corner last : Seam → Face × Corner distinct : ∀ s, first s ≠ last s identify : ∀ s, edge (vertex (first s).1) (first s).2 ≃ᵢ edge (vertex (last s).1) (last s).2 unique : ∀ s t, first s = first t ∨ first s = last t ∨ last s = first t ∨ last s = last t → s = tThese declarations are word for word those of Chapter 1, in the namespace CapAbstract instead of SourceAbstract. Everything said there applies: each face has its own coordinates, a seam pairs two whole edges by a distance-preserving bijection, a local edge belongs to at most one seam, and edges may stay unpaired.
- Two different Lean types.
CapAbstract.MeshandSourceAbstract.Meshhave the same fields but are distinct structures. A theorem about one says nothing, formally, about the other. This is the price of keeping each abstract file self-contained: a reader of one theorem never has to open the other file. - One real difference. Here
FaceandSeammay live in any universe (Type*); in the source file they are inType. The cap theorem itself quantifies over meshes withFace Seam : Type, so nothing depends on this. - Boundary matters here. A cap is a surface with boundary: the edges of its rim are in no seam. For the closed polyhedra of Part I unpaired edges were permitted by
Meshand excluded byPolyhedron; here they are essential.
10.2 Points on edges
/-- A face point remembers which closed triangle it belongs to. -/abbrev Point := (f : Face) × triangle (M.vertex f)def edgePoint (a : Face × Corner) (x : edge (M.vertex a.1) a.2) : M.Point := ⟨a.1, ⟨x.val, (convex_convexHull ℝ (Set.range (M.vertex a.1))).segment_subset (subset_convexHull ℝ _ ⟨a.2, rfl⟩) (subset_convexHull ℝ _ ⟨next a.2, rfl⟩) x.property⟩⟩A tagged point is, as before, a face together with a point of its closed triangle. edgePoint a x takes a local edge a (a face and a corner) and a point x of that edge, and returns x as a tagged point of the face. The body of the definition is the proof that a point of an edge lies in the triangle: an edge is the segment between two corners, and the triangle is convex and contains its corners.
10.3 Gluing along the retained seams
/-- Retaining a set of seams glues precisely those named pairs of whole edges.The quotient uses finite chains of these identifications, including their reversals. -/def glue (retain : Set Seam) (p q : M.Point) : Prop := ∃ s ∈ retain, ∃ x, p = M.edgePoint (M.first s) x ∧ q = M.edgePoint (M.last s) (M.identify s x)abbrev Surface (retain : Set Seam) := Quot (M.glue retain)Here is the addition. The gluing relation takes a set retain of seams, and only those seams glue: M.glue retain p q holds when a seam s in retain and a point x of its first edge exist such that p is x on the first edge and q is identify s x on the last. The surface M.Surface retain is the quotient.
- With
retain = Set.univ, all seams are kept, andM.Surface Set.univis the surface of the mesh as in Chapter 2. - With a smaller set, the seams outside
retainare cut.M.Surface retainis the cut surface: the same triangles, attached along fewer edges.
- Cuts follow whole edges. A seam is either kept entirely or cut entirely. There is no way to cut along part of an edge or across a face. This is what “edge” in “edge unfolding” means.
- Vertices come apart as far as the cuts allow. Two tags of the same corner of the original surface remain identified in the cut surface only if a chain of retained seams connects them. Cutting all the seams at a corner but one leaves the corner attached along that one.
- As in Chapter 2, the relation is directed and the quotient uses its symmetric and transitive closure.
10.4 Boundary edges
/-- An original boundary edge is a local edge occurring in no seam pairing. -/def boundaryEdge (a : Face × Corner) : Prop := ¬ ∃ s, a = M.first s ∨ a = M.last sA local edge is a boundary edge when it is neither the first nor the last edge of any seam. This refers to the original mesh, before any cut: it is the rim of the cap, not an edge made free by cutting.
10.5 The acute margin
/-- The acute margin is a common positive distance of every triangle angle below a right angle. -/def AcuteMargin (α : ℝ) : Prop := ∀ f i, EuclideanGeometry.angle (M.vertex f (next i)) (M.vertex f i) (M.vertex f (next (next i))) ≤ Real.pi / 2 - αM.AcuteMargin α says that every angle of every triangle is at most . In EuclideanGeometry.angle p q r the angle is measured at the middle point q. Here the middle point is corner i, and the other two are the next corner and the one after it, so the expression is the angle of the triangle at corner i.
- For all triangles are acute, and uniformly so: no angle comes closer than to a right angle. The theorem assumes .
- Angles in the plane are angles in space. The condition is about the triangles of the mesh in their own planes. Placing a triangle in space by an isometry does not change its angles, so these are the angles of the faces of the cap, not of their projections to the ground.
- Angles are in radians.