Finite circuit syntax #
A finite signature gives computable enumerations of lines and programs of each fixed size.
Their cardinalities count syntax and are independent of any interpretation or carrier.
Line.card_le bounds the number of lines when all operation arities are bounded.
@[instance_reducible]
Equations
- Cslib.Circuits.Line.instFintype n g = Fintype.ofEquiv ((op : σ.Op) × (Fin (σ.Arity op) → Cslib.Circuits.Wire n g)) (Cslib.Circuits.Line.equiv σ n g).symm
@[instance_reducible]
Equations
@[simp]
There is one empty program, regardless of the signature or number of inputs.
Choose a prefix program and then its last line.
The line at each position may refer to the inputs and all preceding gates.