Compute complementary real row and kernel bases in the native RAM
ProvedSmaleNinth.complementary_bases_over_ordered_fieldFrom 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 sorrySource