Documentation

CslibFrontier.Computability.Circuit.Weft

The weft of a circuit #

A gate is large when it has more than two arguments. The weft of a circuit is the largest number of large gates on a path to an output Cygan et al., Section 13.3. It is the depth with costs (Cslib.Circuits.Circuit.depthWith) in which a large gate costs one and every other gate costs nothing. Weft and depth bound the circuits of the classes W[t] of the W-hierarchy (Cslib.Complexity.W).

Main definitions #

Main results #

References #

The cost of a gate for the weft: one for a large gate, of more than two arguments, and zero otherwise.

A gate costs at most one for the weft.

def Cslib.Circuits.Circuit.weft {σ : Signature} {n m : ℕ} (c : Circuit σ n m) :

The weft of a circuit: the largest number of large gates, of more than two arguments, on a path to an output Cygan et al., Section 13.3.

theorem Cslib.Circuits.Circuit.weft_le_depth {σ : Signature} {n m : ℕ} (c : Circuit σ n m) :

The weft of a circuit is at most its depth.

theorem Cslib.Circuits.Circuit.weft_le_iff {σ : Signature} {n m : ℕ} (c : Circuit σ n m) {t : ℕ} :

A circuit has weft at most t exactly when all its outputs do.