MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.SamplerCost

theorem MindFormal.A695LogicPaper.IntegerProgram.sampler_integer_cap (m attempts : ℕ) :
5 * attempts + 4 * m + 1 ≤ 100 * (m + attempts + 2)
theorem MindFormal.A695LogicPaper.IntegerProgram.compiled_sampler_cap {m : ℕ} (counts : Fin (m + 1) → ℕ) (zeroReg one bound : ℕ) (candidates : List ℕ) (fresh Q : ℕ) (v : Values) (hc : ∀ (i : Fin (m + 1)), counts i < fresh) (hz : zeroReg < fresh) (ho : one < fresh) (hq : bound < fresh) (hx : ∀ r ∈ candidates, r < fresh) (hzero : v zeroReg = 0) (hone : v one = 1) (hbound : v bound + 1 = Q) (b physicalZero physicalOne : ℕ) (placement : Placement b) :
(compile b physicalZero physicalOne (nativeSampler counts zeroReg one bound candidates fresh).commands placement).code.length ≤ 10000 * (m + candidates.length + 2) * (b + 1) ^ 2

The complete rejection and selection circuit satisfies the printed cap, including the found flag, all later rejected/unused candidates and computed row labels. The bit width includes every intermediate value.