Compile a real marked-kernel decider into strongly polynomial LP feasibility
ProvedSmaleNinth.real_lp_decision_of_marked_kernelA fixed native RAM deciding whether an explicitly given real kernel contains a nonnegative vector with positive first coordinate can be compiled into a fixed native RAM deciding arbitrary real LP feasibility within a dimension-polynomial clock.
Preamble
import Definitions.Def_OAILP_Geometry_GramEncoding import Definitions.Def_OAILP_Specification import Mathlib.Data.Real.Basic open Matrix OAI.Optimization.LinearProgramming OAI.Optimization.LinearProgramming.Geometry open scoped Matrix
Formal statement
theorem SmaleNinth.real_lp_decision_of_marked_kernel (p : RAM.Program) (c e : ℕ)
(checks : ∀ (h n : ℕ) (hn : 0 < n) (M : Matrix (Fin h) (Fin n) ℝ),
∃ k, ∃ t : Fin (k+1) → RAM.State ℝ, k ≤ RAM.polyBound c e (h+n) ∧
RAM.Trace p (RAM.start [h,n] (encodedGramInput M)) k t ∧
∃ bit : Bool, (t (Fin.last k)).output = some bit.toNat ∧
(bit = true ↔ ∃ z : Fin n → ℝ, M *ᵥ z = 0 ∧ 0 ≤ z ∧ 0 < z ⟨0,hn⟩)) :
∃ (q : RAM.Program) (C E : ℕ), ∀ (m d : ℕ), 0 < m → 0 < d →
∀ (A : Matrix (Fin m) (Fin d) ℝ) (b : Fin m → ℝ),
∃ k, ∃ t : Fin (k+1) → RAM.State ℝ,
RAM.Trace q (RAM.start [m,d] (lpInput A b)) k t ∧ k ≤ RAM.polyBound C E (m+d) ∧
∃ tag : ℕ, (t (Fin.last k)).output = some tag ∧ (tag = 0 ↔ ∃ x, Feasible A b x) := by sorrySource