Compile a real kernel decider into the coordinate-deletion query program
ProvedSmaleNinth.masked_real_decider_of_kernelA fixed real marked-kernel program yields one fixed RAM for coordinate-deletion queries. It takes the ordinary equation matrix and zero-one support mask, constructs the masked system, then decides whether a nonnegative kernel vector has positive first coordinate, with a polynomial instruction bound in the dimensions.
Preamble
import Definitions.Def_OAILP_Recovery_ConstraintBases import Definitions.Def_OAILP_Recovery_MaskedLayout import Definitions.Def_OAILP_Recovery_MaskedInput import Mathlib.Data.Real.Basic open Matrix OAI.Optimization.LinearProgramming OAI.Optimization.LinearProgramming.Geometry open OAI.Optimization.LinearProgramming.Recovery open scoped Matrix
Formal statement
theorem SmaleNinth.masked_real_decider_of_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 : ℕ), ∀ (h n : ℕ) (hn : 0 < n)
(M : Matrix (Fin h) (Fin n) ℝ) (S : Finset (Fin n)),
∃ k, ∃ t : Fin (k+1) → RAM.State ℝ, k ≤ RAM.polyBound C E (h+n) ∧
RAM.Trace q (RAM.start [h,n] (MaskedInput.bundle M S)) k t ∧
∃ bit : Bool, (t (Fin.last k)).output = some bit.toNat ∧
(bit = true ↔ ∃ z : Fin n → ℝ, (maskedEquations M S) *ᵥ z = 0 ∧ 0 ≤ z ∧ 0 < z ⟨0,hn⟩) := by sorrySource