Run LP support deletion over real coefficients using a native decision program
ProvedSmaleNinth.masked_support_scan_ordered_fieldGiven a fixed native Boolean program for the support queries, the actual greedy search invokes it in the live caller context. The final mask is exactly the abstract greedy deletion mask. The original equations and caller context are preserved, and native scratch memory stays in its reserved window.
Preamble
import Definitions.Def_OAILP_Recovery_SupportBundleContext import Definitions.Def_OAILP_Recovery_SupportContext import Definitions.Def_OAILP_RAM_CallableWindow import Definitions.Def_OAILP_RAM_CallableReentrant open Matrix OAI.Optimization.LinearProgramming open OAI.Optimization.LinearProgramming.RAM OAI.Optimization.LinearProgramming.RAM.Callable open OAI.Optimization.LinearProgramming.Geometry OAI.Optimization.LinearProgramming.Recovery
Formal statement
theorem SmaleNinth.masked_support_scan_ordered_field {K : Type} [Field K] [LinearOrder K]
[IsStrictOrderedRing K] {h m : ℕ} (E : Matrix (Fin h) (Fin (m+1)) K) (side : Bool)
(check : Program) (steps src cap : ℕ) (oracle : Finset (Fin (m+1)) → Bool)
(native caller : Memory K) (outside : 256 ≤ src) (two : 2 ≤ cap) (size : h*(m+1)+(m+1) ≤ cap)
(old : Footprint (cap-1) (native.atPC 0)) (current : SupportBundle.Context E side src cap caller)
(space : ∀ S, nativeWindow check [h,m+1] (MaskedInput.bundle E S) + steps ≤ cap-1)
(works : ∀ S, ∃ k ≤ steps, ∃ tr : Fin (k+1) → State K,
Trace check (start [h,m+1] (MaskedInput.bundle E S)) k tr ∧
(tr (Fin.last k)).output = some (oracle S).toNat) :
let call := Fragment.stage (.invoke check 2 (Odd.sink (.index 154)))
let bound := 19*cap+225+(2*steps+2)
let base := src+h*(m+1)
∃ next out, (SupportRAM.markedSearch call).Run (fun _ : K => True)
(Odd.memory native caller) (4*(5*(m+1)+7)+(m*(bound+34)+1)) (Odd.memory next out) ∧
Footprint (cap-1) (next.atPC 0) ∧ SupportBundle.Context E side src cap out ∧
SupportRAM.Frame base (m+1) caller out ∧
SupportRAM.Layout out base (m+1) (deleteCoordinates oracle ((List.finRange (m+1)).erase 0) Finset.univ).1 := by sorrySource