In-Place csrToFastGenProg and trySelfHealGenProg Subroutines for SuccinctWhp #
This internal module composes the parallel array/slice phase loops into:
csrToFastGenProg: convertsCsrMemRepin place intoFastMemRepforcsrToFast c U n_max θ csr saltswhenGoodSeedOnStateholds and candidate salts occupyoffBktMeta[16 * b + 1].trySelfHealGenProg: chainscheckGoodSeedOnStateGenProgwithcsrToFastGenProg, refiningtrySelfHeal c U n_max θ csrintoWhpMemRep.csrToFastGenProgandtrySelfHealGenProg, remaining completely decoupled fromSuccinctWhpFastOpProgandSuccinctWhpEpochTickProg, while the four underlying array/slice phase modules remain decoupled fromSuccinctWhpSeedCheckProgandSuccinctWhpFastBaseProgas well.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.csrToFastGenProg,trySelfHealGenProg,TrySelfHealPre.
Main results #
Section 1: csrToFastGenProg (CsrMemRep → FastMemRep) #
Convert CsrMemRep in place to FastMemRep for csrToFast c U n_max θ csr salts when
GoodSeedOnState holds and salts b is stored at offBktMeta[16 * b + 1] (d = (wp, base)).
Precondition for csrToFastGenProg (d = (wp, base)).
Realizes .exact certificate for csrToFastGenProg.
Exact specification of csrToFastGenProg: refines csrToFast c U n_max θ csr salts into
FastMemRep while preserving SeedWhpMemRep, frontier, and caller memory outside
[base, base + largeSpaceWhp c U V w n_max).
Section 2: trySelfHealGenProg (CsrMemRep → WhpMemRep) #
Check GoodSeedOnState on CsrMemRep and immediately convert in place to FastMemRep if
ok = 1 (d = (wp, base)).
Precondition for trySelfHealGenProg (d = (wp, base)).
Realizes .exact certificate for trySelfHealGenProg.
Exact specification of trySelfHealGenProg: refines trySelfHeal c U n_max θ csr into
WhpMemRep while preserving frontier and memory outside [base, base + largeSpaceWhp).