Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section-induced ray oracle, boundary frame extension, transverse coordinate axes, and Cramer facet normal recovery

Proved
Grunbaum2003.rayFrame_boundary_extension_axes_and_cramer_normal

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

combinatoricsconvex-geometryconvex-polytopes

This theorem formalizes the higher-dimensional boundary-frame growth and Cramer normal recovery steps of the Gritzmann–Klee–Westwater ray-oracle reconstruction algorithm:

  1. Section-induced ray oracle (induced_rayOracle_of_leftInverse): If P={x∈Rd∣∀j,Lj(x)≤1}P = \{x \in \mathbb{R}^d \mid \forall j, L_j(x) \le 1\}P={x∈Rd∣∀j,Lj​(x)≤1} and f:Rn→Rdf : \mathbb{R}^n \to \mathbb{R}^df:Rn→Rd has a continuous linear left inverse ggg, then r↦g(oracle⁡(f(r)))r \mapsto g(\operatorname{oracle}(f(r)))r↦g(oracle(f(r))) is a valid ray oracle for f−1(P)f^{-1}(P)f−1(P) and satisfies f(g(oracle⁡(f(r))))=oracle⁡(f(r))f(g(\operatorname{oracle}(f(r)))) = \operatorname{oracle}(f(r))f(g(oracle(f(r))))=oracle(f(r)) for all r≠0r \neq 0r=0.
  2. Transverse coordinate axis and off-axis pivot (exists_coordinate_axis_outside_frame, exists_off_axis_pivot): Every linearly independent boundary frame v:Fin⁡n→Rdv : \operatorname{Fin} n \to \mathbb{R}^dv:Finn→Rd of size n<dn < dn<d admits a standard coordinate axis ei∉span⁡(v)e_i \notin \operatorname{span}(v)ei​∈/span(v), and every nonzero p∈span⁡(v)p \in \operatorname{span}(v)p∈span(v) has an off-axis coordinate j≠ij \neq ij=i with pj≠0p_j \neq 0pj​=0 (providing the pivot for sectionQueryProgram).
  3. Positive boundary frame extension (extend_positive_boundary_frame): Given an independent frame v:Fin⁡n→Rdv : \operatorname{Fin} n \to \mathbb{R}^dv:Finn→Rd in PPP with positive convex combination p=∑iwivip = \sum_i w_i v_ip=∑i​wi​vi​ and a new boundary point q∈P∖span⁡(v)q \in P \setminus \operatorname{span}(v)q∈P∖span(v) sharing a defining support row Lj(p)=Lj(q)=1L_j(p) = L_j(q) = 1Lj​(p)=Lj​(q)=1, prepending qqq yields an independent frame V=Fin.cons⁡(q,v)V = \operatorname{Fin.cons}(q, v)V=Fin.cons(q,v) in PPP and midpoint p′=12(p+q)∈frontier⁡(P)p' = \frac{1}{2}(p + q) \in \operatorname{frontier}(P)p′=21​(p+q)∈frontier(P) such that every active row Lk(p′)=1L_k(p') = 1Lk​(p′)=1 contains the entire enlarged frame (Lk(Vi)=1L_k(V_i) = 1Lk​(Vi​)=1).
  4. Cramer facet normal recovery (frameNormal_eq_original_active_row): When n=dn = dn=d, the matrix v∈Rd×dv \in \mathbb{R}^{d \times d}v∈Rd×d of frame points has det⁡(v)≠0\det(v) \neq 0det(v)=0, and the Cramer linear functional frameNormal v with coefficients det⁡(v.updateCol  k  1)/det⁡(v)\det(v.\mathrm{updateCol}\;k\;\mathbf{1}) / \det(v)det(v.updateColk1)/det(v) equals an actual defining facet row LjL_jLj​ active at ppp without any additional oracle query.
Preamble
import Definitions.Def_Grunbaum2003_IsPolytopeRayOracle
import Definitions.Def_Grunbaum2003_IsDPolytope
import Mathlib.Analysis.Convex.Slope
import Mathlib.Analysis.Convex.Topology
import Mathlib.Analysis.Normed.Operator.Banach
import Mathlib.Data.Finset.Lattice.Fold
import Mathlib.LinearAlgebra.FiniteDimensional.Basic
import Mathlib.LinearAlgebra.LinearIndependent.Lemmas
import Mathlib.LinearAlgebra.Matrix.Adjugate
import Mathlib.LinearAlgebra.Matrix.Nonsingular
import Mathlib.LinearAlgebra.Pi
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Ring
import Mathlib.Algebra.BigOperators.Fin

set_option autoImplicit false
open scoped BigOperators Matrix
Formal statement
namespace Grunbaum2003

theorem rayFrame_boundary_extension_axes_and_cramer_normal :
    ∃ (coordinateAxis : ∀ {d : ℕ}, Fin d → Fin d → ℝ)
      (frameCramerCoefficients : ∀ {d : ℕ}, Matrix (Fin d) (Fin d) ℝ → Fin d → ℝ)
      (frameNormal : ∀ {d : ℕ}, Matrix (Fin d) (Fin d) ℝ → (Fin d → ℝ) →L[ℝ] ℝ),
      (∀ (d : ℕ) (i : Fin d), coordinateAxis i = Pi.single i 1) ∧
      (∀ (d : ℕ) (v : Matrix (Fin d) (Fin d) ℝ) (k : Fin d),
        frameCramerCoefficients v k = (v.updateCol k (fun _ => 1)).det / v.det) ∧
      (∀ (d : ℕ) (v : Matrix (Fin d) (Fin d) ℝ) (x : Fin d → ℝ),
        frameNormal v x = ∑ k, frameCramerCoefficients v k * x k) ∧
      (∀ {d n m : ℕ} (L : Fin m → (Fin d → ℝ) →L[ℝ] ℝ) {P : Set (Fin d → ℝ)},
        P = {x | ∀ j, L j x ≤ 1} →
        ∀ {oracle : (Fin d → ℝ) → (Fin d → ℝ)}, IsPolytopeRayOracle P oracle →
        ∀ (f : (Fin n → ℝ) →L[ℝ] (Fin d → ℝ)) (g : (Fin d → ℝ) →L[ℝ] (Fin n → ℝ)),
          Function.LeftInverse g f →
          IsPolytopeRayOracle (f ⁻¹' P) (fun r => g (oracle (f r))) ∧
            (∀ r, r ≠ 0 → f (g (oracle (f r))) = oracle (f r))) ∧
      (∀ {d n : ℕ} (v : Fin n → Fin d → ℝ),
        LinearIndependent ℝ v → n < d →
        ∃ i : Fin d, coordinateAxis i ∉ Submodule.span ℝ (Set.range v)) ∧
      (∀ {d : ℕ} (W : Submodule ℝ (Fin d → ℝ)) (p : Fin d → ℝ),
        p ∈ W → p ≠ 0 → ∀ (i : Fin d), coordinateAxis i ∉ W →
        ∃ j : Fin d, j ≠ i ∧ p j ≠ 0) ∧
      (∀ {d n m : ℕ} (L : Fin m → (Fin d → ℝ) →L[ℝ] ℝ) {P : Set (Fin d → ℝ)},
        P = {x | ∀ j, L j x ≤ 1} →
        ∀ (v : Fin n → Fin d → ℝ), LinearIndependent ℝ v →
        ∀ (w : Fin n → ℝ), (∀ i, 0 < w i) → (∑ i, w i = 1) →
        (∀ i, v i ∈ P) →
        ∀ (p q : Fin d → ℝ), p ∈ P → q ∈ P →
        p = ∑ i, w i • v i →
        q ∉ Submodule.span ℝ (Set.range v) →
        ∀ (j : Fin m), L j p = 1 → L j q = 1 →
        let V : Fin (n + 1) → Fin d → ℝ := Fin.cons q v
        let W : Fin (n + 1) → ℝ := Fin.cons (1 / 2 : ℝ) (fun i => w i / 2)
        let p' := (1 / 2 : ℝ) • (p + q)
        LinearIndependent ℝ V ∧ (∀ i, 0 < W i) ∧ (∑ i, W i = 1) ∧
          p' = ∑ i, W i • V i ∧ (∀ i, V i ∈ P) ∧ p' ∈ frontier P ∧
          (∀ k : Fin m, L k p' = 1 → ∀ i, L k (V i) = 1)) ∧
      (∀ {d m : ℕ} (L : Fin m → (Fin d → ℝ) →L[ℝ] ℝ) {P : Set (Fin d → ℝ)},
        P = {x | ∀ j, L j x ≤ 1} →
        ∀ (v : Matrix (Fin d) (Fin d) ℝ), LinearIndependent ℝ v →
        ∀ (w : Fin d → ℝ), (∀ i, 0 < w i) → (∑ i, w i = 1) →
        (∀ i, v i ∈ P) →
        ∀ (p : Fin d → ℝ), p ∈ frontier P → p = ∑ i, w i • v i →
        v.det ≠ 0 ∧ ∃ j : Fin m, frameNormal v = L j ∧ L j p = 1) := by sorry

end Grunbaum2003
Source
Grünbaum 2003, Convex Polytopes (2nd ed., Graduate Texts in Mathematics 221), §3.6, pp. 52b–52c (citing Gritzmann–Klee–Westwater 1995)

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