Documentation

CslibFrontier.Algorithms.MatrixMultiplication.Schonhage.BoxesFromLeaves

Output boxes indexed by leaves of exactly the threshold order #

Completing the stars of an output box gives its unique contributing leaf of order t. Conversely starBelow constructs this box from such a leaf. The high-order partition remains the one in BoxPartition; this is an additional finite indexing bijection.

Adapted from [AlmanWilliams2026, Section 4.2] and the primary formal source BoxesFromLeaves.lean at anthropics/formal-math@16a5ce41304fcdaea4e0be7c132e1c361dc26da5. No native enumeration or lookup-cost statement is supplied by this bijection.

An output box has exactly the prescribed combined star and P0 count.

Star the P0 coordinates preceding every non-P0 inner coordinate.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.boxOfLeaf_eq_starBelow {L m t : ℕ} {η : OutStr L} {τ : Leaf L} (hτ : τ.Contributes η) (hord : order m τ = ↑t) :
boxOfLeaf m t η τ = starBelow η τ

At exact threshold order, the padded construction is the initial-star construction.

Initial starring retains the original leaf.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.starBelow_mem {L m t : ℕ} {η : OutStr L} {τ : Leaf L} (hτ : τ.Contributes η) (hord : order m τ = ↑t) :

A contributing leaf of exact threshold order gives an eligible output box.

Completing the initial stars recovers the original leaf.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.starsToP0_of_mem {L m t : ℕ} {η : OutStr L} (ht : t ≤ m) (hη : (innerSetO η).card = m) {π : Cube L} (hπ : π ∈ (boxLevelSets m t η).biUnion (boxesAt η)) :

Completing an output box gives a contributing leaf of exact threshold order.

theorem Cslib.Algorithms.MatrixMultiplication.Schonhage.existsUnique_starBelow_eq {L m t : ℕ} {η : OutStr L} (ht : t ≤ m) (hη : (innerSetO η).card = m) {π : Cube L} (hπ : π ∈ (boxLevelSets m t η).biUnion (boxesAt η)) :
∃! τ : Leaf L, (τ.Contributes η ∧ order m τ = ↑t) ∧ starBelow η τ = π

Each output box has exactly one exact-threshold leaf giving its initial-star form.