Outer phased facet discovery and exposed-vertex subset inclusion table emitter for ray-oracle reconstruction ()
OpenGrunbaum2003.ray_oracle_phased_facet_discovery_and_vertex_subset_tablecombinatoricsconvex-geometryconvex-polytopes
Given the additive step composition law run_add, instruction relocation, the -query inner-simplex initializer, local sector slackness, Cramer facet-normal recovery, and the planar reference-walk machine, there exists a uniform ray-machine program program that discovers all facets and vertices of (, ) within the phased Gritzmann–Klee–Westwater query sum and writes the unary header 1, ..., 1, 0 followed by the exposed-vertex subset inclusion table if (∀ x ∈ vert(P), x ∈ e i → x ∈ e j) then 1 else 0 onto the tape.
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 Mathlib.Analysis.Convex.Exposed import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional import Mathlib.LinearAlgebra.Matrix.Determinant.Basic set_option autoImplicit false open scoped BigOperators Matrix Classical
Formal statement
namespace Grunbaum2003
theorem ray_oracle_phased_facet_discovery_and_vertex_subset_table (d : ℕ) (hd : 2 ≤ d)
(run_add : ∀ (program : List RayInstruction)
(oracle : (Fin d → ℝ) → Fin d → ℝ) (a b : ℕ) (c : RayConfiguration),
rayMachineRun program oracle (a + b) c =
(rayMachineRun program oracle a c).bind (rayMachineRun program oracle b))
(relocateInst : ℕ → RayInstruction → RayInstruction)
(relocateCfg : ℕ → RayConfiguration → RayConfiguration)
(hRelocate : ∀ (pre program : List RayInstruction)
(oracle : (Fin d → ℝ) → (Fin d → ℝ)) (t : ℕ) (c : RayConfiguration),
(relocateCfg pre.length c).pc = pre.length + c.pc ∧
(relocateCfg pre.length c).head = c.head ∧
(relocateCfg pre.length c).tape = c.tape ∧
(relocateCfg pre.length c).queries = c.queries ∧
rayMachineRun (pre ++ program.map (relocateInst pre.length)) oracle t
(relocateCfg pre.length c) =
(rayMachineRun program oracle t c).map (relocateCfg pre.length) ∧
(program[c.pc]? = some .halt →
(pre ++ program.map (relocateInst pre.length))[
(relocateCfg pre.length c).pc]? = some .halt))
(innerSampleProgram : ℕ → List RayInstruction)
(queryVector : ∀ d : ℕ, ℕ → Fin d → ℝ)
(hInnerProg : ∀ (oracle : (Fin d → ℝ) → Fin d → ℝ) (tape : ℤ → ℝ) (q : ℕ),
∃ c : RayConfiguration,
rayMachineRun (innerSampleProgram d) oracle ((d + 1) * (d + 2) + 2)
{pc := 0, head := 0, tape := tape, queries := q} = some c ∧
c.pc = (d + 1) * (d + 2) + 2 ∧
(innerSampleProgram d)[c.pc]? = some .halt ∧
c.head = 0 ∧
c.queries = q + (d + 1) ∧
(∀ i : Fin (d + 1), ∀ j : Fin d,
c.tape ((((i.val + 1) * d + j.val : ℕ) : ℤ)) = oracle (queryVector d i.val) j) ∧
(∀ z : ℤ, (z < (d : ℤ) ∨ (((d + 2) * d : ℕ) : ℤ) ≤ z) → c.tape z = tape z))
(frameCramerCoefficients : Matrix (Fin d) (Fin d) ℝ → Fin d → ℝ)
(frameNormal : Matrix (Fin d) (Fin d) ℝ → (Fin d → ℝ) →L[ℝ] ℝ)
(hFrameNormal : ∀ (v : Matrix (Fin d) (Fin d) ℝ) (x : Fin d → ℝ),
frameNormal v x = ∑ k, frameCramerCoefficients v k * x k)
(hLocalSlack : ∀ {k : ℕ} (L : Fin k → (Fin d → ℝ) →ₗ[ℝ] ℝ) (p u : Fin d → ℝ),
(∀ j, L j p < 1) →
let δ := ∏ j, (1 - L j p) / (1 + (1 - L j p))
let M := 1 + ∑ j, (L j u) ^ 2
0 < δ ∧ 0 ≤ M ∧ (∀ j, L j p ≤ 1 - δ) ∧ (∀ j, |L j u| ≤ M))
(secondQueryProgram firstMidpointProgram referenceWalkProgram : List RayInstruction) :
∃ program : List RayInstruction,
∀ P : Set (Fin d → ℝ), IsDPolytope P → (0 : Fin d → ℝ) ∈ interior P →
∀ oracle : (Fin d → ℝ) → (Fin d → ℝ), IsPolytopeRayOracle P oracle →
d + 1 ≤ faceCount P (d - 1) →
(∃ L : Fin (faceCount P (d - 1)) → (Fin d → ℝ) →L[ℝ] ℝ,
P = {x | ∀ i, L i x ≤ 1} ∧
∀ i, L i = 0 ∨
({x ∈ P | L i x = 1}.Nonempty ∧ IsExposed ℝ P {x ∈ P | L i x = 1} ∧
Module.finrank ℝ (affineSpan ℝ {x ∈ P | L i x = 1}).direction = d - 1)) →
(∃ n : ℕ, Nonempty (Fin n ≃ PolytopeFace P)) →
∃ (t : ℕ) (c : RayConfiguration) (n : ℕ) (e : Fin n ≃ PolytopeFace P),
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) +
∑ k ∈ Finset.range (faceCount P (d - 1)),
(1 + (d - 1) * (2 * (faceCount P (d - 1) - k) + 3)) ∧
(∀ i : Fin n, c.tape (c.head + (i.val : ℤ)) = 1) ∧
c.tape (c.head + (n : ℤ)) = 0 ∧
∀ i j : Fin n,
c.tape (c.head + ((n + 1 + i.val * n + j.val : ℕ) : ℤ)) =
if (∀ x : Fin d → ℝ, IsExposed ℝ P {x} → x ∈ (e i).val → x ∈ (e j).val) then 1 else 0 := by sorry
end Grunbaum2003Source
Grünbaum 2003, Convex Polytopes (2nd ed., Graduate Texts in Mathematics 221), §3.6, pp. 52b–52c (citing Gritzmann–Klee–Westwater 1995)