Documentation

CslibFrontier.Algorithms.WordRAM.VariableElimination.ElimLoop

Sequential Elimination Loop (elimOrderLoop) #

Iterates elimVarProg over the supplied elimination order array with amortized M + T bucket factor accounting (elimOrderLoop_spec).

Main definitions #

Sequential elimination loop (elimOrderLoop) #

Loop-carried state tracking live descriptor/remaining arrays and cursors.

Instances For

    Arguments for driving elimOrderLoop across an elimination order.

    Instances For

      Sequentially eliminate every variable in the stored order array.

      theorem Cslib.Algorithms.WordRAM.VariableElimination.elimOrderLoop_spec {w : ℕ} {args : ElimOrderArgs} {ord : List ℕ} {es : Lean.CSP.ElimState ℕ ℕ} {R M SW W B : ℕ} {s : DataStructure.Memory.State} (hwf : DataStructure.Memory.WellFormed w s) (hord : WordRAM.Realization.HoldsIn args.orderPtr ord s) (hord_len : ord.length = args.orderLen) (hes : HoldsElimState { scalar := args.scalar, livePtr := args.livePtr, liveLen := args.liveLen, remPtr := args.remPtr, remLen := args.remLen } es s) (hM : es.live.length ≤ M) (hR : es.remaining.length ≤ R) (hSW : ∀ f ∈ es.live, f.scope.length ≤ SW) (hW : ∀ st ∈ Lean.CSP.traceOrder args.dom ord es, st.jointScopeVars ≤ W) (hW_SW : W ≤ SW) (hcap : max 1 args.dom ^ args.orderLen * stateCap es ≤ B) (hB : WordRAM.Fits w B) (h1 : WordRAM.Fits w 1) (hpowSW : WordRAM.Fits w (max 1 args.dom ^ SW)) (hfit_fr : WordRAM.Fits w (s.frontier + args.orderLen * stepMemDelta R M SW args.dom W)) :