Runtime 19-Word HashParams Writer (writeHashParamsSubProg) #
Populates the 19-word mkHashParams w (epochQBits U N) (epochHashB N) (totalMicroBits N) 3 header
block at [dstMetaBase + 8, dstMetaBase + 27) and returns epochHashSpace U w N.
def Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.ParamsComputeAux.WriteHashParamsSubPre (w : ℕ) :
Precondition for writeHashParamsSubProg.
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.ParamsComputeAux.writeHashParamsSubProg_props {w U N hdrBase dstMetaBase : ℕ} {s : Memory.State} (hw : 0 < w) (hN : 1 ≤ N) (hNU : N ≤ U) (hU : WordRAM.Fits w U) (hhdr : hdrBase < s.frontier) (h27 : dstMetaBase + 27 ≤ s.frontier) (hfit_dst : WordRAM.Fits w (dstMetaBase + offCompItems U w N)) :
have d := ((hdrBase, dstMetaBase), w, FeistelQuotient.quotientBits U N, Nat.log 2 N);
(Memory.spec w).ValidHistory s ((Memory.spec w).clientHistory s (writeHashParamsSubProg d)) ∧ (Memory.spec 0).clientResult s (writeHashParamsSubProg d) = epochHashSpace U w N ∧ ((Memory.spec 0).clientState s (writeHashParamsSubProg d)).frontier = s.frontier ∧ (∀ (i : Fin 19),
((Memory.spec 0).clientState s (writeHashParamsSubProg d)).mem (dstMetaBase + offHashParams + ↑i) = HashFamily.WordRAM.RuntimeReducedKWise.mkHashParams w (epochQBits U N) (epochHashB N)
(SuccinctBucket.totalMicroBits N) 3 i) ∧ (∀ (a : ℕ),
¬(dstMetaBase + offHashParams ≤ a ∧ a < dstMetaBase + offCompParams) →
((Memory.spec 0).clientState s (writeHashParamsSubProg d)).mem a = s.mem a) ∧ WordRAM.Realization.memoryCost (writeHashParamsSubProg d) s ≤ 7 * N + 39
Functional specification and ≤ 7 * N + 39 cost bound for writeHashParamsSubProg.
writeHashParamsSubProg compiles via RealizesBounded .exact.