Documentation

CslibFrontier.Computability.Circuit.Boolean.WordConstant

Constant words over the Boolean basis #

A word of any width uses two shared constant gates. All output bits select one of those gates; the circuit ignores its input and includes both gates even at zero output width.

Main definitions #

Main results #

Extracted unchanged from the threshold-circuit construction, preserving its source credit.

Constant w-bit word circuit on n inputs: computes false and true once and wires each output bit i to the corresponding constant gate.

@[simp]

wordConstCircuit n y evaluates to the constant bit string y on every input.

@[simp]

wordConstCircuit n y uses 2 gates (one false and one true constant gate).