# 史密斯标准形

史密斯标准形（Smith normal form）是主理想整环上矩阵的一种标准对角形：对于 \( m \times n \) 矩阵 \( A \)，存在该环上的可逆矩阵 \( U \) 和 \( V \)，使得 \( UAV = D \)，其中 \( D \) 在主对角线之外全为零，其非零对角元 \( d_1, \ldots, d_r \) 满足整除链 \( d_1 \mid d_2 \mid \cdots \mid d_r \)，而 \( r \) 为 \( A \) 的秩<sup>[1](https://mathworld.wolfram.com/SmithNormalForm.html)</sup>。这些元素 \( d_i \) 称为不变因子，在乘以环中单位的意义下唯一确定<sup>[1](https://mathworld.wolfram.com/SmithNormalForm.html)</sup>。这一形式是主理想环上有限生成模结构理论的基础，其中包括有限生成阿贝尔群和若尔当标准形<sup>[2](https://encyclopediaofmath.org/wiki/Normal_form_%28for_matrices%29)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( UAV = D \)，其中 \( U, V \) 在环上可逆，\( D \) 为对角矩阵，非零元满足 \( d_1 \mid d_2 \mid \cdots \mid d_r \)，\( r = \operatorname{rank}(A) \)<sup>[1](https://mathworld.wolfram.com/SmithNormalForm.html)</sup> |
| 起源 | 亨利·约翰·斯蒂芬·史密斯，《论线性不定方程与同余方程组》，《哲学汇刊》第151卷，第293–326页（1861年）<sup>[3](https://makingscience.royalsociety.org/items/pt_63_15/paper-on-systems-of-linear-indeterminate-equations-and-congruences-by-henry-j-john-stephen-smith)</sup> |
| 不变因子公式 | \( d_i \) 等于所有 \( i \times i \) 子行列式的最大公因数除以所有 \( (i-1) \times (i-1) \) 子行列式的最大公因数<sup>[4](https://staff.itee.uq.edu.au/havas/TR0247.pdf)</sup> |
| 多项式时间状态 | 坎南与巴赫姆（Kannan and Bachem，1979）给出了首批在运算次数和中间数位数两方面均具有多项式界的算法，并首次证明了小元素乘子的存在性<sup>[5](https://epubs.siam.org/doi/pdf/10.1137/0208040)</sup> |
| 群论应用 | 表示矩阵的不变因子给出有限表示阿贝尔群到循环因子的标准分解<sup>[6](https://staff.itee.uq.edu.au/havas/1979hs.pdf)</sup> |
| 图论应用 | 对于图拉普拉斯矩阵 \( M \)，由史密斯标准形得到的有限群的阶等于该图的生成树数目<sup>[7](https://www.sciencedirect.com/science/article/pii/S0095895608000282)</sup> |
| 近期乘子结果 | 2023年的一种拉斯维加斯算法计算非奇异整数矩阵的史密斯乘子，其期望时间约为同维度和同元素大小的两个矩阵相乘所需的时间<sup>[8](https://www.sciencedirect.com/science/article/pii/S0747717122000955)</sup> |

## 定义与唯一性

设 \( R \) 为主理想整环，即每个理想都由单个元素生成的环；整数环 \( \mathbb{Z} \) 和域上的多项式环 \( F[x] \) 是标准例子。对于 \( R \) 上的 \( m \times n \) 矩阵 \( A \)，其史密斯标准形是一个矩阵 \( D \)，满足 \( UAV = D \)，其中 \( U \) 和 \( V \) 分别是 \( R \) 上的 \( m \times m \) 和 \( n \times n \) 矩阵，其逆矩阵的元素也在 \( R \) 中（即幺模矩阵），\( D \) 的所有非对角元为零，且非零对角元满足 \( d_1 \mid d_2 \mid \cdots \mid d_r \)<sup>[1](https://mathworld.wolfram.com/SmithNormalForm.html)</sup>。其余对角元为零，而 \( r \) 为 \( A \) 的秩<sup>[1](https://mathworld.wolfram.com/SmithNormalForm.html)</sup>。

该形式通过行化简与求最大公因数的欧几里得算法相结合而得到，并且除初等因子的正负号外是唯一的<sup>[9](https://people.clas.ufl.edu/peterbubenik/files/virk2022.pdf)</sup>。在 \( \mathbb{Z} \) 上，每个矩阵都有史密斯标准形 \( A = UDV \)，其中 \( U \) 和 \( V \) 是行列式为 \( \pm 1 \) 的整数矩阵<sup>[9](https://people.clas.ufl.edu/peterbubenik/files/virk2022.pdf)</sup>。

不变因子可以在不进行化简的情况下刻画：\( d_i \) 等于 \( A \) 的所有 \( i \times i \) 子行列式的最大公因数除以所有 \( (i-1) \times (i-1) \) 子行列式的最大公因数<sup>[4](https://staff.itee.uq.edu.au/havas/TR0247.pdf)</sup>。这一描述在矩阵维数上具有指数复杂度，且不给出同构，因此对大型矩阵的计算用处不大<sup>[4](https://staff.itee.uq.edu.au/havas/TR0247.pdf)</sup>。

## 起源

该形式以亨利·约翰·斯蒂芬·史密斯（Henry John Stephen Smith，1826–1883）命名，他是牛津大学的萨维尔几何学教授，在贝利奥尔学院（Balliol College）期间撰写了这篇论文。他的手稿《论线性不定方程与同余方程组》于1861年1月17日由皇家学会（Royal Society）收到，1861年1月31日宣读，并发表于《伦敦皇家学会哲学汇刊》第151卷，第293–326页<sup>[3](https://makingscience.royalsociety.org/items/pt_63_15/paper-on-systems-of-linear-indeterminate-equations-and-congruences-by-henry-j-john-stephen-smith)</sup>。该论文讨论线性不定方程组的正整数或负整数解，这需要元素为整数的矩形矩阵。

## 代数应用

**阿贝尔群。** 主理想环上有限生成模的结构理论以史密斯标准形为基础，特别是有限生成阿贝尔群的理论和若尔当标准形的理论都依赖于它<sup>[2](https://encyclopediaofmath.org/wiki/Normal_form_%28for_matrices%29)</sup>。有限表示阿贝尔群由生成元和关系给出，这些关系编码在一个整数矩阵中；将该矩阵化为史密斯标准形的算法把群分解为循环子群的标准直积，其阶即为非平凡初等因子<sup>[4](https://staff.itee.uq.edu.au/havas/TR0247.pdf)</sup>。在实际计算中，所产生的表示（例如来自赖德迈斯特–施赖尔过程（Reidemeister–Schreier process）的表示）远非标准表示，生成元和关系数量庞大，且有许多平凡因子，因此需要高效的史密斯形算法来识别它们<sup>[4](https://staff.itee.uq.edu.au/havas/TR0247.pdf)</sup>。

**同调。** 在代数拓扑中，单纯复形的边界映射是整数矩阵，将每个边界矩阵 \( \partial_q \) 化为史密斯标准形即可得到同调群：对角元给出挠系数，而群本身的秩给出贝蒂数，后者在域上由秩公式 \( b_q = \operatorname{rank}(C_q) - \operatorname{rank}(\partial_q) - \operatorname{rank}(\partial_{q+1}) \) 计算，因此单个边界矩阵的零对角元一般不能给出同调秩<sup>[9](https://people.clas.ufl.edu/peterbubenik/files/virk2022.pdf)</sup><sup> • </sup><sup>[18](https://neovand.github.io/homology/homology/homology-groups/)</sup>。初等因子生成同调的挠部分<sup>[9](https://people.clas.ufl.edu/peterbubenik/files/virk2022.pdf)</sup>。

**组合数学。** 麻省理工学院（Massachusetts Institute of Technology）数学教授理查德·P·斯坦利（Richard P. Stanley）于2016年综述了史密斯标准形与对角形的组合学方面，涵盖图的临界群、随机整数矩阵的史密斯形，以及来自对称函数、卡利茨–罗塞尔–斯科维尔（Carlitz, Roselle, and Scoville）的一个结果和超平面配置的瓦尔琴科矩阵（Varchenko matrix）的例子<sup>[10](https://arxiv.org/abs/1602.00166)</sup>。图的临界群由其拉普拉斯矩阵计算：由拉普拉斯矩阵的史密斯标准形得到的有限群的阶等于该图的生成树数目<sup>[7](https://www.sciencedirect.com/science/article/pii/S0095895608000282)</sup>。

## 计算

**系数膨胀。** 核心计算困难在于，矩阵及变换矩阵的元素在计算过程中可能急剧增大。布兰金希普（Blankinship）注意到一个经验事实：在这些标准形的标准计算过程中，中间数可能变得相当大；弗鲁姆金（Frumkin）指出，已知的将整数矩阵化为史密斯或埃尔米特标准形的算法中，没有一个被证明在运行时间上是多项式有界的<sup>[5](https://epubs.siam.org/doi/pdf/10.1137/0208040)</sup>。1979年，坎南与巴赫姆通过给出算法解决了这一问题，这些算法的代数运算次数以及每个中间值的二进制位数均以输入二进制长度的多项式为界；这些算法还计算乘子矩阵，从而首次证明了具有足够小元素的乘子的存在性。<sup>[5](https://epubs.siam.org/doi/pdf/10.1137/0208040)</sup>

**模方法与并行方法。** 模技术通过对选定的数取模来进行运算，以避免整数溢出；1984年的一项比较研究发现，结合模技术的算法克服了溢出问题，并将计算能力提高了几个数量级<sup>[11](https://explore.openaire.eu/search/publication?pid=10.1080%2F00207728408926595)</sup>。哈瓦斯与斯特林（Havas and Sterling）结合启发式与模技术，成功处理了具有数百行和列的矩阵，并将结果应用于有限表示阿贝尔群<sup>[6](https://staff.itee.uq.edu.au/havas/1979hs.pdf)</sup>。俄罗斯科学院（Russian Academy of Sciences）的米哈伊尔·A·切列普涅夫（Mikhail A. Cherepnev）证明其正确性的一种模算法在将矩阵化为史密斯标准形的同时计算左变换矩阵，其主要项为 \( 2(n^{3} \log D) \) 次运算，其中 \( n \) 为矩阵大小，\( D \) 为行列式或其倍数<sup>[12](https://doi.org/10.1515/dma-2017-0018)</sup>。

并行化已在多个方向上推进。北卡罗来纳州立大学（North Carolina State University）的埃里希·卡尔托芬（Erich Kaltofen）与 M. S. 克里希纳穆尔蒂（M. S. Krishnamoorthy）和 B. 大卫·桑德斯（B. David Saunders）给出了一种随机拉斯维加斯并行算法，用于任意域上一元多项式矩阵的史密斯形，将史密斯形计算归约为两次埃尔米特形计算，从而使史密斯问题具有埃尔米特问题的渐近复杂度<sup>[13](https://www.sciencedirect.com/science/article/pii/002437959090028B)</sup>。后续工作将同时产生变换矩阵的埃尔米特和史密斯标准形算法并行化，覆盖 \( \mathbb{Z} \) 和 \( F[x] \) 两种情形，其动机是执行时间和内存需求可能超过单个处理器的内存<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/S016781910900026X)</sup>。对于大型稀疏整数矩阵，史密斯形计算可以归约为按字长素数幂取模的独立（因而可并行）计算<sup>[15](https://www.sciencedirect.com/science/article/pii/S0747717101904511)</sup>。

**乘子。** 许多应用需要幺模矩阵 \( U \) 和 \( V \) 本身，而不仅仅是对角形。斯塔夫罗斯·比尔姆皮利斯（Stavros Birmpilis）、乔治·拉巴恩（George Labahn）和阿恩·斯托约翰（Arne Storjohann）2023年的一个结果给出了一种拉斯维加斯随机算法，计算非奇异整数矩阵的史密斯乘子，其期望运行时间约等于将两个与输入同维度和同元素大小的矩阵相乘所需的时间，并给出了乘子元素大小的显式界<sup>[8](https://www.sciencedirect.com/science/article/pii/S0747717122000955)</sup>。

## 软件

SageMath 计算机代数系统提供 `smith_form` 方法，对整数矩阵返回 \( D \)、\( U \) 和 \( V \)，满足 \( S = U \cdot M \cdot V \)，包括非方阵和空矩阵；其文档指出，仅返回对角元的 `elementary_divisors` 函数要快得多<sup>[16](https://sagemath.gitlab.io/documentation/html/en/reference/matrices/sage/matrix/matrix_integer_dense.html)</sup>。Sage 还为整数上的有限生成模提供史密斯形生成元，以及史密斯形生成元与用户生成元之间的变换矩阵<sup>[17](https://doc.sagemath.org/html/en/reference/modules/sage/modules/fg_pid/fgp_module.html)</sup>。

## References

1. [Smith Normal Form, Wolfram MathWorld](https://mathworld.wolfram.com/SmithNormalForm.html)
2. [Normal form (for matrices), Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Normal_form_%28for_matrices%29)
3. [Henry John Stephen Smith, Paper, 'On systems of linear indeterminate equations and congruences', Royal Society Archives](https://makingscience.royalsociety.org/items/pt_63_15/paper-on-systems-of-linear-indeterminate-equations-and-congruences-by-henry-j-john-stephen-smith)
4. [G. Havas, Smith normal form computation (technical report), University of Queensland](https://staff.itee.uq.edu.au/havas/TR0247.pdf)
5. [R. Kannan, A. Bachem (1979). Polynomial Algorithms for Computing the Smith and Hermite Normal Forms of an Integer Matrix. SIAM Journal on Computing 8(4), 499–507.](https://epubs.siam.org/doi/pdf/10.1137/0208040)
6. [G. Havas, L. S. Sterling (1979). Integer Matrices and Abelian Groups, University of Queensland](https://staff.itee.uq.edu.au/havas/1979hs.pdf)
7. [Smith normal form and Laplacians, Journal of Combinatorial Theory](https://www.sciencedirect.com/science/article/pii/S0095895608000282)
8. [S. Birmpilis, G. Labahn, A. Storjohann (2023). A fast algorithm for computing the Smith normal form with multipliers for a nonsingular integer matrix. Journal of Symbolic Computation 116, 146–182.](https://www.sciencedirect.com/science/article/pii/S0747717122000955)
9. [Homology: definition and computation (course notes), University of Florida](https://people.clas.ufl.edu/peterbubenik/files/virk2022.pdf)
10. [R. P. Stanley (2016). Smith Normal Form in Combinatorics. arXiv:1602.00166](https://arxiv.org/abs/1602.00166)
11. [A comparative study of algorithms for computing the Smith normal form of an integer matrix, International Journal of Systems Science 15 (1984), 727–744](https://explore.openaire.eu/search/publication?pid=10.1080%2F00207728408926595)
12. [M. A. Cherepnev (2017). Modular algorithm for reducing matrices to the Smith normal form. Discrete Mathematics and Applications 27(3), 143–147.](https://doi.org/10.1515/dma-2017-0018)
13. [E. Kaltofen, M. S. Krishnamoorthy, B. D. Saunders (1990). Parallel algorithms for matrix normal forms. Linear Algebra and its Applications 136, 189–208.](https://www.sciencedirect.com/science/article/pii/002437959090028B)
14. [Efficient parallelizations of Hermite and Smith normal form algorithms, Parallel Computing 35 (2009), 345–357.](https://www.sciencedirect.com/science/article/abs/pii/S016781910900026X)
15. [On Efficient Sparse Integer Matrix Smith Normal Form Computations, Journal of Symbolic Computation](https://www.sciencedirect.com/science/article/pii/S0747717101904511)
16. [Dense matrices over the integer ring, Sage 9.4 Reference Manual](https://sagemath.gitlab.io/documentation/html/en/reference/matrices/sage/matrix/matrix_integer_dense.html)
17. [Finitely generated modules over a PID, SageMath Reference](https://doc.sagemath.org/html/en/reference/modules/sage/modules/fg_pid/fgp_module.html)
18. [Homology Groups, Homology & Cohomology](https://neovand.github.io/homology/homology/homology-groups/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Symbolic and algebraic algorithms › Exact and symbolic linear algebra algorithms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/smith-normal-form

English original: https://www.edgepedia.org/smith-normal-form
