Documentation

Complexitylib.Circuits.Encoding.ToCircuit.Defs

Reconstructing typed circuits from raw circuit syntax #

This definitions layer packages a nonempty, topologically ordered CircuitCode.RawCircuit as a typed fan-in-two AND/OR circuit. The final raw gate becomes the sole output gate; every preceding raw gate becomes an internal gate in the same order.

Restore the dependent wire bounds of a well-formed raw gate.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Complexity.CircuitCode.RawCircuit.toCircuit (N : ) [NeZero N] (circuit : RawCircuit) (hwell : WellFormed N circuit) :

    Restore the dependent type of a valid raw single-output circuit.

    The circuit has one typed gate for each raw gate: the first length - 1 are internal gates and the final gate is the sole output gate.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For