Projection-aware deduplication #
Program.exists_irredundant_ne_input strengthens cslib's Program.exists_irredundant. Besides
merging gates that compute the same function, it skips gates computing an input projection, so the
rebuilt program has one gate per distinct gate function that is not a projection. Every gate of
the rebuilt program computes the function of some gate of the original.
Main results #
Cslib.Circuits.Program.exists_irredundant_ne_input: a program can be rebuilt with pairwise distinct gate functions, none an input projection, each computed by a gate of the original.
References #
This is the deduplication step of Ilango, Loff and Oliveira, Proposition 14 (pp. 22:21–22:22), generalized to arbitrary signatures and interpretations.
Projection-aware deduplication, strengthening Program.exists_irredundant. A program can
be rebuilt so that its gates compute pairwise distinct functions, none of which is an input
projection, while every wire keeps its value. Each new gate computes the function of some gate of
the original program.