Local labelling rounds #
A labelling assigns a value to every wire of a circuit, and a round S computes a new
labelling from an old one. A round is local when the new value of each wire depends only on the
old values of lower-numbered wires, as for one round of evaluation on an ordered topology. Wire
numbers are those of Cslib.Circuits.Wire.toNat.
Iterating a local round n + s times, once per wire, reaches its unique fixed labelling from any
start. Garbling schemes use this to compute labels by iteration and to identify the result with a
labelling given in closed form.
Main definitions #
Cslib.Circuits.IsLocal: the new value of each wire depends only on lower-numbered wires.
Main results #
Cslib.Circuits.IsLocal.isFixed_iterate:n + srounds reach a labelling the round fixes.Cslib.Circuits.IsLocal.iterate_eq_of_isFixed: every labelling the round fixes is then + s-fold iterate from any start.Cslib.Circuits.IsLocal.eq_of_isFixed: a local round fixes at most one labelling.