Documentation

CslibFrontier.Computability.Circuit.SpanProgram.EliminationSynthesis

Circuits for Lin and P_L #

Boneh and Shoup, Theorem 22.14, p. 981 calls the algorithm Lin efficient and the program P_L efficiently computable. For the deterministic algorithms Lin and P_L, the book's efficiency requirement (Definition 2.8, p. 30) is one algorithm on bit-string inputs whose running time is polynomially bounded uniformly across inputs; Definition 2.8 additionally permits a negligible running-time tail for probabilistic algorithms. This file bounds the circuits that compute MonotoneSpanProgram.recombination, MonotoneSpanProgram.nullVector and MonotoneSpanProgram.normalForm themselves, with the program and the coalition as inputs. The bounds are a step toward the efficiency claims of Theorem 22.14, not those claims.

For each shape of program (number of parties N, tailDim + 1 columns, row dimensions rowDim), there is one circuit. Its available wires are the matrix entries M i row c and, for each party, a membership value χ i, nonzero for the members; at an input x the program is ⟨tailDim, rowDim, fun i row c => M i row c x⟩ and the coalition is {i | χ i x ≠ 0}. The gates are those of fullInterpretation (k := 2) over the field: one gate computes any function of at most two field elements, so a zero test with selection, a product and a quotient a⁻¹ * b each count as one gate. The bounds therefore count field operations and zero tests, not bit operations. With r = ∑ i, rowDim i rows, d = tailDim + 1 columns and kernelVecCost r n = 8 * (r + 1) * (n + 1) ^ 2, the bounds are of order (r + 1) * d ^ 2 + d * (r + 1) ^ 2.

Open: a bound in bit operations over an encoded field, and uniformity of the circuits in the shape (N, tailDim, rowDim) (#5293).

Main results #

References #

theorem Cslib.Circuits.Synthesis.full_recombination {F : Type u_1} [Field F] [DecidableEq F] {N N' : ℕ} {src : Set ((Fin N' → F) → F)} (tailDim : ℕ) (rowDim : Fin N → ℕ) (M : (i : Fin N) → Fin (rowDim i) → Fin (tailDim + 1) → (Fin N' → F) → F) (χ : Fin N → (Fin N' → F) → F) (hM : ∀ (i : Fin N) (row : Fin (rowDim i)) (c : Fin (tailDim + 1)), M i row c ∈ src) (hχ : ∀ (i : Fin N), χ i ∈ src) :
Synthesis fullInterpretation src (Set.range fun (p : (i : Fin N) × Fin (rowDim i)) (x : Fin N' → F) => { tailDim := tailDim, rowDim := rowDim, matrix := fun (i : Fin N) (row : Fin (rowDim i)) (c : Fin (tailDim + 1)) => M i row c x }.recombination {i : Fin N | χ i x ≠ 0} p.fst p.snd) (kernelVecCost (tailDim + 1) (∑ i : Fin N, rowDim i + 1) + (∑ i : Fin N, rowDim i) * (tailDim + 2) + 2)

A field-gate circuit for Lin for each shape of program, a step toward the efficiency claim of [BS23], Theorem 22.14(a) (p. 981), not that claim. For a program with r = ∑ i, rowDim i rows and tailDim + 1 columns whose entries, together with the membership values of a coalition, are available wires, the entries of the recombination vectors of that coalition cost at most kernelVecCost (tailDim + 1) (r + 1) + r * (tailDim + 2) + 2 gates, one gate being any function of at most two field elements. A bound in bit operations and uniformity in the shape are open (#5293).

theorem Cslib.Circuits.Synthesis.full_nullVector {F : Type u_1} [Field F] [DecidableEq F] {N N' : ℕ} {src : Set ((Fin N' → F) → F)} (tailDim : ℕ) (rowDim : Fin N → ℕ) (M : (i : Fin N) → Fin (rowDim i) → Fin (tailDim + 1) → (Fin N' → F) → F) (χ : Fin N → (Fin N' → F) → F) (hM : ∀ (i : Fin N) (row : Fin (rowDim i)) (c : Fin (tailDim + 1)), M i row c ∈ src) (hχ : ∀ (i : Fin N), χ i ∈ src) :
Synthesis fullInterpretation src (Set.range fun (c : Fin (tailDim + 1)) (x : Fin N' → F) => { tailDim := tailDim, rowDim := rowDim, matrix := fun (i : Fin N) (row : Fin (rowDim i)) (c : Fin (tailDim + 1)) => M i row c x }.nullVector {i : Fin N | χ i x ≠ 0} c) (kernelVecCost (∑ i : Fin N, rowDim i) (tailDim + 1) + (∑ i : Fin N, rowDim i) * (tailDim + 1))

A circuit for the kernel vector. For a program with r = ∑ i, rowDim i rows and tailDim + 1 columns whose entries, together with the membership values of a coalition, are available wires, the entries of nullVector of that coalition cost at most kernelVecCost r (tailDim + 1) + r * (tailDim + 1) gates, one gate being any function of at most two field elements.

theorem Cslib.Circuits.Synthesis.full_normalForm {F : Type u_1} [Field F] [DecidableEq F] {N N' : ℕ} {src : Set ((Fin N' → F) → F)} (tailDim : ℕ) (rowDim : Fin N → ℕ) (M : (i : Fin N) → Fin (rowDim i) → Fin (tailDim + 1) → (Fin N' → F) → F) (χ : Fin N → (Fin N' → F) → F) (hM : ∀ (i : Fin N) (row : Fin (rowDim i)) (c : Fin (tailDim + 1)), M i row c ∈ src) (hχ : ∀ (i : Fin N), χ i ∈ src) :
Synthesis fullInterpretation src (Set.range (Function.uncurry fun (p : (i : Fin N) × Fin (rowDim i)) (c : Fin (tailDim + 1)) (x : Fin N' → F) => ({ tailDim := tailDim, rowDim := rowDim, matrix := fun (i : Fin N) (row : Fin (rowDim i)) (c : Fin (tailDim + 1)) => M i row c x }.normalForm {i : Fin N | χ i x ≠ 0}).matrix p.fst p.snd c)) (kernelVecCost (∑ i : Fin N, rowDim i) (tailDim + 1) + (∑ i : Fin N, rowDim i) * (3 * tailDim + 4))

A field-gate circuit for P_L for each shape of program, a step toward the efficiency claim of [BS23], Theorem 22.14(b) (p. 981), not that claim. For a program with r = ∑ i, rowDim i rows and tailDim + 1 columns whose entries, together with the membership values of a coalition, are available wires, all entries of normalForm of that coalition cost at most kernelVecCost r (tailDim + 1) + r * (3 * tailDim + 4) gates, one gate being any function of at most two field elements. A bound in bit operations and uniformity in the shape are open (#5293).