Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser.Operations

Restrictions on 3.5n gate-elimination states #

Specialization of Cslib.Circuits.Boolean.AffineDisperserCore restrictions (UF) and (PF) to 3.5n states with PairTame parameter-map invariants (State.RestrictOK, State.Valid.restrict).

Main definitions #

Main results #

Restrictions #

The hypotheses of a restriction: x is a parameter, ℓ reads at most another parameter, kept pairs avoid x, and every dropped pair contains x together with the parameter (if any) read by ℓ.

  • mem : x ∈ S.params

    x is a parameter of S.

  • reads (y : ℕ) : ℓ.Reads y → y ∈ S.params ∧ y ≠ x

    Every variable read by ℓ is a parameter other than x.

  • subset : P ⊆ S.pairs

    Kept pairs come from S.pairs.

  • avoid (pr : ℕ × ℕ) : pr ∈ P → pr.1 ≠ x ∧ pr.2 ≠ x

    Kept pairs do not contain x.

  • drop (pr : config.Pair) : pr ∈ S.pairs → pr ∉ P → (pr.1 = x ∨ pr.2 = x) ∧ ∀ (y : ℕ), ℓ.Reads y → y = pr.1 ∨ y = pr.2

    Dropped pairs contain x and any variable read by ℓ.

theorem Cslib.Circuits.Boolean.AffineDisperser.State.RestrictOK.pairTame {n : ℕ} {S : State n} {x : ℕ} {ℓ : SemiCircuit.Lit} {P : Finset (ℕ × ℕ)} (h : S.RestrictOK x ℓ P) {k : ℕ} {τ : BitString k → ℕ → Bool} (htame : ∀ pr ∈ P, PairTame τ pr) (pr : config.Pair) :
pr ∈ S.pairs → PairTame (fun (u : BitString k) => Function.update (τ u) x (ℓ.eval (τ u))) pr

Along an affine family on which the kept pairs are tame, the restricted family is affine and every pair is tame: a dropped pair has a constant member, or a constant sum when x is restricted to a literal of its partner.

Restrictions preserve validity.