Chapter 7Source unfoldings
A source unfolding is a net with a centre. The source sits at the origin of the plane, and straight segments from the origin are the shortest paths from the source.
On the right is the source unfolding of the solid on the left, computed for the source marked by the black dot. The orange outline of the net folds onto the orange cut locus on the solid. Point at the net: the blue segment from the origin folds to the blue path on the solid, a shortest path from the source. The second menu switches to the star unfolding from the same source, the subject of Chapter 9.
7.1 The definition
/-- A source unfolding is a net of the given polyhedron with the source at the origin.Its folding lifts to the abstract surface, identifies the interior with the cut-locuscomplement by a local isometry, and maps the whole boundary exactly onto the cut locus.Every radial segment folds to a shortest path, and every normalized shortest pathhas exactly one radial lift, including distinct paths tied at one endpoint. -/def IsSourceUnfolding {Face Seam : Type} [Fintype Face] [Fintype Seam] {M : Mesh Face Seam} (K : Polyhedron M) (source : M.Point) (region : Set Plane) (fold : region → Space) : Prop := IsNetOf K.surface region fold ∧ ∃ project : region → M.Surface, Continuous project ∧ Function.Surjective project ∧ (∀ z p, project z = M.point p → fold z = K.place p.1 p.2.val) ∧ (0 : Plane) ∈ interior region ∧ (∀ (z : region) (t : unitInterval), (t : ℝ) • z.val ∈ region) ∧ (∀ h : (0 : Plane) ∈ region, project ⟨0, h⟩ = M.point source) ∧ (∃ H : interior region ≃ₜ ↥((M.cutLocus (M.point source))ᶜ), ∀ z, (H z).val = project ⟨z.val, interior_subset z.property⟩) ∧ (∀ x : interior region, ∃ T : Set (interior region), IsOpen T ∧ x ∈ T ∧ ∀ y z : T, M.distance (project ⟨y.val.val, interior_subset y.val.property⟩) (project ⟨z.val.val, interior_subset z.val.property⟩) = edist y.val.val z.val.val) ∧ project '' {z : region | z.val ∈ frontier region} = M.cutLocus (M.point source) ∧ (∀ z : region, M.distance (M.point source) (project z) = ENNReal.ofReal ‖z.val‖) ∧ (∀ (z : region) (s t : unitInterval) (hs : (s : ℝ) • z.val ∈ region) (ht : (t : ℝ) • z.val ∈ region), M.distance (project ⟨(s : ℝ) • z.val, hs⟩) (project ⟨(t : ℝ) • z.val, ht⟩) = ENNReal.ofReal ‖z.val‖ * edist s t) ∧ ∀ x (p : Path (M.point source) x), M.Shortest p → ∃! z : region, ∀ t : unitInterval, ∃ hz : (t : ℝ) • z.val ∈ region, project ⟨(t : ℝ) • z.val, hz⟩ = p tIsSourceUnfolding K source region fold is stated for a polyhedron K on a mesh M, a tagged point source, and a region with a folding map as in Chapter 6. It asks first that the region and the folding form a net of the surface of K. Then it asks for a map project from the region to the surface M.Surface, with twelve properties. They fall into five groups.
7.1.1 The projection is the folding
| Lean | Meaning | |
|---|---|---|
| a | Continuous project |
project is continuous for the quotient topology of the surface |
| b | Function.Surjective project |
every point of the surface is reached |
| c | project z = M.point p → fold z = K.place p.1 p.2.val |
if project z is represented by the tagged point p, then fold z is the position of p in space |
fold takes values in space; project takes values in the abstract surface, where distances and the cut locus are defined. Property c says that they are the same map, seen in the two descriptions. Since the placement of a polyhedron is injective on the surface, fold determines project. The existential quantifier over project therefore hides no choice.
7.1.2 The source is at the origin and the net is star-shaped
| Lean | Meaning | |
|---|---|---|
| d | 0 ∈ interior region |
the origin is an interior point of the net |
| e | ∀ z t, t • z.val ∈ region |
with every point , the net contains the whole segment from the origin to |
| f | project ⟨0, h⟩ = M.point source |
the origin folds to the source |
7.1.3 The interior is the surface minus the cut locus
| Lean | Meaning | |
|---|---|---|
| g | ∃ H : interior region ≃ₜ (cutLocus …)ᶜ, … |
project restricts to a homeomorphism from the interior of the net onto the complement of the cut locus |
| h | ∀ x, ∃ T, IsOpen T ∧ x ∈ T ∧ … |
every interior point has a neighbourhood on which project preserves distances exactly |
| i | project '' {z | z.val ∈ frontier region} = cutLocus … |
the frontier of the net folds onto the cut locus, and onto nothing else |
Property h compares the Euclidean distance edist y z of two points of the net with the intrinsic distance of Chapter 3 between their images. Globally the two differ: two points of the net on either side of a cut are far apart in the plane and close on the surface. Locally they agree.
7.1.4 Radial segments are shortest paths
| Lean | Meaning | |
|---|---|---|
| j | M.distance (M.point source) (project z) = ENNReal.ofReal ‖z.val‖ |
the distance on the surface from the source to the image of is the Euclidean norm of |
| k | M.distance (project (s • z)) (project (t • z)) = ENNReal.ofReal ‖z.val‖ * edist s t |
along the segment from the origin to , distances on the surface are proportional to the parameter |
Property k is the condition Mesh.Shortest for the path project : the radial segment to folds to a shortest path, at constant speed, from the source to the image of . Property j is the case of the two endpoints, and holds also for on the frontier.
7.1.5 Every shortest path is a radial segment
| Lean | Meaning | |
|---|---|---|
| l | ∀ x (p : Path (M.point source) x), M.Shortest p → ∃! z : region, ∀ t, ∃ hz, project ⟨t • z.val, hz⟩ = p t |
each shortest path from the source is the image of the radial segment to exactly one point of the net |
This is the converse of k, with uniqueness. A point of the cut locus that is reached by three shortest paths has three different points on the frontier of the net, one for each path. The docstring calls these “distinct paths tied at one endpoint”.
- The source is a tagged point.
source : M.Pointpicks a face and a position in it. If the source lies on a seam it has several tags; all of them give the sameM.point source, and the definition uses only that. - Property f is written with a hypothesis
h : 0 ∈ regionbecauseprojectis defined on the region and needs a proof that the origin belongs to it. By d the hypothesis always holds, so f is not vacuous. - Properties k and l need
t • zto be in the region. In k this is an explicit hypothesis (hs,ht), always true by e. In l it is part of the conclusion. - The definition is redundant, deliberately. For example j follows from k, and b follows from the net conditions with c. Redundant conditions make the definition easier to believe and cost nothing: the theorem proves them all.
- Nothing is said about the shape of the cut locus. That it is a tree, with the vertices as leaves, is not part of this definition. The library proves it separately (
Source/CutTree.lean), outside the reading interface. - Uniqueness is not claimed. Properties j to l suggest that a source unfolding is determined up to a rotation or reflection of the plane about the origin. The definition does not say so, and the theorem only asserts existence.
7.2 What the figure computes
The figure does not use the Lean development. For the chosen source it enumerates the straight lines that leave the source, develops the faces they cross into the plane, and keeps, for every point of the surface, the copies that are closest to the origin. The test suite of this book checks, for each solid in the menu and several sources, that the result has the area of the surface, that it is star-shaped, and that each radial segment folds to a path of the same length. These are consequences of the definition above, checked numerically on examples. They are not a proof of anything.