A costed arithmetic program realizes the dyadic assignment sampler
ProvedPandoraKnapsack.Skipping.compiled_dyadic_samplerThere is one program on the mission’s coefficient-access pointer machine and one exponent such that, for every valid instance, the run budget
suffices on every draw sequence. For each instance there is a repetition-free enumeration of the choice-time labels containing the support of the computed dyadic LP plan. The program halts within budget and its decoded list is exactly Algorithm 1 on that plan, with each item using its own uniform draw and the indicated enumeration for inverse sampling.
This is a pathwise implementation statement. It identifies the decoded policy before taking expectations, including at all endpoints of the sampling intervals.
Preamble
import Definitions.Def_PandoraKnapsack_Skipping_DyadicPlan import Definitions.Def_PandoraKnapsack_Skipping_UniformAssignment import Definitions.Def_PandoraKnapsack_Skipping_Machine open MeasureTheory
Formal statement
namespace PandoraKnapsack.Skipping
theorem compiled_dyadic_sampler :
∃ (P : Program) (k : ℕ), ∀ (n m T : ℕ) (I : Instance n m T), IsValid I →
let B := (inputSize n m T + 2)^k
∃ (d : ℕ) (lab : Fin d → Fin m × Fin (T+1)) (hB : n ≤ B),
Function.Injective lab ∧
(∀ i j (t : Fin (T+1)), dyadicPlan I i j t.val ≠ 0 → ∃ u, lab u = (j,t)) ∧
∀ ω : Fin B → unitInterval,
Halted P (run I (extendDraws ω) P B) ∧
decodeOutput n m (run I (extendDraws ω) P B).core.mem =
some (alg1Policy (uniformAssignment hB lab (dyadicPlan I) ω)) := by sorry
end PandoraKnapsack.SkippingSource
Barak, Berlin, Cohen, Eden, Porat and Talgam-Cohen, Pandora’s Knapsack via Simple Policies, arXiv:2509.05956v5, https://arxiv.org/html/2509.05956v5#S5.SS1, Algorithm 1 and Theorem 5.1, Appendix B.1. Implementation lemma for the derived dyadic approximate solver on the exact machine in Prove2Me theorem 7898d376-37b2-42fd-8375-13696ef594ef.