Boolean circuit mass production #
Mass complexity is the minimum cost of evaluating a Boolean function on several independent input blocks. Constants are free; NOT, AND and OR each cost one. The circuits and interpretation are CSLib's, and the minimum is the existing weighted source complexity with raw inputs supplied.
The discrete exponential copy budget is 2 ^ (numerator * inputs / denominator), with natural
division implementing the floor. The bounding constant is chosen before the input length,
function and number of copies. These definitions state the eventual and every-positive-length
versions; the exponential-range theorem requires further constructions.
Main definitions #
Cslib.Circuits.Boolean.MassProduction.massComplexity: minimum cost of independent copies.Cslib.Circuits.Boolean.MassProduction.MassProductionBound: the bound at one input length.Cslib.Circuits.Boolean.MassProduction.MassProducesAt: the eventual rational-rate statement.Cslib.Circuits.Boolean.MassProduction.ExponentialMassProduction: the all-length statement for every fixed nonnegative rational exponent below one.
Main results #
Cslib.Circuits.Boolean.MassProduction.massComplexity_le_iff: a finite budget has a circuit.Cslib.Circuits.Boolean.MassProduction.massComplexity_mono: monotonicity in the copy count.Cslib.Circuits.Boolean.MassProduction.massComplexity_le_complexity: comparison with size.Cslib.Circuits.Boolean.MassProduction.massComplexity_le_replicate: the naive upper bound.
References #
- Adapted from MassProduction/Statement.lean and MassProduction/DirectProduct.lean in S. Schlesinger, Boolean circuit mass production formalization.
Every finite bound is witnessed by a circuit with that nonconstant-gate budget.
The Boolean basis implements every finite direct product, including at zero inputs.
Some circuit attains the minimum cost. This is an existence theorem, not an efficient algorithm for finding a minimum circuit.
Charging only nonconstant gates costs at most the minimum size, which counts every gate.
The copy budget at rational exponent numerator / denominator, rounding down.
Instances For
The uniform bound at one input length, for every function and positive allowed copy count.
Instances For
Decreasing the allowed numerator preserves a bound at one input length.
Eventual mass production at a fixed rational exponent. The constant and cutoff may depend on the exponent, but are uniform in input length, function and number of copies.
Instances For
Mass production at every positive input length, with one constant for the fixed exponent.
Instances For
Every fixed nonnegative rational exponent below one has an all-length bound.
Instances For
An all-length bound holds eventually.
Decreasing the allowed numerator preserves eventual mass production.
Decreasing the allowed numerator preserves all-length mass production.