Unfoldings in Lean Check a result Declarations Bibliography Lean source

Chapter 13The nearly flat cap theorem

Key result · O'Rourke 2018
Nearly flat convex caps with acute faces unfold along edges to a simple polygon

For every α>0\alpha > 0 there is an angle φ\varphi with 0<φ<π/20 < \varphi < \pi/2 such that every convex cap satisfying the following two conditions has an edge unfolding without overlap whose outline is a simple polygon: every angle of every face is at most π/2−α\pi/2 - \alpha, and every face normal makes an angle at most φ\varphi with the vertical.

The Lean statement
theoremCapAbstract.nearly_flat_cappropext · Classical.choice · Quot.soundCap/Abstract.lean:130
/-- **The cap theorem.** For each positive acute margin there is a positive tilt bound,chosen before the mesh. Every cap whose face normals satisfy that bound unfolds alongoriginal edges into a simple polygon. No algorithmic time bound is asserted. -/theorem nearly_flat_cap {α : ℝ} (positive : 0 < α) :    ∃ φ ∈ Set.Ioo (0 : ℝ) (Real.pi / 2),      ∀ {Face Seam : Type} [Fintype Face] [Fintype Seam] (M : Mesh Face Seam) (K : Cap M),        M.AcuteMargin α → (∀ f, Real.cos φ ≤ K.normal f 2) → HasSimpleEdgeUnfolding M := … by  classical  obtain ⟨φ, bounds, unfolds⟩ := Unfoldings.ConvexCap.orourke_cap_theorem.{0, 0} positive  refine ⟨φ, bounds, ?_⟩  intro Face Seam _ _ M K acute tilt  let C := Unfoldings.CapAbstractBridge.meshComplex M.vertex M.nondegenerate    M.first M.last M.distinct M.identify M.unique  let F : Unfoldings.SpatialFolding C := ⟨K.place, K.joined⟩  let cap := Unfoldings.CapAbstractBridge.capOfGeometricData F K.normal    K.unit K.upward K.tangent K.supporting K.projection K.convex K.interior_nonempty    (fun bank x => K.rim (bank.val.face, bank.val.edge)      ((Unfoldings.CapAbstractBridge.boundary_edge_pair bank.val).mp bank.property) x) K.above  obtain ⟨U⟩ := unfolds cap acute tilt  exact Unfoldings.CapAbstractBridge.unfolding_output cap U
Statement reads only Cap/Abstract.lean and its imports
18 definitions in 3 chapters · reading list

13.1 The statement

theoremCapAbstract.nearly_flat_cappropext · Classical.choice · Quot.soundCap/Abstract.lean:130
/-- **The cap theorem.** For each positive acute margin there is a positive tilt bound,chosen before the mesh. Every cap whose face normals satisfy that bound unfolds alongoriginal edges into a simple polygon. No algorithmic time bound is asserted. -/theorem nearly_flat_cap {α : ℝ} (positive : 0 < α) :    ∃ φ ∈ Set.Ioo (0 : ℝ) (Real.pi / 2),      ∀ {Face Seam : Type} [Fintype Face] [Fintype Seam] (M : Mesh Face Seam) (K : Cap M),        M.AcuteMargin α → (∀ f, Real.cos φ ≤ K.normal f 2) → HasSimpleEdgeUnfolding M := … by  classical  obtain ⟨φ, bounds, unfolds⟩ := Unfoldings.ConvexCap.orourke_cap_theorem.{0, 0} positive  refine ⟨φ, bounds, ?_⟩  intro Face Seam _ _ M K acute tilt  let C := Unfoldings.CapAbstractBridge.meshComplex M.vertex M.nondegenerate    M.first M.last M.distinct M.identify M.unique  let F : Unfoldings.SpatialFolding C := ⟨K.place, K.joined⟩  let cap := Unfoldings.CapAbstractBridge.capOfGeometricData F K.normal    K.unit K.upward K.tangent K.supporting K.projection K.convex K.interior_nonempty    (fun bank x => K.rim (bank.val.face, bank.val.edge)      ((Unfoldings.CapAbstractBridge.boundary_edge_pair bank.val).mp bank.property) x) K.above  obtain ⟨U⟩ := unfolds cap acute tilt  exact Unfoldings.CapAbstractBridge.unfolding_output cap U
Statement reads only Cap/Abstract.lean and its imports

Given a positive real α, the theorem produces an angle φ in the open interval (0,π/2)(0, \pi/2). Then, for every mesh M and every cap K on it (Chapter 11), if M has acute margin α (Chapter 10) and every normal of K has third coordinate at least cos⁡φ\cos\varphi, the mesh has a simple edge unfolding (Chapter 12).

Reading the Lean
  • The order of the quantifiers. ∃ φ ∈ Set.Ioo 0 (π/2), ∀ {Face Seam} … (M) (K), …. The angle is chosen first, knowing only α. It then works for all meshes, of any size and shape. A statement with the quantifiers the other way round, where the angle could depend on the mesh, would say almost nothing: every single cap can be flattened a little.
  • Real.cos φ ≤ K.normal f 2 says that the angle between the normal and the vertical is at most φ, because the normal is a unit vector pointing up and the cosine is decreasing on [0,π/2][0, \pi/2].
  • Set.Ioo is the open interval; φ is strictly between 00 and π/2\pi/2.
  • The conclusion is about M, not about K. The cap enters only through the hypotheses.
  • The proof is longer than for the source theorem but has the same nature: it builds the internal objects of the library from the fields of M and K, applies the internal theorem orourke_cap_theorem, and translates the result back. Open it with “show proof” to see that it contains no mathematics of its own.

13.2 Comparison with the paper

The abstract of O'Rourke (2018) states the result as follows: a nearly flat, acutely triangulated convex cap has an edge unfolding to a non-overlapping polygon in the plane, where nearly flat means that every outer face normal forms a sufficiently small angle with the vertical, smaller than a bound Φ\Phi that depends on the acuteness gap α\alpha.

Paper Lean statement
Dependence of the bound Φ\Phi depends on α\alpha only φ is chosen from α before the mesh
Value of the bound Φ≈0.36α\Phi \approx 0.36\sqrt{\alpha} suffices existence of some φ > 0; no value
Outline of the unfolding a non-overlapping polygon a simple polygon; non-overlap including touching
Algorithm constructive, at worst O(n2)O(n^2) none stated
Closing the cap by its base the closed polyhedron also unfolds not stated

So the Lean theorem is the existence part of the paper’s main result. The docstring is explicit about one of the gaps: “No algorithmic time bound is asserted.”

13.3 What the theorem does not say

  • No explicit angle. The theorem gives no formula or numerical value for φ.
  • Nothing for obtuse or right triangles. With α≤0\alpha \le 0 the theorem does not apply.
  • Nothing for caps with a non-planar rim. The library proves an extension to such surfaces, which it calls roofs, in Roof/SimpleEdgeUnfolding.lean. That result has no abstract file and is outside this book.
  • Nothing about closed convex polyhedra. Whether every convex polyhedron has an edge unfolding without overlap remains open.