Gritzmann–Klee–Westwater ray-oracle reconstruction up to face-lattice order isomorphism
ProvedGrunbaum2003.exists_ray_oracle_program_up_to_orderIsoThis lemma states the Gritzmann–Klee–Westwater ray-oracle reconstruction theorem up to combinatorial equivalence: for every dimension , there exists a ray-machine program that, given ray-shooting oracle access to any -polytope with , halts within the Gritzmann–Klee–Westwater query bound and outputs the face lattice of a model polytope combinatorially equivalent to .
Let be a positive integer. Then there exists a program such that for every -polytope with and every valid ray oracle (IsPolytopeRayOracle P oracle), there exist a step count , a halting configuration , and a subset satisfying
together with and an order isomorphism .
By the combinatorial invariance theorem rayMachine_halt_unique_and_output_iso_iff, and imply , which immediately yields ray_oracle_face_lattice_reconstruction.
Formalization Note Decoupling the reconstructed face-lattice witness from via matches the fact that IsRayFaceLatticeOutput depends on only through the isomorphism type of its face poset PolytopeFace P.
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 import Mathlib.Order.Hom.Basic set_option autoImplicit false open scoped BigOperators
namespace Grunbaum2003
theorem exists_ray_oracle_program_up_to_orderIso (d : ℕ) (hd : 0 < 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) (P' : Set (Fin d → ℝ)),
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 ∧
Nonempty (PolytopeFace P' ≃o PolytopeFace P) := by sorry
end Grunbaum2003