Lemma 4.15 — random-shift rounding is unbiased with MGF , also conditionally
ProvedKnapsackFPRAS.lemma_4_15approximate-countingconcentration-inequalitiesknapsackp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1randomized-algorithmsrandomized-rounding
Let , let be an integer and , and let be the random-shift rounding of Eq. (23) with a shift uniform on .
- For every fixed input value with and every real ,
- The same bounds hold conditionally when depends only on earlier shifts: on a probability space, let be a sub-σ-algebra, let be uniform on and independent of , and let be a -measurable integer; then almost surely
The rounding errors created at different nodes of the counting tree therefore form a sequence of conditionally centered, conditionally sub-Gaussian errors, which is the hypothesis of Corollary 2.3.
Differences from the source:
- generalization: J a power of two → any integer J ≥ 1; reason: the claim holds for every J ≥ 1 and specializes to powers of two
- reading: conditionally when x depends only on shifts used at earlier nodes → conditional on a sub-σ-algebra 𝒢 (the earlier shifts), with H uniform and independent of 𝒢 and j 𝒢-measurable, almost surely; reason: the shift of the current node is independent of the earlier shifts and x is a function of them
- encoding: E[α_s(x) | 𝒢] = x → E[α_s(x) − x | 𝒢] = 0; reason: the error is bounded by s, so this needs no integrability assumption on x; same content
- encoding: E over the uniform shift H → the average (1/J)∑_{H∈Fin J}; reason: same expectation
- encoding: the spacing s′ (implicitly positive) → s′ > 0; reason: a spacing is positive
Preamble
import Mathlib import Definitions.Def_KnapsackFPRAS_shiftRound set_option autoImplicit false
Formal statement
namespace KnapsackFPRAS
open MeasureTheory ProbabilityTheory
/-- **Lemma 4.15**, p.27. "For every fixed input value 𝑥 = 𝑠′𝑗 with 𝑗 ∈ ℤ, E[𝛼_𝑠(𝑥)] = 𝑥 and,
for every real 𝑡 ∈ ℝ, E[𝑒^{𝑡(𝛼_𝑠(𝑥)−𝑥)}] ≤ 𝑒^{𝑡²𝑠²/8}. The same bounds hold conditionally when
𝑥 depends only on shifts used at earlier nodes."
Jin–Park–Saha, *A Nearly Linear-Time FPRAS for Counting Knapsack*, STOC 2027 submission
(manuscript sha256 c117260b…4af0), Lemma 4.15, p.27 (PDF p.28), with `α_s` of Eq. (23), p.26.
**Formalization Note.** `s = J s′` with `s′ > 0` and any integer `J ≥ 1` (the page has `J` a
power of two). Part 1: the shift `H` is uniform on `{0, …, J − 1}`, so the expectations are
averages over `H : Fin J`. Part 2 (the conditional bounds): on a probability space, `𝒢` is the
σ-algebra of the earlier shifts, the current shift `H` is uniform on `Fin J` and independent of
`𝒢`, and the index `j` is `𝒢`-measurable; then `E[α_s(x) − x | 𝒢] = 0` and
`E[e^{t(α_s(x)−x)} | 𝒢] ≤ e^{t²s²/8}` almost surely. The first is stated for the error
`α_s(x) − x` (bounded by `s`, hence integrable), which is "`E[α_s(x) | 𝒢] = x`" without an
integrability condition on `x`. -/
theorem lemma_4_15 :
(∀ (s' : ℝ), 0 < s' → ∀ (J : ℕ), 1 ≤ J → ∀ (j : ℤ) (t : ℝ),
(1 / (J : ℝ)) * ∑ H : Fin J, shiftRound s' J H j = s' * j ∧
(1 / (J : ℝ)) * ∑ H : Fin J, Real.exp (t * (shiftRound s' J H j - s' * j)) ≤
Real.exp (t ^ 2 * ((J : ℝ) * s') ^ 2 / 8)) ∧
(∀ {Ω : Type} [mΩ : MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
(𝒢 : MeasurableSpace Ω), 𝒢 ≤ mΩ →
∀ (s' : ℝ), 0 < s' → ∀ (J : ℕ), 1 ≤ J →
∀ (H : Ω → Fin J), Measurable H → (∀ h : Fin J, μ.real (H ⁻¹' {h}) = 1 / (J : ℝ)) →
Indep (MeasurableSpace.comap H inferInstance) 𝒢 μ →
∀ (j : Ω → ℤ), Measurable[𝒢] j → ∀ t : ℝ,
μ[fun ω => shiftRound s' J (H ω) (j ω) - s' * j ω | 𝒢] =ᵐ[μ] 0 ∧
μ[fun ω => Real.exp (t * (shiftRound s' J (H ω) (j ω) - s' * j ω)) | 𝒢] ≤ᵐ[μ]
fun _ => Real.exp (t ^ 2 * ((J : ℝ) * s') ^ 2 / 8)) := by sorry
end KnapsackFPRAS
Source
Jin–Park–Saha, A Nearly Linear-Time FPRAS for Counting Knapsack, STOC 2027 submission (manuscript sha256 c117260b…), Lemma 4.15, p.27 (PDF p.28), with Eq. (23), p.26 (PDF p.27)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.