ComparatorChallenges/MatrixMultiplication.lean
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.
- inductive
OAI.MatrixMultiplication.Arithmetic.Gateline 13Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:11 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.Gate.evalline 24Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:22 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.Gate.costline 32Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:30 (same declaration text).
- inductive
OAI.MatrixMultiplication.Arithmetic.Programline 41Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:39 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.Program.evalline 49Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:47 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.Program.costline 54Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:52 (same declaration text).
- abbrev
OAI.MatrixMultiplication.Arithmetic.MatrixInputline 60Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:58 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.matrixInputsline 62Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:60 (same declaration text).
- structure
OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithmline 68Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:66 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm.evalline 77Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:75 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm.Correctline 82Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:80 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.MatrixAlgorithm.costline 85Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:83 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.AdmissibleExponentPositive slack, one uniform constant, and a correct program at every size line 90Source 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.
- 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 := …
- def
OAI.MatrixMultiplication.Arithmetic.omegaline 95Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:93 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.innerSizeThe inner dimension of ann × n^kbyn^k × nmultiplication line 98Source documentation
The inner dimension of an
n × n^kbyn^k × nmultiplication.L4DEL explanation
The inner dimension of an
n × n^kbyn^k × nmultiplication.- 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⌉₊
- def
OAI.MatrixMultiplication.Arithmetic.RectangularAdmissibleExponentline 100Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:98 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.rectangularOmegaline 105Also declared: OAI/LinearAlgebra/MatrixMultiplication/Model.lean:103 (same declaration text).
- def
OAI.MatrixMultiplication.Arithmetic.complexAlphaThe dual exponent is a supremum of exact exponent-two rectangular shapes line 109Source 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.
- 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 : ℝ := …
- theorem
OAI.MatrixMultiplication.complex_omega_le_nine_quartersComplex matrix multiplication has exponent at most 9/4 sorry line 118L4DEL 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 complexn×nmatrices can be multiplied usingO(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.- The manuscript first bounds the asymptotic tensor rank of matrix multiplication by analysing restrictions and asymptotic rates.
- 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. - 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 … - theorem
OAI.MatrixMultiplication.complex_alpha_gt_93_div_200The complex dual matrix-multiplication exponent is greater than 0.465 sorry line 122L4DEL explanation
the dual exponent satisfies α > 0.465
The dual exponent
αis the supremum of aspect ratioskfor which multiplying ann×n^kmatrix by ann^k×nmatrix 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.- The accompanying manuscript develops rectangular matrix-multiplication bounds over characteristic-zero fields.
- A concrete construction attains exponent 2 for an aspect ratio strictly larger than
0.465. - 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 … - theorem
OAI.MatrixMultiplication.complex_rectangular_omega_lt_523_div_250Rectangular complex matrix multiplication at aspect ratio 0.709 has exponent below 2.092 sorry line 126L4DEL explanation
ω(1, 0.709, 1) < 2.092
For multiplication of an
n×n^0.709matrix by ann^0.709×nmatrix overℂ, the arithmetic exponent is strictly less than523/250 = 2.092. The strict inequality means some uniform positive exponent improvement exists; it does not specify a practical crossover size.- The manuscript turns tensor constructions into explicit upper bounds for rectangular matrix multiplication in characteristic zero.
- Substituting aspect ratio
709/1000yields a bound strictly below523/250. - 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