A formal proof of Kruskal's uniqueness theorem for three-way tensors
We give a machine-checked proof, in Lean 4 with Mathlib, of Kruskal’s uniqueness theoremfor three-way tensors: if two r-term decompositions of the same tensor agree, with r ≥ 2, andthe three factors of one of them have Kruskal ranks whose deficits sum to at most r − 2, thenthe decompositions differ only by one common permutation of the r summands and invertibleper-summand scalars whose product is 1. The development follows the short proof of Rhodes,and consists of 57 modules (8,705 lines) — all of them in the default build target — whosetwo headline theorems depend only on the three standard axioms propext, Classical.choiceand Quot.sound. To our knowledge this is the first formal proof of the theorem; the only priorformalisation of the statement is a ProofWanted entry in the atlas-lean library, which we donot use.
Authors
- Joshua Bald (ORCID: https://orcid.org/0009-0002-1317-6489)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24720488
- Primary Topic
- Tensor decomposition and applications
- Type
- preprint