Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Assemble the primal LP witness tableau over ordered fields

Proved
SmaleNinth.primal_tableau_ordered_field

by Gonçalo Perdigão · Nov 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

Given 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 sorry
Source
https://github.com/openai/math/blob/3344da59991ed94f9ba711217b29c1d760badfa6/lean/OAI/Optimization/LinearProgramming/Recovery/PrimalTable.lean

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me