Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Compute complementary real row and kernel bases in the native RAM

Proved
SmaleNinth.complementary_bases_over_ordered_field

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

From a dense caller matrix, the existing complementary-basis program computes and serializes an independent row basis and an independent kernel basis over an arbitrary ordered field. It preserves the source frame and provides the exact native output descriptor within its original clock.

Preamble
import Definitions.Def_OAILP_Recovery_PairBuilderPublish

open Matrix OAI.Optimization.LinearProgramming
open OAI.Optimization.LinearProgramming.RAM OAI.Optimization.LinearProgramming.RAM.Callable
open OAI.Optimization.LinearProgramming.Geometry OAI.Optimization.LinearProgramming.Recovery.PairBuilder
Formal statement
theorem SmaleNinth.complementary_bases_over_ordered_field {K : Type} [Field K] [LinearOrder K]
    [IsStrictOrderedRing K] {h n : ℕ} (rev : Bool) (l : Layout h n) (C : Matrix (Fin h) (Fin n) K)
    (native caller : Memory K) (roots : InputRegs l caller) (table : uniformRect h n l.src caller = C)
    (foot : Footprint l.previous (native.atPC 0)) :
    ∃ (front back : Memory K) (k s : ℕ) (F : Matrix (Fin k) (Fin n) K) (R : Matrix (Fin s) (Fin n) K),
      (program rev).Run (fun _ : K => True) (Odd.memory native caller) (time l) (Odd.memory front back) ∧
      Footprint (capacity h n l.previous-1) (front.atPC 0) ∧ SourceFrame l caller back ∧
      Prepared rev l C F R back ∧ k ≤ h := by sorry
Source
https://github.com/openai/math/blob/3344da59991ed94f9ba711217b29c1d760badfa6/lean/OAI/Optimization/LinearProgramming/Recovery/PairBuilder.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