Documentation

CslibFrontier.Computability.Circuit.Boolean.MassProduction.ConstantCopies

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 #

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.

theorem Cslib.Circuits.Boolean.MassProduction.complexity_table_le {n L c p : ℕ} (F : BooleanFunction L) (addr : (Fin n → Bool) → Fin (c * L) → Bool) (G : (Fin (n + c) → Bool) → Fin p → Bool) :

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.

theorem Cslib.Circuits.Boolean.MassProduction.eventually_mul_complexity_table_le (P c : ℕ) :
∀ᶠ (L : ℕ) in Filter.atTop, ∀ {n p : ℕ} (F : BooleanFunction L) (addr : (Fin n → Bool) → Fin (c * L) → Bool) (G : (Fin (n + c) → Bool) → Fin p → Bool), (P * L * complexity interpretation fun (x : Fin n → Bool) => G (Fin.append x (directProduct F c (addr x)))) ≤ (P + 1) * 2 ^ L + P * L * (complexity interpretation addr + complexity interpretation 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.