Shared zero-label and active-label propagation on words #
The topology-and-flag propagation traversal simPropWords shared between the Free-XOR garbler
(CslibFrontier.Crypto.Primitives.Garbling.FreeXOR.Scheme) and simulator
(CslibFrontier.Crypto.Primitives.Garbling.FreeXOR.Simulator), together with its word-length bounds
and word-to-typed correctness lemma (simPropWords_eq_propagate).
The garbler supplies the coin tape after the k + 1 offset bits and the XOR flags computed from its
gates (List.ofFn (isXorGate f)), while the simulator supplies its raw coin tape and the XOR flags
from side information.
Main definitions #
Cslib.Crypto.Garbling.FreeXOR.isXorGate: whether a gate of a conventional circuit computes XOR.Cslib.Crypto.Garbling.FreeXOR.freeCircuit: whether each gate oftoCircuit fis free.Cslib.Crypto.Garbling.FreeXOR.simPropWords: propagate(k + 2)-bit wire labels over a topology and gate flag list from a coin tape.Cslib.Crypto.Garbling.FreeXOR.simBaseLabels: typed base labels read from a coin tape.
Main results #
Cslib.Crypto.Garbling.FreeXOR.length_simPropWords: afters ≤ t.qgates,simPropWordsholdst.n + swords.Cslib.Crypto.Garbling.FreeXOR.length_le_of_mem_simPropWords: every word insimPropWordshas at mostk + 2bits.Cslib.Crypto.Garbling.FreeXOR.simPropWords_eq_propagate:simPropWordsmatches the typedpropagatelabelling ontoCircuit fwhenever the flag list agrees withisXorGateonFin q.
Whether gate g of f computes XOR.
Whether each gate of toCircuit f is free (computes XOR).
The wire label words of the first n + s wires read/propagated from coins over topology t
and XOR flags free: inputs and non-XOR gates read PointPermute.simLabel k coins, and XOR gates
add their arguments' labels.
After s ≤ t.q gates, simPropWords holds t.n + s label words.
Every word in simPropWords k t free coins s has length at most k + 2.
On a valid circuit f and any flag list free agreeing with isXorGate f.1 on Fin f.1.q,
the first n + s words of simPropWords are the typed propagated simBaseLabels.