Weighted circuit complexity from supplied values #
A source family sources : X → Fin n → U supplies exactly the inputs available to a circuit
computing target : X → Fin m → U. The common domain may be arbitrary. No coordinates of X
are implicitly available, and supplying the sources has no cost. The minimum of Program.cost
over implementing circuits is recorded in ℕ∞, with ⊤ when no circuit exists.
Operation costs may be zero. Consequently, zero weighted complexity need not mean that the target is obtained by wiring. Even with an empty common domain, a syntactic circuit must exist; vacuous correctness alone does not provide outputs from zero inputs over an empty signature.
Unit costs recover native support complexity by taking the support subtype as the common domain.
Supplying both raw inputs and helper values recovers native ecomplexityGiven. These bridges
require no chosen extension of the target outside the range of the sources.
The model allows arbitrary finite gate arities and natural-number weights. Every output must be wired; constants must be supplied or implemented by gates. In particular, the syntax does not use Boyack's convention assigning zero to disconnected vertices.
Main definitions #
Cslib.Circuits.Circuit.ComputesFrom: computation from exactly the supplied source family.Cslib.Circuits.ecomplexityFrom: minimum weighted cost of such a computation.
Main results #
Cslib.Circuits.ecomplexityFrom_le_iff: every finite budget has a circuit witness.Cslib.Circuits.ecomplexityFrom_comp_le: composition through an intermediate supplied family.Cslib.Circuits.ecomplexityFrom_map_le: homomorphisms cannot increase source complexity;ecomplexityFrom_map_eqgives equality for injective homomorphisms.Cslib.Circuits.ecomplexityFrom_unit_subtype,Cslib.Circuits.ecomplexityFrom_unit_append: bridges to native circuit complexity.
References #
- Ported from Complexity/Relative.lean in S. Schlesinger, Algebraic circuit formalizations in Complexitylib. Homomorphism transport adapts LowerBound/Fusion/Comap.lean from the same development.
- S. W. Boyack, The Robustness of Combinatorial Measures of Boolean Matrix Complexity, Definition 2.1 and Proposition 2.2, pp. 29–30, for computation relative to supplied functions and its composition inequality.
Compute the target family from exactly the supplied values, without implicit raw inputs.
Instances For
The same circuit computes the homomorphic image of the supplied-source problem.
An injective homomorphism also reflects computation of the supplied-source problem.
Equal supplied values must give equal target values.
Compose computations through an intermediate supplied family.
Compute two target families from the same supplied values.
An explicitly supplied extension identifies source computation with computation on its range.
Minimum weighted cost of computing a target from the supplied values, or ⊤ if no circuit
does so. Every operation has finite natural-number cost; supplying the sources is free.
Instances For
A representable target has a circuit attaining its minimum weighted cost.
Every finite weighted budget is witnessed by a circuit.
A lower bound holds exactly when it holds for every implementing circuit.
Applying a homomorphism to every supplied and target value cannot increase complexity. The operation weights and implementing circuit are unchanged; the map need not be injective.
An injective homomorphism preserves supplied-source complexity, including infinity.
If the sources identify two points distinguished by the target, no implementation exists.
Computing two families from the same sources costs at most the sum of their complexities.
Unit weights and the support subtype recover native support complexity.
Unit weights with raw inputs and helpers recover native relative complexity.