Documentation

CslibFrontier.Algorithms.WordRAM.VariableElimination.ElimVar

Single-Variable Elimination Step (elimVarProg) #

Composes partitionLive, filterNe, buildOutScope, buildOutEntries, writeDesc, and copyWords to implement one exact-basis step of eliminateVar.

Main definitions #

Word-RAM representation (remPtr, remLen, livePtr, liveLen) of ElimState.

Instances For

    Arguments for running one bucket-elimination step on variable x.

    Instances For

      Execute a single eliminateVar bucket contraction on the Word-RAM heap.

      @[reducible, inline]

      Heap frontier growth bound for one eliminateVar step.

      @[reducible, inline]

      Fixed instruction/oracle cost bound for one eliminateVar step.

      @[reducible, inline]

      Per-bucket-factor amortized cost bound for one eliminateVar step.

      theorem Cslib.Algorithms.WordRAM.VariableElimination.elimVarProg_spec {w : ℕ} {args : ElimVarArgs} {es : Lean.CSP.ElimState ℕ ℕ} {R M SW W B : ℕ} {s : DataStructure.Memory.State} (hwf : DataStructure.Memory.WellFormed w s) (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 : (Lean.CSP.stepStats args.dom args.x es).jointScopeVars ≤ W) (_hW_SW : W ≤ SW) (hcapB : max 1 args.dom * 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 + stepMemDelta R M SW args.dom W)) :