Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser.Normal

Preliminary reductions of gate elimination #

The six preliminary reductions of Mishra and Santhanam, Section 4.1, each a step of gate elimination (State.Step) from a state whose configuration it names. Every reduction but the deletion (D4) of State.Valid.unit_delete is a State.Reduction, so its accounting is that of State.Reduction.step or State.Reduction.step_of_delete.

Before them, affine gates reading no gates are moved into the affine system (State.Valid.preparation_moveAffine). When no affine gate can be moved and neither Case 1 nor Case 2 applies, the state is exclusive (State.Valid.exclusive): no constraint has an unpaired isolated parameter and another parameter as parents. When none of the six cases applies, the state is normal (State.Normal, State.Valid.step_or_normal): it is exclusive, every parameter of the affine system is unpaired of degree at least two, and so is every parameter read by an AND-type gate.

Main definitions #

Main results #

References #

Case 2: an AND-type gate on an isolated parameter #

The configuration of Case 2: an AND-type gate reads an unpaired isolated parameter z and another parameter w.

Case 2 of the preliminary reductions: fix w so that the AND-type gate becomes constant and delete it; z becomes unused. If w is unpaired, Δa = -1 and ΔW ≤ -14; otherwise the partner of w becomes unpaired, Δa = 0 and ΔW ≤ -4.

Moving affine gates #

An affine gate reading no gates, which is moved into the affine system before the preliminary reductions.

A name larger than every equation name.

S.freshEqn is not an equation name of S.

Moving a movable gate into the affine system is a preparatory operation.

Exclusive states #

Consequence of Cases 1 and 2 of Mishra and Santhanam: when no affine gate can be moved, no deletion applies and Case 2 does not apply, the unique child of an unpaired isolated parameter is a gate whose other input is not a parameter.

Case 3: a paired parameter of degree other than one #

The configuration of Case 3: a paired parameter has degree 0 or at least 2.

Case 3 of the preliminary reductions. If a paired parameter p is unused, fixing its partner removes the pair: Δa = 0, ΔW ≤ -3. If p has two children, fixing p makes both deletable; the partner becomes unpaired and no other weight grows: Δa = 0, ΔW ≤ 0.

Case 4: partners with a common child #

A gate whose operation is a projection or a negated projection computes a literal of an input, so (D1) applies.

A gate with a constant operation computes a constant, so (D1) applies.

theorem Cslib.Circuits.Boolean.AffineDisperser.State.Valid.eq_insert_of_mem_terms {n : ℕ} {f : BooleanFunction n} {S : State n} (hS : AffineDisperserCore.State.Valid S f) (hdel : ¬S.DeletionAvailable) {e p r : ℕ} (he : e ∈ S.eqns) (hp : p ∈ S.params) (hr : r ∈ S.params) (hpr : p ≠ r) (hpe : p ∈ (S.eqn e).terms) (hre : r ∈ (S.eqn e).terms) :
∃ v ∈ S.aux, v ≠ p ∧ v ≠ r ∧ (S.eqn e).terms = {v, p, r}

When no deletion applies, an equation containing two parameters p and r reads v + p + r = rhs for an auxiliary variable v.

The configuration of Case 4: two partners have a common child.

Case 4 of the preliminary reductions: if partners p and r have a common child H, impose p = r + c so that H becomes constant and delete it; r becomes unused: Δa = 0, ΔW ≤ -5.

Case 5: a paired parameter in the affine system #

The configuration of Case 5: a paired parameter occurs in the affine system.

Case 5 of the preliminary reductions: if a paired parameter p occurs in the affine system, fix its partner r and delete the unique child of r; then p is unpaired with at most one child, an equation, and (D4) removes it if it remains: Δa = 0, ΔW ≤ 0.

Case 6: an AND-type gate on a paired parameter #

The configuration of Case 6: an AND-type gate reads a paired parameter p and another parameter w.

Case 6 of the preliminary reductions: an AND-type gate G reads a paired parameter p with partner r and another parameter w. Fix r, fix w so that G becomes constant, and delete G and the unique child of r; p becomes unpaired and unused. If w is unpaired, Δa = -1 and ΔW ≤ -14; otherwise the partner of w becomes unpaired, Δa = 0 and ΔW ≤ -3.

Normal states #

A state in which no affine gate can be moved and no preliminary reduction applies, recorded by the consequences used to restructure and eliminate the minimal AND.

The preliminary reductions of Mishra and Santhanam, Section 4.1: if d < a and no affine gate can be moved, one of Cases 1 to 6 applies, giving a step of gate elimination, or the state is normal.