Documentation

CslibFrontier.Computability.Circuit.Boolean.CriticalPath

Critical-path bottlenecks over the full binary Boolean basis B₂ #

Boolean specialization of CslibFrontier.Computability.Circuit.CriticalPath to the complete binary Boolean basis B₂ (Cslib.Circuits.fullInterpretation (k := 2) (Carrier := Bool)), following Sections 4.1.1 and 7.1 of Fan, Li, and Yang [FLY22].

Every binary Boolean operation is either affine (SemiCircuit.IsAffineOp) or non-affine (IsAndType, GF(2) degree 2). Composing a binary gate opG with unary Boolean functions on its inputs and output preserves affineness and cannot turn a non-affine gate into a balanced affine XOR gate (IsXorType). Consequently, if two distinct input coordinates x ≠ y of a single-output B₂ circuit with NoDeadGates have intersecting critical paths, either no 2-bit restriction to (x, y) is AND-type or no 2-bit restriction to (x, y) is XOR-type (not_isAndType_or_not_isXorType_of_not_disjoint_criticalPath). Combined with Lemma 7.4 (Circuit.two_mul_sub_two_mul_le_size), every n-bit Boolean function (2 ≤ n) of B₂ complexity strictly below 2 * n - 2 exhibits such a restricted-subfunction obstruction on some coordinate pair x < y (exists_lt_pair_not_isAndType_or_not_isXorType).

Main definitions #

Main results #

References #

A binary Boolean operation is AND-type when it is non-affine (GF(2) degree 2), i.e., one of the 8 operations (a ⊕ α) ∧ (b ⊕ β) ⊕ γ ([FLY22], §4.1.1).

Instances For
    @[instance_reducible]

    A binary Boolean operation is XOR-type when it is affine and depends on both arguments, i.e., a ⊕ b or ¬(a ⊕ b) ([FLY22], §4.1.1).

    Instances For
      @[instance_reducible]
      theorem Cslib.Circuits.Boolean.not_isAndType_comp_of_isAffineOp {G : Bool → Bool → Bool} (hG : SemiCircuit.IsAffineOp G) (f₁ f₂ f₃ : Bool → Bool) :
      ¬IsAndType fun (a b : Bool) => f₁ (G (f₂ a) (f₃ b))

      Composing an affine binary gate G with unary pre- and post-processing never yields an AND-type binary function.

      theorem Cslib.Circuits.Boolean.not_isXorType_comp_of_not_isAffineOp {G : Bool → Bool → Bool} (hG : ¬SemiCircuit.IsAffineOp G) (f₁ f₂ f₃ : Bool → Bool) :
      ¬IsXorType fun (a b : Bool) => f₁ (G (f₂ a) (f₃ b))

      Composing a non-affine (AND-type) binary gate G with unary pre- and post-processing never yields an XOR-type binary function.

      theorem Cslib.Circuits.Boolean.not_isAndType_or_not_isXorType_of_not_disjoint_criticalPath {n : ℕ} (C : Circuit (fullSignature 2 Bool) n 1) (hnoDead : C.NoDeadGates) {x y : Fin n} (hxy : x ≠ y) (hinter : ¬Disjoint (C.criticalPath x).toFinset (C.criticalPath y).toFinset) :
      (∀ (ρ : Fin n → Bool), ¬IsAndType fun (bx by_ : Bool) => C.eval fullInterpretation (Function.update (Function.update ρ x bx) y by_) 0) ∨ ∀ (ρ : Fin n → Bool), ¬IsXorType fun (bx by_ : Bool) => C.eval fullInterpretation (Function.update (Function.update ρ x bx) y by_) 0

      In a single-output B₂ circuit with NoDeadGates and intersecting critical paths at x ≠ y, either no 2-bit restriction to (x, y) is AND-type or no 2-bit restriction to (x, y) is XOR-type (the structural core of Fan–Li–Yang [FLY22], Lemma 7.2).

      theorem Cslib.Circuits.Boolean.exists_lt_pair_not_isAndType_or_not_isXorType {n : ℕ} (hn : 2 ≤ n) {f : (Fin n → Bool) → Bool} (hf : complexity fullInterpretation (single f) < 2 * n - 2) :
      ∃ (x : Fin n) (y : Fin n), x < y ∧ ((∀ (ρ : Fin n → Bool), ¬IsAndType fun (bx by_ : Bool) => f (Function.update (Function.update ρ x bx) y by_)) ∨ ∀ (ρ : Fin n → Bool), ¬IsXorType fun (bx by_ : Bool) => f (Function.update (Function.update ρ x bx) y by_))

      Every n-bit Boolean function (2 ≤ n) of B₂-circuit complexity strictly less than 2 * n - 2 either has an isolated coordinate or has two intersecting critical paths in an equivalent NoDeadGates circuit, and in both cases admits x < y in Fin n whose 2-bit restrictions are either never AND-type or never XOR-type.