Recover real LP witnesses in a uniformly bounded RAM fragment
DisprovedSmaleNinth.real_lp_witness_fragmentConstruct a fixed relocatable fragment and a dimension-only polynomial clock starting on the ordinary real LP input tape with positive dimensions. On a feasible input the primal branch exposes a feasible vector and the primal tag. On the dual branch the fragment exposes a recovered, normalized sparse Farkas certificate in the existing caller-bank layout, ready for the verified dual output routine. The two branches are distinguished by the existing address comparison between the orientation registers of the logical caller. This isolates the recovery and primal branch from dual publication and the final halt.
Preamble
import Definitions.Def_OAILP_Recovery_FinalDual import Mathlib.Data.Real.Basic open Matrix OAI.Optimization.LinearProgramming open OAI.Optimization.LinearProgramming.RAM OAI.Optimization.LinearProgramming.RAM.Callable
Formal statement
theorem SmaleNinth.real_lp_witness_fragment :
∃ (f : Fragment) (C E : ℕ),
∀ (m d : ℕ) (A : Matrix (Fin m) (Fin d) ℝ) (b : Fin m → ℝ), 0 < m → 0 < d →
∃ z, f.Run (fun _ : ℝ => True)
(start [m, d] (lpInput A b)).memory
(polyBound C E (m + d)) z ∧
(((Odd.cond (.addrLT 159 156)).test z = true ∧
∃ x : Fin d → ℝ, Feasible A b x ∧
(∀ i : Fin d, z.data i.val = x i) ∧ z.index 16 = 0 ∧ z.index 17 = 0) ∨
∃ (native caller : Memory ℝ) (atW : ℕ) (w : Fin (m + 1) → ℝ),
z = Odd.memory native caller ∧ (Odd.cond (.addrLT 159 156)).test z = false ∧
caller.index 28 = m ∧ caller.index 212 = atW ∧ m ≤ atW ∧
(∀ j : Fin (m + 1), caller.data (atW + j.val) = w j) ∧
Certificate A b (Fin.tail w) ∧ b ⬝ᵥ Fin.tail w = -1) := by sorrySource