Circuit input support #
cslib computes the original inputs that can affect each wire
(Cslib.Circuits.Program.wireSupport, Cslib.Circuits.Circuit.inputSupport) and proves that
circuit evaluation depends only on those inputs (Cslib.Circuits.Circuit.dependsOn_eval); these
were upstreamed from this file in cslib#1181. This file keeps the additions cslib does not have:
the support of a gate and of a designated output, and essential coordinates. An input on which a
function depends essentially (EssentialAt) reaches an output of every circuit computing it.
Main definitions #
Cslib.Circuits.EssentialAt: coordinates whose change can change a function.Cslib.Circuits.Program.gateSupport,Cslib.Circuits.Circuit.outputSupport: the structural input supports of gates and of designated outputs.
Main results #
Cslib.Circuits.EssentialAt.mem_support: an essential coordinate belongs to every support.Cslib.Circuits.Circuit.Computes.dependsOn: a computed function depends only on the circuit's input support.
A gate-output wire has the support of that gate.
The new gate is supported by precisely the inputs supporting the new line.
Program gates agree whenever their supporting inputs agree.
A computed function depends only on the circuit's structural input support.