Documentation

Complexity.Algorithms.WordRAM.MatrixMultiplication.Schonhage.Pruned.Codes

Numerical query codes for native pruned evaluation #

The output variables use the existing term numbering through their private terms: the nine outer outputs have digits zero through eight and the inner output has digit nine. The first coordinate is the least significant digit, exactly as for the encoded leaf arrays.

Main definitions #

Main results #

References #

The child-set definition is adapted from [AlmanWilliams2026, Section 2.4.2] and Anthropic's formal source at revision 16a5ce41304fcdaea4e0be7c132e1c361dc26da5, pinned source. These are finite coding identities, not native run claims.

Output digits follow their private terms in the existing encoder's numbering.

Instances For

    The least-significant-first flat code of an output string.

    Instances For

      Decode a supplied finite query code with the existing executable digit enumeration.

      Instances For
        @[simp]

        Encoding a decoded query returns the actual supplied code.

        @[simp]

        Decoding a query's code returns every output coordinate unchanged.

        The requested output set is computed from the ordinary initialized list of query codes. Repeated list entries are allowed and will be reported in their original order.

        Instances For

          The request set's numerical image is precisely the set of supplied numerical codes.

          Every supplied list entry is one of the requested mathematical outputs.

          Replacing output strings by their numerical codes preserves a request-set cardinality.

          The first query digit is its output-variable digit; the suffix is shifted by one place.

          Taking the first numerical digit recovers the first output variable.

          Integer division discards the first output coordinate.

          Numerical child requests are selected by the actual digit tests, then shortened by division. The finite-set image removes repeated suffixes. Native code will implement that deduplication.

          Instances For
            theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.PrunedQuery.childCodes_bounded {n : ℕ} {S : Finset ℕ} (term : ℕ) (hS : ∀ q ∈ S, q < 10 ^ (n + 1)) (q : ℕ) :
            q ∈ childCodes S term → q < 10 ^ n

            Child suffixes stay within the smaller numerical query space.