Decide positivity in a marked coordinate of a real nonnegative kernel
OpenSmaleNinth.real_marked_kernel_deciderConstruct one deterministic native RAM that decides, for an arbitrary explicitly given real matrix, whether its kernel contains a nonnegative vector with strictly positive first coordinate. Its total instruction count is polynomial in the two dimensions, uniformly in the coefficient values.
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_marked_kernel_decider :
∃ (p : RAM.Program) (c e : ℕ), ∀ (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⟩) := by sorrySource