Assemble the primal LP witness tableau over ordered fields
ProvedSmaleNinth.primal_tableau_ordered_fieldGiven the original real or ordered-field LP input and a stored normalized witness vector, the existing final primal fragment prepares the exact augmented system for the last elimination. Its dense numerical tape contains the new right-hand side b minus the witness tail followed by the transposed original matrix. It leaves the correct input and output pointers for the elimination call, in the original time bound depending only on the dimensions.
Preamble
import Definitions.Def_OAILP_Recovery_PrimalTableCode import Definitions.Def_OAILP_Recovery_PrimalHeader import Definitions.Def_OAILP_Recovery_SlackRAM import Definitions.Def_OAILP_RAM_CallableRawTapes import Definitions.Def_OAILP_Elimination_Augmented import Definitions.Def_OAILP_Geometry_GramEncoding open Matrix OAI.Optimization.LinearProgramming open OAI.Optimization.LinearProgramming.RAM OAI.Optimization.LinearProgramming.RAM.Callable open OAI.Optimization.LinearProgramming.Geometry OAI.Optimization.LinearProgramming.Recovery open OAI.Optimization.LinearProgramming.Recovery.PrimalOutput
Formal statement
theorem SmaleNinth.primal_tableau_ordered_field {K : Type} [Field K] [LinearOrder K]
[IsStrictOrderedRing K] {m d : ℕ} (A : Matrix (Fin m) (Fin d) K)
(b : Fin m → K) (w : Fin (m+1) → K) (s : Memory K) (raw atW cap : ℕ)
(headers : Header m d raw atW cap s) (origin : SlackRAM.InputAt s raw A b)
(wdata : ∀ j : Fin (m+1), s.data (atW+j.val) = w j) (high : 7 ≤ raw)
(sep : raw+(m*d+m) ≤ atW) :
∃ t k, k ≤ assembleTime m d ∧ Block.Eval (Memory.AllData (fun _ : K => True)) assemble s k t ∧
RawTapes t (tableauBase atW m) 208 cap
(encodedGramInput (Elimination.augmentedRows A (b-Fin.tail w))) [d+1,m] ∧
t.index 210 = pointBase atW m d ∧ t.index 211 = d := by sorrySource