Documentation

Complexitylib.Algebraic.LowerBound.Cutwidth.MultiOutput.MatMul.Tripartite.Defs

The terminal graph of matrix multiplication: definitions #

The 3 n² terminals of n × n matrix multiplication C = A B, the inputs A i j and B j k and the outputs C i k, are the edges of the complete tripartite graph on three copies I, J, K of Fin n: A i j joins i ∈ I to j ∈ J, B j k joins j ∈ J to k ∈ K, and C i k joins i ∈ I to k ∈ K. Every vertex has degree 2 n.

A split of the wires of a circuit places some terminals on its side S. We record the placed terminals of each kind as a set of index pairs: a holds the pairs (i, j) with A i j placed, b the pairs (j, k) with B j k placed, and c the pairs (i, k) with C i k placed.

Row i of a set of index pairs: the second coordinates paired with i.

Equations
Instances For

    Column j of a set of index pairs: the first coordinates paired with j.

    Equations
    Instances For

      The placed terminals at the vertex i ∈ I: the entries A i j and C i k.

      Equations
      Instances For

        The placed terminals at the vertex j ∈ J: the entries A i j and B j k.

        Equations
        Instances For

          The placed terminals at the vertex k ∈ K: the entries B j k and C i k.

          Equations
          Instances For

            The smaller side at a vertex of degree 2 n with d placed terminals.

            Equations
            Instances For

              The heavy vertices of I: at least n placed terminals.

              Equations
              Instances For

                The number of heavy vertices.

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

                  The excess degI a c i - n of i ∈ I over the threshold n (zero unless i is heavy).

                  Equations
                  Instances For

                    The deficit n - degI a c i of i ∈ I below the threshold n (zero if i is heavy).

                    Equations
                    Instances For

                      The first coordinates in R paired with j in a: the placed terminals A i j with i ∈ R.

                      Equations
                      Instances For

                        The first coordinates in R not paired with j in a: the unplaced terminals A i j with i ∈ R.

                        Equations
                        Instances For

                          An exploratory probe mixing the I and J charges along a subset I₀ of I: the I-charge minority n (degI a c i) of the rows i ∈ I₀, plus, at each j ∈ J, the two summands of minority n (degJ a b j) = min x (n - y) + min (n - x) y (minority_add_eq, with x = (colSet a j).card, y = (rowSet b j).card) with the A-terminals restricted to the rows of I₀ᶜ. It interpolates between chargeJ (I₀ = ∅) and chargeI (I₀ = univ).

                          This is a combinatorial quantity only: no theorem bounds the number of signals crossing a split below by it.

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

                            A two-subset variant of probeIJ. At i ∈ I, minority n (degI a c i) is the sum of min r (n - s) and min (n - r) s (minority_add_eq, with r = (rowSet a i).card, s = (rowSet c i).card); here the first summand is counted over I₀ and the second over I₁. At each j ∈ J, the two summands of minority n (degJ a b j) are counted with the A-terminals restricted to the rows of I₀ᶜ and of I₁ᶜ respectively. As for probeIJ, the arguments are the rows charged on the I side, and twoSubsetProbeIJ a b c I₀ I₀ = probeIJ a b c I₀.

                            This is a combinatorial quantity only: no theorem bounds the number of signals crossing a split below by it.

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

                              The pairs (x, y) with exactly one of x ∈ X and y ∈ Y.

                              Equations
                              Instances For

                                The number of terminals with exactly one heavy endpoint.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  def Algebraic.Cutwidth.MultiOutput.Tripartite.place {n N s : ℕ} (t : Fin n × Fin n → Wire N s) (S : Finset (Wire N s)) :

                                  The index pairs whose terminal wire lies in S.

                                  Equations
                                  Instances For