Documentation

Complexitylib.Algebraic.LowerBound.Cutwidth.Aggregate.Compressed.Modular

Compression by the rank of modular contributions #

For aggregate gates over one prime modulus, the two possible contributions of each circuit signal are columns of a matrix. Its column space is an actual joint register, with exactly p ^ rank states. Arbitrary readouts, repeated slots, and dependencies between special gates are included in this construction.

@[reducible, inline]

The additive modular register, written multiplicatively for the aggregate API.

Equations
Instances For
    def Algebraic.Aggregate.Compressed.Modular.gate {p n : ℕ} (weights : Fin n → ZMod p) (target : ZMod p) :
    Op (State p)

    A weighted modular equality gate; all weights one give the usual MOD gate.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Every special gate in the modular signature has the same modular register.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        All dependent special registers identify with a vector of residues.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The two possible contribution columns for each signal, counting repeated slots.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Joint modular information is measured by the rank of the contribution matrix.

            Equations
            Instances For
              @[reducible, inline]

              A vector in the contribution space is one compressed aggregate state.

              Equations
              Instances For
                @[instance_reducible]
                Equations
                • One or more equations did not get rendered due to their size.

                The column-space inclusion decodes the joint special registers.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  Every modular circuit factors through its contribution space, without a rank premise.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    The rank counts the independent modular coordinates in the concrete compressed state.

                    Over a prime modulus, the joint state space has exactly one residue per rank coordinate.

                    Matrix rank never exceeds the number of modular gates.

                    The compiler charges the rank-based joint state twice, for guessing and checking.

                    theorem Algebraic.Aggregate.Compressed.Modular.contributionRank_le_of_factor {p n g : ℕ} (c : Program (signature (State p)) n g) [Fact (Nat.Prime p)] {r : ℕ} (left : Matrix (SpecialGate c) (Fin r) (ZMod p)) (right : Matrix (Fin r) (Wire n g × Bool) (ZMod p)) (h : contributionMatrix c = left * right) :

                    A matrix factorization through r coordinates certifies a rank bound.

                    For a fixed modulus, the compressed budget is bounded linearly by matrix rank.