Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Computable combinatorial-type quotient pruning of vertex-face schemes from a realizability decider

Proved
Grunbaum2003.exists_computable_scheme_representatives_of_realizability_decider

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

combinatoricsconvex-geometryconvex-polytopes

This theorem reduces the construction of a computable enumerator E(d,k)E(d, k)E(d,k) of irredundant, complete, realizable vertex-face scheme representatives (exists_computable_scheme_representatives) to the existence of a computable realizability decision procedure D(d,k,S)D(d, k, S)D(d,k,S).

Suppose D:N→N→List⁡(List⁡N)→Bool⁡D : \mathbb{N} \to \mathbb{N} \to \operatorname{List}(\operatorname{List} \mathbb{N}) \to \operatorname{Bool}D:N→N→List(ListN)→Bool is computable (Computable (fun z => D z.1.1 z.1.2 z.2)) and decides scheme realizability:

∀d,k,S,D(d,k,S)=true  ⟺  ∃P⊆Rd,  SchemeRealizes⁡(k,S,P).\forall d, k, S,\quad D(d, k, S) = \mathrm{true} \iff \exists P \subseteq \mathbb{R}^d,\; \operatorname{SchemeRealizes}(k, S, P).∀d,k,S,D(d,k,S)=true⟺∃P⊆Rd,SchemeRealizes(k,S,P).

Then there exists a computable binary function E:N→N→List⁡(List⁡(List⁡N))E : \mathbb{N} \to \mathbb{N} \to \operatorname{List}(\operatorname{List}(\operatorname{List} \mathbb{N}))E:N→N→List(List(ListN)) (Computable₂ E) such that for all d,k∈Nd, k \in \mathbb{N}d,k∈N:

  1. Soundness: Every scheme S∈E(d,k)S \in E(d, k)S∈E(d,k) is realizable by some ddd-polytope P⊆RdP \subseteq \mathbb{R}^dP⊆Rd;
  2. Completeness up to scheme equivalence: For every realizable scheme S0S_0S0​, there is a representative S∈E(d,k)S \in E(d, k)S∈E(d,k) that realizes every polytope realized by S0S_0S0​; and
  3. Pairwise non-isomorphism of face lattices: Any two schemes E(d,k)iE(d, k)_iE(d,k)i​ and E(d,k)jE(d, k)_jE(d,k)j​ realizing polytopes PPP and QQQ with order-isomorphic face lattices (Nonempty (PolytopeFace P ≃o PolytopeFace Q)) satisfy i=ji = ji=j.

Formalization Note This theorem proves the entire finite candidate generation (primrec_scheme_candidates), face-poset isomorphism checker (schemeTypeIsoCheck_iff_face_orderIso), equivalence-class pruning (pwFilter_complement_covers, pwFilter_complement_unique_indices), and geometric transport (schemeRealizes_transfer_all_of_face_orderIso), isolating the Tarski–Seidenberg realizability decider DDD as the sole remaining input.

Preamble
import Definitions.Def_Grunbaum2003_IsDPolytope
import Definitions.Def_Grunbaum2003_PolytopeFace
import Definitions.Def_Grunbaum2003_SchemeRealizes
import Theorems.Thm_Grunbaum2003_polytope_face_eq_convexHull_exposed_vertices
import Mathlib.Analysis.Convex.Exposed
import Mathlib.Analysis.Convex.Hull
import Mathlib.Analysis.Convex.KreinMilman
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.LocallyConvex.Separation
import Mathlib.Analysis.Normed.Module.FiniteDimension
import Mathlib.Computability.Partrec
import Mathlib.Computability.Primrec.List
import Mathlib.Data.Fin.Embedding
import Mathlib.Data.Fin.SuccPred
import Mathlib.Data.Finset.Basic
import Mathlib.Data.Finset.Dedup
import Mathlib.Data.Fintype.Card
import Mathlib.Data.List.GetD
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Pairwise
import Mathlib.Data.List.ProdSigma
import Mathlib.Data.List.Range
import Mathlib.Data.List.Sublists
import Mathlib.LinearAlgebra.Pi
import Mathlib.Order.Hom.Basic
import Mathlib.Tactic.Linarith
import Lean.Elab.Tactic.Omega

set_option autoImplicit false
Formal statement
namespace Grunbaum2003

theorem exists_computable_scheme_representatives_of_realizability_decider
    (D : ℕ → ℕ → List (List ℕ) → Bool)
    (hDComp : Computable (fun z : (ℕ × ℕ) × List (List ℕ) => D z.1.1 z.1.2 z.2))
    (hDCorrect : ∀ d k S, D d k S = true ↔
      ∃ P : Set (Fin d → ℝ), SchemeRealizes k S P) :
    ∃ E : ℕ → ℕ → List (List (List ℕ)), Computable₂ E ∧
      ∀ d k : ℕ,
        (∀ S ∈ E d k, ∃ P : Set (Fin d → ℝ), SchemeRealizes k S P) ∧
        (∀ S₀ : List (List ℕ), (∃ P₀ : Set (Fin d → ℝ), SchemeRealizes k S₀ P₀) →
          ∃ S ∈ E d k, ∀ P : Set (Fin d → ℝ),
            SchemeRealizes k S₀ P → SchemeRealizes k S P) ∧
        (∀ i j : Fin (E d k).length, ∀ P Q : Set (Fin d → ℝ),
          SchemeRealizes k ((E d k).get i) P →
          SchemeRealizes k ((E d k).get j) Q →
          Nonempty (PolytopeFace P ≃o PolytopeFace Q) → i = j) := by sorry

end Grunbaum2003
Source
Grünbaum 2003, Convex Polytopes (2nd ed., Graduate Texts in Mathematics 221), §5.5, pp. 90–91, Theorem 5.5.2

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