Documentation

CslibFrontier.Crypto.Primitives.Garbling.CircuitInvertersPPT

Strict polynomial-time certification for conventional-circuit inverters #

Following Bellare, Hoang and Rogaway [BHR12b], Section 4.1, Proposition 1, this module certifies that the conventional-circuit side-information readers and explicit inverters of CslibFrontier.Crypto.Primitives.Garbling.CircuitInverters run in deterministic strict polynomial time (ComputableInPolyTime), and hence in uniform strict PPT (IsPPTOn via ComputableInPolyTime.isPPTOn). These certificates are steps toward the uses of the inverters in Propositions 2 and 3 and Corollaries 1 and 2 of [BHR12b] (#5293); they are not Proposition 1's running-time claim.

CslibFrontier.Crypto.Primitives.Garbling.Efficient already provides the circuit and topology encodings (encValidCircuit, encValidTopo, encQuery) and certificates for circuit evaluation (evalCirc_polyTime) and topology extraction (phiTopo_polyTime). This module supplies:

The paper's Proposition 1 states linear running time in the RAM model; here we prove only strict polynomial time on multi-tape Turing machines (ComputableInPolyTime). The linear-time bound remains open (#5293).

Main definitions #

Main results #

References #

Encodings and side-information readers #

@[reducible, inline]

The data of a valid circuit shape: n, m, and q all encoded in unary. Encoding q in unary ensures that the q-gate circuit built by mSize has length polynomial in the input.

Valid circuit shapes (n, m, q) encoded as words via encShapeData.

The data (n, m, q) of a valid shape is read from its word in polynomial time.

The shape side information Φ_size(f) = (n, m, q) is computed in polynomial time from encValidCircuit.

The full-circuit side information Φ_circ(f) = f is computed in polynomial time on encValidCircuit.

Circuit-scheme reader certificates #

For any circuit garbling scheme, G.inLen is polynomial-time computable on encValidCircuit.

For any circuit garbling scheme, G.outLen is polynomial-time computable on encValidCircuit.

For any circuit garbling scheme, G.ev is polynomial-time computable on (encValidCircuit, encBits).

Proposition 1 inverters #

Polynomial-time certificate for the (Φ_topo, ev)-inverter mTopo from the proof of [BHR12b], Section 4.1, Proposition 1: it runs in strict polynomial time on (encValidTopo, encBits). A step toward Propositions 2 and 3 and Corollaries 1 and 2 (#5293); not Proposition 1's linear-time bound, which remains open (#5293).

The canonical topology constructor sizeTopo mapping a valid shape (n, m, q) to the valid topology with A(g) = 1, B(g) = 2 runs in strict polynomial time from encValidShape to encValidTopo.

Polynomial-time certificate for the (Φ_size, ev)-inverter mSize from the proof of [BHR12b], Section 4.1, Proposition 1: it runs in strict polynomial time on (encValidShape, encBits). A step toward Proposition 2 and Corollary 1 (#5293); not Proposition 1's linear-time bound, which remains open (#5293).

Polynomial-time certificate for the Φ_topo-inverter mTopoInv from the proof of [BHR12b], Section 4.1, Proposition 1: it runs in strict polynomial time on encValidTopo. A step toward Proposition 3 and Corollary 2 (#5293); not Proposition 1's linear-time bound, which remains open (#5293).

Polynomial-time certificate for the Φ_size-inverter mSizeInv from the proof of [BHR12b], Section 4.1, Proposition 1: it runs in strict polynomial time on encValidShape. A step toward Proposition 3 and Corollary 2 (#5293); not Proposition 1's linear-time bound, which remains open (#5293).