Mass production of a constant number of copies #
Uhlig's theorem with a constant copy count. Eventually in L, every Boolean function F on L
inputs can be evaluated on any constant number c of independent inputs with
(1 + 1 / P) 2 ^ L / L gates (eventually_mul_complexity_directProduct_le_of_le), uniformly in
F. A circuit that reads a hard-wired table F at c addresses therefore costs this much plus the
cost of computing the addresses and of combining the inputs with the c table values
(eventually_mul_complexity_table_le).
The threshold beyond which these bounds hold is existential: it comes from Lupanov's bound and is not computed.
Main results #
Cslib.Circuits.Boolean.MassProduction.isUhligDepth_const: a constant depth satisfies Uhlig's depth condition.Cslib.Circuits.Boolean.MassProduction.eventually_mul_complexity_directProduct_le_of_le: at mostccopies of any function onLinputs cost at most(1 + 1 / P) 2 ^ L / Lgates.Cslib.Circuits.Boolean.MassProduction.complexity_table_le: reading a table atccomputed addresses and combining the values costs at most the sum of the three parts.Cslib.Circuits.Boolean.MassProduction.eventually_mul_complexity_table_le: the eventual bound for such table circuits.
References #
A constant depth satisfies Uhlig's depth condition d(n) log₂ n = o(n).
Uhlig's theorem for a constant number of copies. For every precision P and copy bound
c, eventually every function F on L inputs has k ≤ c independent copies of size s with
P * L * s ≤ (P + 1) * 2 ^ L: for P > 0, at most (1 + 1 / P) 2 ^ L / L.
The threshold L₀ beyond which this holds is existential (it comes from Lupanov's bound); a
client that needs it as a number obtains it with Filter.eventually_atTop.
Table circuits. Reading a table F on L inputs at c addresses computed from the input
x, and combining x with the c table values by G, costs at most the complexity of the
addresses, plus that of c copies of F, plus that of G.
Table circuits, eventually. For every precision P and constant copy count c,
eventually in L, reading any table F on L inputs at c computed addresses and combining the
input with the values costs at most (1 + 1 / P) 2 ^ L / L gates plus the cost of the addresses
and of the combining map: P * L * s ≤ (P + 1) * 2 ^ L + P * L * (s_addr + s_G).
The threshold L₀ beyond which this holds is existential, as in
eventually_mul_complexity_directProduct_le_of_le; a client obtains it with
Filter.eventually_atTop.