Documentation

LeanPool.BooleanMultiplication.N4.Flag

Circuit flags and the defect ledger #

The definitions in this file isolate the two components of a circuit flag: the target dimension and the complementary defect dimension. The main identity is the reusable form of the manuscript's ledger

number of nonredundant gates = target rank + defect rank.

The target ambient space Aff + T.

Equations
Instances For
    noncomputable def UnrestrictedBooleanMul.N4.flagTargetRank {m : ℕ} (V T : Submodule F₂ (ANF m)) :

    Target dimension of a wire space, measured modulo affine functions.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def UnrestrictedBooleanMul.N4.flagDefectRank {m : ℕ} (V T : Submodule F₂ (ANF m)) :

      Defect dimension: directions in the wire space outside Aff + T.

      Equations
      Instances For
        noncomputable def UnrestrictedBooleanMul.N4.circuitFlag {m r : ℕ} (C : Circuit m r) (j : ℕ) :

        The wire-space flag associated with a semantic circuit.

        Equations
        Instances For

          A gate is nonredundant when its output is not already in the preceding wire space. Minimal circuits have this property at every gate.

          Equations
          Instances For
            def UnrestrictedBooleanMul.N4.UsefulAt {m r : ℕ} (C : Circuit m r) (T : Submodule F₂ (ANF m)) (j : Fin r) :

            A gate is useful when adjoining it raises the target rank.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem UnrestrictedBooleanMul.N4.prefixGates_mono {m r j k : ℕ} {g : Fin r → ANF m} (hjk : j ≤ k) :
              theorem UnrestrictedBooleanMul.N4.wireSpace_mono {m r j k : ℕ} {g : Fin r → ANF m} (hjk : j ≤ k) :
              @[simp]
              @[simp]
              theorem UnrestrictedBooleanMul.N4.prefixGates_succ {m r j : ℕ} (g : Fin r → ANF m) (hj : j < r) :
              prefixGates g (j + 1) = prefixGates g j ∪ {g ⟨j, hj⟩}
              theorem UnrestrictedBooleanMul.N4.wireSpace_succ {m r j : ℕ} (g : Fin r → ANF m) (hj : j < r) :
              wireSpace g (j + 1) = wireSpace g j ⊔ F₂ ∙ g ⟨j, hj⟩

              Each step of the circuit flag adjoins exactly the span of the new gate output (possibly redundantly).

              theorem UnrestrictedBooleanMul.N4.finrank_inf_extension_le_one {K : Type u_1} {V : Type u_2} [DivisionRing K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] (A W : Submodule K V) (x : V) :
              Module.finrank K ↥((A ⊔ K ∙ x) ⊓ W) ≤ Module.finrank K ↥(A ⊓ W) + 1

              Intersecting a one-vector extension with any fixed ambient subspace can raise dimension by at most one. This is the linear-algebra core of “one gate buys at most one target dimension.”

              The exact short-exact-sequence ledger for any wire space containing the affine inputs.

              theorem UnrestrictedBooleanMul.N4.circuitFlag_finrank {m r j : ℕ} (C : Circuit m r) (hj : j ≤ r) (hnr : ∀ (i : Fin r), ↑i < j → NonredundantAt C i) :

              A nonredundant prefix of j AND gates has quotient dimension exactly j modulo affine functions.

              theorem UnrestrictedBooleanMul.N4.circuit_flag_defect_count {m r j : ℕ} (C : Circuit m r) (T : Submodule F₂ (ANF m)) (hj : j ≤ r) (hnr : ∀ (i : Fin r), ↑i < j → NonredundantAt C i) :

              The manuscript identity j = t(V_j) + e(V_j) for a nonredundant circuit prefix.