A Lean formalization of the rectangular matrix multiplication bound from Rectangular matrix multiplication from shared-leg entropy, extended to every associative ring. The same finite arithmetic circuits work over noncommutative rings and rings without a multiplicative identity, in any characteristic.
For every real
Both the circuit family and
| Result | Arithmetic operation bound, for every |
|---|---|
| Square matrix multiplication over arbitrary rings |
|
| Rectangular matrix multiplication at aspect ratio |
|
| Dual exponent of matrix multiplication |
|
| General rectangular matrix multiplication |
|
These bounds apply to associative rings, noncommutative rings, and nonunital rings (rings without identity), uniformly in the characteristic. The Lean 4 formal proof uses integral tensor rank, shared-leg entropy, and universal arithmetic circuits. The bound extends Uznański's rectangular result to rings; the exponent curve itself is attributed to the source paper above.
中文摘要:任意结合环上的矩形矩阵乘法,包含非交换环和无单位元环;
平方矩阵乘法指数
The public entry point is RectangularPrograms.lean:
Matmul.RectangularPrograms.rectangular_multiplication_programsMatmul.RectangularPrograms.square_multiplication_programsMatmul.RectangularPrograms.half_rectangular_multiplication_programs
The full development contains 94 Lean modules. All modules passed the original
build on October 12, 2026 and the latest publication check on October 14, 2026.
The main theorems and the key intermediate results
depend only on propext, Classical.choice, and Quot.sound; the local sources
contain no sorry or custom axiom declarations. See the
verification record and
axiom audit.
The proof establishes the existence of finite arithmetic circuits using classical witnesses. It does not extract an executable matrix multiplication implementation. The cost measures arithmetic gates, rather than bit complexity or the runtime of Lean's evaluator. The three arbitrary shape exponents and lower bounds discussed in the research note are outside the public Lean theorem.
The verified environment uses Lean 4.33.0-rc1, Python 3.10 or later, and
mathlib commit 79d0395a1825a6264ad5d269e35e60537518955e, with its compiled
dependencies. Point the runners at an existing installation:
export MATMUL_LEAN="/path/to/installed/lean/bin/lean"
export MATMUL_PACKAGES="/path/to/existing/project/.lake/packages"
python3 formalization/build_local.py \
Matmul.RectangularPrograms Checks.RectangularAxioms --jobs 2MATMUL_PACKAGES is the parent directory containing mathlib, aesop,
batteries, and the other already compiled packages. Each package normally
provides .lake/build/lib/lean. Use the actual Lean executable for the matching
toolchain. The runners call it directly, build only the project sources, and
never install a toolchain, run lake update, or download dependencies.
To check every local Lean module:
python3 formalization/build_local.py --all --jobs 2Detailed cache configuration, proof dependencies, and reproduction instructions are in formalization/README.md. The source archive contains no compiled Lean or mathlib artifacts, so building a fresh checkout requires an existing compiled dependency cache.
- Extension notes: the integral constructions and proof outline.
- Research note and LaTeX source.
- Proof correspondence: precise Lean declarations, background results, representation conventions, and the supplementary scope.
- Source provenance: upstream commits and compatibility changes.
The independent finite identity checks require only Python's standard library:
python3 verify_integral_constructions.pyThey check 10,615 separator terms, 5,232 tripling terms, 10 determinant bases, and 252 multiplication slices. These finite checks supplement the general proofs; the Lean theorem proves the statements for all relevant parameters.
python3 prepare_github.pyThis creates dist/rectangular-matmul-rings.zip with the English documentation,
Lean sources, verification tools, research note, and license notices. It excludes
build caches, LaTeX auxiliary files, local agent directories, and upstream
checkouts. Extract the archive to obtain a clean directory ready for a GitHub
repository. Rebuild it after changing any distributed files.
The research note is by Yang Zhou and Mingsheng Wang. Citation metadata for this repository is provided in CITATION.cff.
The project is distributed under the Apache License 2.0, with the
fixed point theorem sources retaining their MIT license.
NOTICE and PROVENANCE.txt identify reused
sources from OpenAI's openai/math, Jeroen Zuiddam's
omega-nine-quarters-all-fields, and harfe's fixed-point-theorems-lean4.
The rectangular bound originates in Przemysław Uznański's arXiv:2610.10494. The formalization reuses tensor, entropy, and spectral foundations from the cited Lean developments and adds the integral extension and the discrete rectangular analysis.