Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ray-oracle face-lattice reconstruction in dimensions at least two

Proved
Grunbaum2003.ray_oracle_face_lattice_reconstruction_ge_two

by kmehltretter82 · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsconvex-geometryconvex-polytopes

For every fixed dimension d≥2d\ge2d≥2, there exists one exact-real ray-machine program that works uniformly for all full-dimensional nonempty ddd-polytopes P⊆RdP\subseteq\mathbb R^dP⊆Rd containing the origin in their interior. Given any ray oracle that returns a positive intersection with the boundary of PPP in each nonzero direction, the program halts with an encoding of the entire face lattice of PPP and makes at most

f0(P)+(d−1)fd−1(P)2+(5d−4)fd−1(P)f_0(P)+(d-1)f_{d-1}(P)^2+(5d-4)f_{d-1}(P)f0​(P)+(d−1)fd−1​(P)2+(5d−4)fd−1​(P)

oracle queries. The program depends only on ddd, not on the particular polytope or oracle. The output lists a finite set of faces and its complete inclusion relation, up to a bijective enumeration of all exposed faces including the empty and full faces.

This is the dimension-at-least-two case of the Gritzmann–Klee–Westwater reconstruction theorem. The one-dimensional case has a separate constant-output proof and uses no oracle queries.

Preamble
import Definitions.Def_Grunbaum2003_IsDPolytope
import Definitions.Def_Grunbaum2003_faceCount
import Definitions.Def_Grunbaum2003_IsPolytopeRayOracle
import Definitions.Def_Grunbaum2003_RayInstruction
import Definitions.Def_Grunbaum2003_RayConfiguration
import Definitions.Def_Grunbaum2003_rayMachineStep
import Definitions.Def_Grunbaum2003_rayMachineRun
import Definitions.Def_Grunbaum2003_PolytopeFace
import Definitions.Def_Grunbaum2003_IsRayFaceLatticeOutput

set_option autoImplicit false
open scoped BigOperators
Formal statement
namespace Grunbaum2003

theorem ray_oracle_face_lattice_reconstruction_ge_two (d : ℕ) (hd : 2 ≤ d) :
    ∃ program : List RayInstruction,
      ∀ P : Set (Fin d → ℝ), IsDPolytope P → (0 : Fin d → ℝ) ∈ interior P →
        ∀ oracle : (Fin d → ℝ) → (Fin d → ℝ), IsPolytopeRayOracle P oracle →
          ∃ (t : ℕ) (c : RayConfiguration),
            rayMachineRun program oracle t
              { pc := 0, head := 0, tape := fun _ => 0, queries := 0 } = some c ∧
            program[c.pc]? = some .halt ∧
            c.queries ≤ faceCount P 0 + (d - 1) * (faceCount P (d - 1)) ^ 2 +
              (5 * d - 4) * faceCount P (d - 1) ∧
            IsRayFaceLatticeOutput P c := by sorry

end Grunbaum2003
Source
Branko Grünbaum, Convex Polytopes, 2nd ed. (Springer, 2003), §3.6, unnumbered Gritzmann–Klee–Westwater theorem, printed pp. 52b–52c / PDF pp. 74–75; source.pdf SHA-256 070befaa8c47f043ef9da1df0705910480eb692f044d1843c9f048f3e61fecac.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me