Internal Helpers for Johnson-Bound Curve and Affine Proximity Gaps #
Siegel error-bound substitution, johnsonCurveBound scaling, and rational-to-integer weight
clearing helpers shared privately by at least two submodules (JohnsonCurve, JohnsonAffine,
and Dichotomy).
Main results #
Cslib.Code.johnsonCurveBound_mul_cast_le: linear weight scaling ofjohnsonCurveBound.Cslib.Code.rat_weights_to_nat,Cslib.Code.rat_weights_johnson_nat: rational weight clearing.Cslib.Code.siegel_eta_bound_le: explicit-constantη-parameterized error conversion.
Internal helper: linear weight scaling of johnsonCurveBound over ℝ.
Internal helper: clears common denominator M > 0 from rational weights μ : ι → ℚ with
μ i = a_i / M ≤ 1, producing integer weights W : ι → ℕ and threshold B_W = ⌈θ * M⌉₊ with
exact subset equivalence θ ≤ ∑_{i ∈ S} μ i ↔ B_W ≤ ∑_{i ∈ S} W i and θ ≤ (B_W + M - 1) / M.
Internal helper: substitutes (m + 1) ^ 6 ≤ 64 / η ^ 6 into the explicit Siegel error bound
1800 * c * (m + 1) ^ 6 * n ^ 2 / (ρ * q) (1800 * 64 = 115200).
Internal helper: a threshold θ ≤ n converted to integer weights with denominator M
(B_W = ⌈θ * M⌉₊, t = ⌈B_W / M⌉) gives a relative radius (n - t) / n no larger than any
bound R on 1 - θ / n.
Internal helper: weights bounded by 1 sum to at most |ι| over any finite subset.