Unfoldings in Lean Check a result Declarations Bibliography Lean source

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

defCapAbstract.Planepropext · Classical.choice · Quot.soundCap/Abstract.lean:24
/-- The local face plane, ambient three-dimensional space, and three triangle corners. -/abbrev Plane := EuclideanSpace ℝ (Fin 2)
defCapAbstract.Spacepropext · Classical.choice · Quot.soundCap/Abstract.lean:26
abbrev Space := EuclideanSpace ℝ (Fin 3)
defCapAbstract.Cornerno axiomsCap/Abstract.lean:27
abbrev Corner := Fin 3
defCapAbstract.nextpropextCap/Abstract.lean:29
def next : Corner → Corner  | 0 => 1  | 1 => 2  | 2 => 0
defCapAbstract.trianglepropext · Classical.choice · Quot.soundCap/Abstract.lean:34
/-- 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)
defCapAbstract.edgepropext · Classical.choice · Quot.soundCap/Abstract.lean:37
def edge (vertex : Corner → Plane) (i : Corner) : Set Plane :=  segment ℝ (vertex i) (vertex (next i))
structureCapAbstract.Meshpropext · Classical.choice · Quot.soundCap/Abstract.lean:40
/-- 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 = t

These 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.

Reading the Lean
  • Two different Lean types. CapAbstract.Mesh and SourceAbstract.Mesh have 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 Face and Seam may live in any universe (Type*); in the source file they are in Type. The cap theorem itself quantifies over meshes with Face 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 Mesh and excluded by Polyhedron; here they are essential.

10.2 Points on edges

defCapAbstract.Mesh.Pointpropext · Classical.choice · Quot.soundCap/Abstract.lean:59
/-- A face point remembers which closed triangle it belongs to. -/abbrev Point := (f : Face) × triangle (M.vertex f)
defCapAbstract.Mesh.edgePointpropext · Classical.choice · Quot.soundCap/Abstract.lean:62
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

defCapAbstract.Mesh.gluepropext · Classical.choice · Quot.soundCap/Abstract.lean:67
/-- 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)
defCapAbstract.Mesh.Surfacepropext · Classical.choice · Quot.soundCap/Abstract.lean:73
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, and M.Surface Set.univ is the surface of the mesh as in Chapter 2.
  • With a smaller set, the seams outside retain are cut. M.Surface retain is the cut surface: the same triangles, attached along fewer edges.
Reading the Lean
  • 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

defCapAbstract.Mesh.boundaryEdgepropext · Classical.choice · Quot.soundCap/Abstract.lean:75
/-- 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 s

A 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

defCapAbstract.Mesh.AcuteMarginpropext · Classical.choice · Quot.soundCap/Abstract.lean:78
/-- 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 π/2−α\pi/2 - \alpha. 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.

Reading the Lean
  • For α>0\alpha > 0 all triangles are acute, and uniformly so: no angle comes closer than α\alpha to a right angle. The theorem assumes α>0\alpha > 0.
  • 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.