Computable combinatorial-type quotient pruning of vertex-face schemes from a realizability decider
ProvedGrunbaum2003.exists_computable_scheme_representatives_of_realizability_deciderThis theorem reduces the construction of a computable enumerator of irredundant, complete, realizable vertex-face scheme representatives (exists_computable_scheme_representatives) to the existence of a computable realizability decision procedure .
Suppose is computable (Computable (fun z => D z.1.1 z.1.2 z.2)) and decides scheme realizability:
Then there exists a computable binary function (Computable₂ E) such that for all :
- Soundness: Every scheme is realizable by some -polytope ;
- Completeness up to scheme equivalence: For every realizable scheme , there is a representative that realizes every polytope realized by ; and
- Pairwise non-isomorphism of face lattices: Any two schemes and realizing polytopes and with order-isomorphic face lattices (
Nonempty (PolytopeFace P ≃o PolytopeFace Q)) satisfy .
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 as the sole remaining input.
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
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