A Lean/Mathlib library for polyhedral metrics, cuts, and planar unfoldings. The main result constructs a finite nonoverlapping source unfolding of a convex polyhedron at every nonextreme source point. General developments can overlap; nonoverlap is a separate property.
Install elan, then run:
lake exe cache get
lake buildThe repository pins Lean and Mathlib 4.35.0. The build checks the library, examples, and a proof-dependency audit allowing only standard Lean axioms. See the build reference for cache options and audit details.
Start with Source/Unfolding.lean.
Its input is a triangulated surface with a spatial folding F and a proof
P : F.ConvexBoundary that the surface is the boundary of a full-dimensional
convex hull. Given a nonextreme source, construct the unfolding as follows:
import Unfoldings.Source.Unfolding
open Unfoldings
noncomputable section
example {Face : Type} [Fintype Face] {C : TriangleComplex Face}
{F : SpatialFolding C} (P : F.ConvexBoundary)
(source : C.Realization Set.univ)
(hsource : F.toSpace Set.univ source ∉ F.vertexHull.extremePoints ℝ) :
letI := P.metricSpace
SourceUnfolding (C := C) source := by
letI := P.metricSpace
exact P.sourceUnfoldingOfNonextreme source hsourceThe resulting U : SourceUnfolding source provides:
U.layoutandU.nonoverlapping: finitely many convex polygon pieces with disjoint interiors and rigid maps into original triangles.U.diskandU.intrinsic_distance: a completed cut surface homeomorphic to a closed disk, with the cut metric identified with intrinsic path distance.U.boundary_projection: the net boundary projects exactly onto the cut locus.U.radial_shortest_pathandU.source_distance_preserved: radial lifts of every shortest path, including distinct boundary copies at tied endpoints.
P.sourceUnfolding source regular is an alternative constructor when you
already have an intrinsic regularity proof. Sources on creases and flat
subdivision vertices are included. These noncomputable constructions expose
data and theorems for use in further proofs.
For an independent formal statement, read Source/Abstract.lean.
Its general IsNetOf predicate describes a disk that folds rigidly onto a spatial
surface. The source theorem constructs a valid net of the given polyhedron with
the additional shortest-path properties. Construction proofs live in
Source/AbstractBridge.lean.
Import Unfoldings.Source.Abstract; lake build checks both the proof and the
independence of its public definitions and statements.
| Goal | Start here |
|---|---|
| Read the main result and its output API | Source/Unfolding.lean |
| Read an independent statement of source unfolding | Source/Abstract.lean |
| Define a triangulated surface and its cuts | Complex.lean |
| Supply an embedded convex-boundary model | Complex/Folding.lean, Polyhedron/Convex.lean |
| Work with overlapping or nonoverlapping layouts | Development.lean, PolygonalLayout.lean |
| Understand the metric construction | Metric/Route.lean, Metric/Gluing.lean |
| Characterize disk cuts of a convex sphere | Polyhedron/CutDiskIff.lean |
| Cut a disk along a rooted forest | Complex/RelativeCutForest.lean |
| Instantiate a complete convex polyhedron | Examples/Tetrahedron.lean |
| Develop a flat metric disk, with overlap allowed | Development/FlatDisk.lean |
| Cut polygonal forests carried by a refinement | Complex/PolygonalCuts.lean, Complex/PolygonalCutGraph.lean |
| Refine triangles without changing intrinsic geometry | Complex/SubdivisionMetric.lean, Examples/Subdivision.lean |
| Unfold a sufficiently flat acute convex cap to a simple polygon | Cap/SimpleEdgeUnfolding.lean |
| Unfold an acute convex roof with arbitrary boundary heights | Roof/SimpleEdgeUnfolding.lean |
| Select whole-face disks by convex spherical normal regions | Polyhedron/NormalSelection.lean |
| Construct exact clipped extensions and compatible forests | Normal-selection guide |
| Inspect a concrete nonflat convex cap | Examples/Pyramid.lean |
| Try small examples | Examples/Metric.lean, Examples/Hinge.lean |
For a specific lemma, use the module index. For development priorities, use the feature checklist; the session log records how the proofs were built.
The regular-source theorem and the finite embedded tree structure of its cut
locus are proved; see Source/CutTree.lean.
The sphere criterion proves that the
canonical primal cut multigraph is a tree exactly when the cut is a disk.
The disk criterion proves the
corresponding rooted-forest equivalence, including empty cuts. Both construct
actual disk homeomorphisms and allow overlapping developments.
Conforming refinements preserve intrinsic distances, spatial foldings,
developments, and nonoverlap. A triangulated disk with a spatial folding and
total angle 2π at every interior vertex has a locally isometric development,
unique after fixing one face.
Polygonal cuts use supplied conforming refinement certificates.
O'Rourke's nearly flat cap theorem is also proved. A positive acute margin determines a tilt threshold uniform over all input meshes. The result constructs original-edge forest cuts, an intrinsic cut disk, and a globally injective development with a simple polygon boundary. See the cap theorem guide for its output API and proof.
For an independent statement, read Cap/Abstract.lean.
Its definitions and theorem state the mathematical claim; Lean checks the proof
through AbstractBridge.lean. Import
Unfoldings.Cap.Abstract; the usual lake build checks it and audits that its
public definitions and statements use only the abstract suite and Mathlib.
The arbitrary-rim acute-roof theorem extends this conclusion to roofs over convex polygons with unrestricted boundary heights. Its positive tilt threshold also depends only on the acute margin. See the roof guide for inputs, outputs, and the proof structure.
Whole-polyhedron normal-selection disks, exact clipped polyhedral extensions, and compatible common-potential forests are also constructed. The forest bounds cover all incoming histories, partial edges, and terminal rays. See the normal-selection guide for the main APIs and hypotheses. The cuts now form embedded straight forests and can be truncated at a common envelope level with exactly one boundary root per tree. Supported cuts on a constructed conforming mesh give flat intrinsic cut disks. The source-only gap graft develops isometrically onto the plane. Under the annular history-angle bound, the small-tilt roof theorem gives rigid placements of the original cut roof cells with disjoint interiors.
Remaining work includes:
- Sources at genuine cone vertices, which need sector-valued source frames.
- Automatic refinement construction for supplied polygonal arcs.
- Star unfolding and the downstream tools needed for the Fewest Nets paper.
The graph and cellulation layer is intended for eventual Mathlib upstreaming. The current source-unfolding theorem does not require a planar-graph Euler formula or a Jordan curve theorem.
Proof adaptations and prior-library credits are recorded in the provenance notes.