ComparatorChallenges/MatrixMultiplication.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.

Project sources: Pinned openai/math documentation, Pinned formalization catalogue

21 declarations, 3 contain sorry, 0 declared as axioms

The three main complex matrix multiplication bounds, checked independently.

  1. inductive OAI.MatrixMultiplication.Arithmetic.Gate line 13

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:11 (same declaration text).

  2. def OAI.MatrixMultiplication.Arithmetic.Gate.eval line 24

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:22 (same declaration text).

  3. def OAI.MatrixMultiplication.Arithmetic.Gate.cost line 32

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:30 (same declaration text).

  4. inductive OAI.MatrixMultiplication.Arithmetic.Program line 41

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:39 (same declaration text).

  5. def OAI.MatrixMultiplication.Arithmetic.Program.eval line 49

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:47 (same declaration text).

  6. def OAI.MatrixMultiplication.Arithmetic.Program.cost line 54

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:52 (same declaration text).

  7. abbrev OAI.MatrixMultiplication.Arithmetic.MatrixInput line 60

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:58 (same declaration text).

  8. def OAI.MatrixMultiplication.Arithmetic.matrixInputs line 62

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:60 (same declaration text).

  9. structure OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm line 68

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:66 (same declaration text).

  10. def OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm.eval line 77

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:75 (same declaration text).

  11. def OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm.Correct line 82

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:80 (same declaration text).

  12. def OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm.cost line 85

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:83 (same declaration text).

  13. def OAI.MatrixMultiplication.Arithmetic.AdmissibleExponent Positive slack, one uniform constant, and a correct program at every size line 90

    Source documentation

    Positive slack, one uniform constant, and a correct program at every size.

    L4DEL explanation

    Positive slack, one uniform constant, and a correct program at every size.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:88 (same declaration text).

    def AdmissibleExponent (F : Type*) [Field F] (τ : ℝ) : Prop :=
    …
  14. def OAI.MatrixMultiplication.Arithmetic.omega line 95

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:93 (same declaration text).

  15. def OAI.MatrixMultiplication.Arithmetic.innerSize The inner dimension of an n × n^k by n^k × n multiplication line 98

    Source documentation

    The inner dimension of an n × n^k by n^k × n multiplication.

    L4DEL explanation

    The inner dimension of an n × n^k by n^k × n multiplication.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:96 (same declaration text).

    def innerSize (n : ℕ) (k : ℝ) : ℕ := ⌈(n : ℝ) ^ k⌉₊
  16. def OAI.MatrixMultiplication.Arithmetic.RectangularAdmissibleExponent line 100

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:98 (same declaration text).

  17. def OAI.MatrixMultiplication.Arithmetic.rectangularOmega line 105

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:103 (same declaration text).

  18. def OAI.MatrixMultiplication.Arithmetic.complexAlpha The dual exponent is a supremum of exact exponent-two rectangular shapes line 109

    Source documentation

    The dual exponent is a supremum of exact exponent-two rectangular shapes.

    L4DEL explanation

    The dual exponent is a supremum of exact exponent-two rectangular shapes.

    1. This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)

    Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:107 (same declaration text).

    def complexAlpha : ℝ :=
    …
  19. theorem OAI.MatrixMultiplication.complex_omega_le_nine_quarters Complex matrix multiplication has exponent at most 9/4 sorry line 118

    L4DEL explanation

    We prove that the exponent of matrix multiplication over the complex numbers is at most 9/4.

    We’re releasing a broad range of new mathematical results produced by an internal frontier model.

    natural, obvious and centuries-old methods for solving natural, important computational problems may be far from the fastest.

    This is an asymptotic arithmetic-complexity statement: for every positive slack ε, sufficiently large complex n×n matrices can be multiplied using O(n^(9/4+ε)) additions, subtractions, and multiplications in a division-free program. It does not claim that the construction is fastest at practical matrix sizes or in bit complexity.

    1. The manuscript first bounds the asymptotic tensor rank of matrix multiplication by analysing restrictions and asymptotic rates.
    2. Those tensor identities yield algorithms at every exponent strictly above 9/4; the formal definition of ω then turns the family of bounds into ω(ℂ) ≤ 9/4.
    3. The Lean target is the exact square-exponent conclusion. Its comparator configuration points to the released solution module, while the pinned manuscript supplies the mathematical exposition.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI 9/4 manuscript (abstract), Pinned OpenAI formalization note 107, OpenAI mathematics release announcement, Avi Wigderson and Binyi Zu (2023), page 3

    Distinct definitions of this name: OAI/LinearAlgebra/MatrixMultiplication/Main.lean:14 (same statement text; different proof or body). Qualify references as OAI.MatrixMultiplication.complex_omega_le_nine_quarters@path.

    theorem complex_omega_le_nine_quarters :
        Arithmetic.omega ℂ ≤ (9 : ℝ) / 4 := by
    …

    Mentions: OAI.MatrixMultiplication.Arithmetic.omega

  20. theorem OAI.MatrixMultiplication.complex_alpha_gt_93_div_200 The complex dual matrix-multiplication exponent is greater than 0.465 sorry line 122

    L4DEL explanation

    the dual exponent satisfies α > 0.465

    The dual exponent α is the supremum of aspect ratios k for which multiplying an n×n^k matrix by an n^k×n matrix can be done with exponent 2, up to arbitrary positive slack. This theorem proves α > 93/200 = 0.465; it is a strict asymptotic bound, not a benchmark at a fixed dimension.

    1. The accompanying manuscript develops rectangular matrix-multiplication bounds over characteristic-zero fields.
    2. A concrete construction attains exponent 2 for an aspect ratio strictly larger than 0.465.
    3. The Lean target states that strict lower bound directly, with the comparator selecting the released matrix-multiplication solution module.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI rectangular matrix-multiplication manuscript (abstract), Pinned OpenAI formalization note 107, OpenAI mathematics release announcement

    Distinct definitions of this name: OAI/LinearAlgebra/MatrixMultiplication/Main.lean:19 (same statement text; different proof or body). Qualify references as OAI.MatrixMultiplication.complex_alpha_gt_93_div_200@path.

    theorem complex_alpha_gt_93_div_200 :
        (93 : ℝ) / 200 < Arithmetic.complexAlpha := by
    …

    Mentions: OAI.MatrixMultiplication.Arithmetic.complexAlpha

  21. theorem OAI.MatrixMultiplication.complex_rectangular_omega_lt_523_div_250 Rectangular complex matrix multiplication at aspect ratio 0.709 has exponent below 2.092 sorry line 126

    L4DEL explanation

    ω(1, 0.709, 1) < 2.092

    For multiplication of an n×n^0.709 matrix by an n^0.709×n matrix over ℂ, the arithmetic exponent is strictly less than 523/250 = 2.092. The strict inequality means some uniform positive exponent improvement exists; it does not specify a practical crossover size.

    1. The manuscript turns tensor constructions into explicit upper bounds for rectangular matrix multiplication in characteristic zero.
    2. Substituting aspect ratio 709/1000 yields a bound strictly below 523/250.
    3. The Lean target isolates that numerical consequence, while the pinned formalization note records its intended arithmetic model and scope.

    Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI rectangular matrix-multiplication manuscript (abstract), Pinned OpenAI formalization note 107, OpenAI mathematics release announcement

    Distinct definitions of this name: OAI/LinearAlgebra/MatrixMultiplication/Main.lean:25 (same statement text; different proof or body). Qualify references as OAI.MatrixMultiplication.complex_rectangular_omega_lt_523_div_250@path.

    theorem complex_rectangular_omega_lt_523_div_250 :
        Arithmetic.rectangularOmega ℂ ((709 : ℝ) / 1000) < (523 : ℝ) / 250 := by
    …

    Mentions: OAI.MatrixMultiplication.Arithmetic.rectangularOmega