Counting failures in a fusion cover #
Every witness in a finite sample fails at some atom of a cover. The union bound therefore turns per-atom failure estimates into circuit-cost lower bounds. The witness type need not be finite, and the estimates are required only on the actual extracted atoms. In particular, restricted circuit clients may use their local degree, width or liveness hypotheses.
Witnesses may carry natural-number masses. Clearing denominators represents any finite
nonnegative rational weighting this way. Unit masses recover the cardinality bounds. This is
weighted union counting; it does not remove the fixed-distribution barrier for bounds over all
Boolean gate pairs proved in Complexity/Computability/Circuit/Fusion/Sampling.lean.
Main definitions #
Cslib.Circuits.Fusion.Atom.failures: sampled witnesses at which preservation fails.
Main results #
Cslib.Circuits.Fusion.Cover.sum_le_mul_cost: weighted finite witness counting for a cover.Cslib.Circuits.Fusion.sum_le_mul_program_cost: local bounds on evaluated gates suffice.Cslib.Circuits.Fusion.ceilDiv_sum_le_circuit_cost: the bound for positive capacity.Cslib.Circuits.Fusion.Cover.card_le_mul_cost,Cslib.Circuits.Fusion.card_le_mul_program_cost,Cslib.Circuits.Fusion.ceilDiv_card_le_circuit_cost: the unit-mass specializations.
References #
- Adapted from LowerBound/Fusion/Counting.lean in S. Schlesinger, Algebraic circuit formalizations in Complexitylib.
Witnesses in samples at which the atom fails to preserve the candidate invariant.
Instances For
A witness t belongs to a.failures I P samples if and only if t ∈ samples and a does
not preserve P t under I.
Local failure-mass estimates bound the total mass of any finite sample of witnesses. Operation costs and witness masses are independent; capacity zero and zero masses are allowed.
Local failure estimates on a cover bound any finite sample of its witnesses. This multiplicative form also applies when capacity is zero.
Count weighted failures using only the actual evaluated gates. No estimate for other semantic configurations is required, and supplied inputs must satisfy every sampled invariant.
Count a finite sample of failed invariants using bounds on the actual evaluated gates. No estimate for other semantic configurations is required.
Divide total witness mass by a positive failure capacity and round up. Each witness may fail at a different designated output, and shared gates are charged once.
A positive capacity converts the local counting bound into a rounded-up cost bound. Each witness may fail at a different output, and shared gates are charged once.