Native generation of the polarization circuits #
Raw code generators for the circuits of the Sahai–Vadhan Polarization Lemma
[SahaiVadhan2003, Lemma 3.3], built in Boolean.Polarization: the exclusive-or chain, the selection
stage, one coordinate of the XOR construction, the XOR construction and the polarization
construction. Each agrees exactly with the code of the typed circuit, and each is computable in
polynomial time from the codes of the two input circuits, with the numbers of inputs, outputs,
coordinates and copies in unary. So the map (C₀, C₁) ↦ polarizeCircuit C₀ C₁ lam ell k c is
polynomial-time on circuit codes when lam, ell and k are polynomially bounded and computed
in unary (computableInPolyTime_polarizeCode).
Main definitions #
Cslib.Circuits.Boolean.xorChainCode: the code ofxorChainProgramon the first inputs.Cslib.Circuits.Boolean.xorMixStageCode: the code ofxorMixStage.Cslib.Circuits.Boolean.xorMixBlockCode: the code ofxorMixBlock, from the input codes.Cslib.Circuits.Boolean.xorMixCode: the code ofxorMixCircuit, from the input codes.Cslib.Circuits.Boolean.polarizeCode: the code ofpolarizeCircuit, from the input codes.
Main results #
Cslib.Circuits.Boolean.xorMixCode_code,Cslib.Circuits.Boolean.polarizeCode_code: exact agreement with the typed circuits.Cslib.Circuits.Boolean.computableInPolyTime_xorMixCode,Cslib.Circuits.Boolean.computableInPolyTime_polarizeCode: polynomial-time generation.
References #
The wire feeding bit t of output block i of xorMixStage c j n, as a number.
The exclusive-or chain is polynomial-time, with a binary input count and a unary length.
The selection stage is polynomial-time in unary parameters.
One coordinate of the XOR construction is polynomial-time in unary sizes and the codes.
The XOR construction is polynomial-time in unary sizes and the codes.
The polarization construction is polynomial-time in unary sizes and parameters and the codes.