Exact thresholds from approximate thresholds and a residue #
The reconstruction step in [Ser25b], §2, equation (2), printed p. 10, combines two
approximate comparisons with a modular interval test. The first comparison is false at weights
w + 2 * t ≤ k and true at weights k ≤ w; the second is false at w ≤ k and true at
k + 2 * t ≤ w. Values between the respective boundaries are unrestricted. A majority of the
two comparisons and the modular test recovers the exact threshold k ≤ w when 4 * t ≤ R.
The modular test uses the image of the integer interval [k, k + 2 * t] modulo R. It therefore
works when that interval crosses a multiple of R. The lower-zero condition uses w + 2 * t ≤ k,
so it also handles k < 2 * t without interpreting a negative endpoint as truncated subtraction.
ThresholdReconstruction.circuit composes native De Morgan circuits for the three input bits
with the existing five-gate majority formula. The composition costs exactly five additional gates
and at most three additional levels. This is the reconstruction step of Claim 2, not its
Chinese-remainder conversion or the full asymptotic formula bounds; those remain in issue #7708.
Main definitions #
Cslib.Circuits.Boolean.ThresholdReconstruction.residueTest: membership in the modular image of the threshold window.Cslib.Circuits.Boolean.ThresholdReconstruction.circuit: the native majority composition.
Main results #
Cslib.Circuits.Boolean.ThresholdReconstruction.maj3_eq_threshold_of_approx: scalar correctness of the reconstruction from the four approximation promises.Cslib.Circuits.Boolean.ThresholdReconstruction.computes_threshold_of_approx: the composed circuit computes the exact threshold on every input.Cslib.Circuits.Boolean.ThresholdReconstruction.size_circuit,Cslib.Circuits.Boolean.ThresholdReconstruction.depth_circuit_le: composition costs.
References #
- I. S. Sergeev, Economical formulae for symmetric boolean functions, preprint of 1 May 2025, §2, Claim 2, equation (2), printed pp. 9–10.
The weight residue belongs to the image of [k, k + 2 * t] modulo R.
The majority reconstruction step of [Ser25b], §2, equation (2). It is a finite composition identity, not the paper's asymptotic depth bound. The approximation promises are stated only at this weight, and place no conditions on either bit inside its uncertainty interval.
The reconstruction circuit takes the majority of the three component outputs.
Correctness of the native reconstruction step. The supplied circuits may behave arbitrarily inside their uncertainty intervals; the resulting circuit computes the total exact threshold. The residue circuit must compute the modular interval test, including wraparound. This is the finite composition step of Claim 2, not construction of its three prerequisite circuits.