The dual LP output routine over ordered fields
ProvedSmaleNinth.dual_output_over_ordered_fieldThe existing dual-output fragment of the linear programming RAM runs over any ordered field. A stored vector of length starts at address , with and . The program copies coordinates through into output cells through , sets output registers and to and , and uses the same linear clock as the rational implementation. Any scalar invariant satisfied by both input banks is preserved throughout the execution.
Preamble
import Definitions.Def_OAILP_Recovery_FinalDual open OAI.Optimization.LinearProgramming open OAI.Optimization.LinearProgramming.RAM OAI.Optimization.LinearProgramming.RAM.Callable
Formal statement
theorem SmaleNinth.dual_output_over_ordered_field {K : Type*} [Field K] [LinearOrder K]
[IsStrictOrderedRing K] {m : ℕ} (native caller : Memory K) (w : Fin (m + 1) → K)
(atW : ℕ) (P : K → Prop) (rows : caller.index 28 = m) (src : caller.index 212 = atW)
(high : m ≤ atW) (hm : 0 < m)
(actual : ∀ j : Fin (m + 1), caller.data (atW + j.val) = w j)
(hs : native.AllData P) (hc : caller.AllData P) :
∃ z, Recovery.DualOutput.program.Run P (Odd.memory native caller) (8 + Recovery.Publish.oddTime m) z ∧
(∀ i : Fin m, z.data i.val = (Fin.tail w) i) ∧ z.index 16 = 1 ∧ z.index 17 = 0 := by sorrySource