# FORM（符号操作程序）

**FORM** 是一款开源的符号操作程序，专为高效处理往往包含数百万项的极大型代数表达式而设计。<sup>[1](https://form-dev.github.io/form/index.html)</sup> 它由荷兰亚原子物理研究所 NIKHEF 的约斯·费尔马塞伦创建，在高能物理领域使用极为密集——微扰量子场论计算所产生的中间表达式，远远超出通用计算机代数系统的处理能力。<sup>[2](https://github.com/form-dev/form)</sup><sup> • </sup><sup>[3](https://www.sciencedirect.com/science/article/abs/pii/S0010465506004152)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 对超大型表达式进行符号操作，专门用于高效处理数百万项量级的表达式<sup>[2](https://github.com/form-dev/form)</sup><sup> • </sup><sup>[3](https://www.sciencedirect.com/science/article/abs/pii/S0010465506004152)</sup> |
| 起源 | 1984 年作为 Schoonschip（M. 费尔特曼编写的符号系统）的后继者开始开发；FORM 于 1989 年投入运行<sup>[4](https://www.researchgate.net/publication/323467102_FORM_development)</sup> |
| 作者 | 荷兰亚原子物理研究所 NIKHEF 的约斯·费尔马塞伦<sup>[2](https://github.com/form-dev/form)</sup> |
| 开源 | 2010 年以开源方式发布<sup>[5](https://indico.cern.ch/event/1480892/contributions/6377903/attachments/3170017/5635740/RKEllis_History.pdf)</sup> |
| 并行版本 | TFORM（POSIX 线程，共享内存）与 ParFORM（MPI，分布式内存）；双处理器 TFORM 的运行速度通常为串行 FORM 的 1.7 倍<sup>[6](https://arxiv.org/abs/hep-ph/0702279)</sup><sup> • </sup><sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup> |
| 变量上限 | 32 位处理器上符号、矢量、指标、函数与集合合计 32,768 个；64 位处理器上为 2,000,000,000 个<sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup> |
| 当前版本 | FORM 5.0.2，参考手册日期为 2026 年 9 月 15 日<sup>[8](https://form-dev.github.io/form-docs/stable/manual/)</sup><sup> • </sup><sup>[9](https://github.com/form-dev/form/wiki/Installation)</sup> |

## 历史

FORM 源自一系列粒子物理计算机代数系统。其前身 Schoonschip 由马丁努斯·费尔特曼编写，用于计算树图级反应和不超过四腿的单圈发散；到 1984 年，人们已清楚地认识到，最多六腿的自动化单圈计算将需要强大得多的工具。<sup>[10](https://www.researchgate.net/publication/326121692_New_features_of_FORM_and_future_plans)</sup> 费尔马塞伦于 1984 年启动 FORM 的开发，系统于 1989 年投入运行。<sup>[4](https://www.researchgate.net/publication/323467102_FORM_development)</sup> 它曾在一段时期内是由 Computer Algebra Netherlands 销售的商业产品，后于 2010 年开源发布。<sup>[11](https://www.researchgate.net/publication/1957449_FORM_matters_Fast_symbolic_computation_under_UNIX)</sup><sup> • </sup><sup>[5](https://indico.cern.ch/event/1480892/contributions/6377903/attachments/3170017/5635740/RKEllis_History.pdf)</sup>

2012 年发布的 4.0 版，其最重要的新功能是增加了有理多项式的操作和表达式的因式分解。<sup>[12](https://arxiv.org/abs/1203.6543)</sup> 5.0 版是一次重大发布，除旧有行为与手册相矛盾或属于实验性功能之处外，保持与 FORM 4.3.1 的兼容。<sup>[13](https://arxiv.org/abs/2601.19982)</sup> 当前稳定版本为 5.0.2。<sup>[8](https://form-dev.github.io/form-docs/stable/manual/)</sup><sup> • </sup><sup>[9](https://github.com/form-dev/form/wiki/Installation)</sup>

## 面向大型表达式的设计

FORM 的架构源自其目标问题的规模。要有效操作大型表达式，就必须把代数指令施加于一个庞大的项序列，而中间结果的庞大体量又使得一个表达式无法同时保存多个版本。因此 FORM 以非交互方式使用，程序用一种专为操作大型代数项序列而改编的特殊语言编写。<sup>[14](https://www.nikhef.nl/~form/oldsite/maindir/oldversions/FORMdistribution/publications/external/extform.pdf)</sup>

**排序操作。** 使表达式化为标准形式的主要非局部操作是排序，即把仅数值系数不同的项归并到一起。排序系统被描述为 FORM 的关键组成部分，也是其速度优于其他系统的主要原因之一。<sup>[14](https://www.nikhef.nl/~form/oldsite/maindir/oldversions/FORMdistribution/publications/external/extform.pdf)</sup><sup> • </sup><sup>[8](https://form-dev.github.io/form-docs/stable/manual/)</sup> 排序使用缓冲区和临时排序文件，其大小可由用户在配置文件中调整；在并行版本中，每个工作线程都需要自己的缓冲区，而在 TFORM 中，各工作线程分到的缓冲区大小约为主线程的 1/N。<sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup>

**项级语言。** FORM 程序主要描述对单个项而非完整表达式的处理，系统为常用代数操作提供的库很少。因此它被认为不如 Mathematica 或 Maple 这类通用计算机代数系统易用，不过超大型表达式和耗时操作往往本来就需要专用算法而非通用算法。<sup>[3](https://www.sciencedirect.com/science/article/abs/pii/S0010465506004152)</sup>

**对象与限制。** 表达式由项构成，项由若干类型的变量构成：符号、矢量、指标、函数、集合和表达式，另有作为特殊函数的张量与表、预处理变量和美元变量。<sup>[8](https://form-dev.github.io/form-docs/stable/manual/)</sup> 变量总数有限制：在 32 位处理器计算机上，符号、矢量、指标、函数和集合合计上限为 32,768 个（包括内置对象，单个类型通常限制在约 8,000 个），而在 64 位处理器上最大值定为 2,000,000,000 个。<sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup> 32 位计算机上的表最多可有 \( 2^{15} = 32768 \) 个元素；64 位计算机上上限为 \( 2^{31} \)。<sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup>

## 并行版本

FORM 有两个可同时使用多个处理器的版本，各自适合不同的机器架构。<sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup>

- **TFORM** 使用 POSIX 线程，运行在多处理器共享内存的计算机上。数据尽可能作为公共数据保存，分配任务时只有极少量的数据被复制到工作线程的私有缓冲区。对于双处理器计算机，运行时间的典型改善倍数为 1.7，四处理器时略高于 3。<sup>[6](https://arxiv.org/abs/hep-ph/0702279)</sup>
- **PARFORM** 运行在拥有独立内存、最好还有独立磁盘的处理器上。每个处理器获得完整程序的一份副本，处理器之间用 MPI 通信；它也可用于具有高速网络连接的计算机集群。它是在卡尔斯鲁厄大学开发的。<sup>[7](https://tueda.github.io/form-doc/latest/manual/)</sup>

大多数现有 FORM 程序无需修改即可利用并行版本，尽管某些情况下可能需要少量增补。<sup>[6](https://arxiv.org/abs/hep-ph/0702279)</sup>

## 在高能物理中的应用

粒子物理的精确计算依赖计算机代数工具来操作在标准模型中应用微扰论所产生的大规模代数表达式，而商业软件包对于最前沿的问题往往不够用；FORM 是一项基于社区的努力，促成了绝大多数精确计算。<sup>[15](https://indico.cern.ch/event/1439855/contributions/6461437/attachments/3045805/5381716/ESPP2025_FORM.pdf)</sup> 若干广泛使用的 FORM 软件包服务于多圈计算，包括 MINCER 和 MATAD。<sup>[14](https://www.nikhef.nl/~form/oldsite/maindir/oldversions/FORMdistribution/publications/external/extform.pdf)</sup> Forcer 程序在 FORM 内完成无质量四圈传播子图的积分。<sup>[16](https://github.com/benruijl/forcer)</sup>

FORM 也作为组件用于更大的工具链中。C 语言程序 DIANA 被设计为高阶计算的主控程序，它把 FORM 用作计算复杂表达式的子系统；QGRAF、Q2E、EXP 和 MATAD 等组合则用 Make 工具串联起来。<sup>[3](https://www.sciencedirect.com/science/article/abs/pii/S0010465506004152)</sup> 用 Python 3 编写的 tapir 工具以 FORM 语法生成符号表达式，设计上用于集成到基于 FORM 的工具链中——这种用法被描述为该领域的常见做法。<sup>[17](https://www.sciencedirect.com/science/article/pii/S0010465522002636)</sup> 基于 Mathematica 的系统也会借助 FORM 提速：HEPMath 把 FORM 用作其部分符号计算的后端，GoSam 2.0 使用 FORM 4.x 版生成优化后的 Fortran 代码，代码更紧凑，振幅求值速度约为原来的十倍。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0010465515001642)</sup><sup> • </sup><sup>[19](https://link.springer.com/article/10.1140/epjc/s10052-014-3001-5)</sup>

**图生成。** 从 5.0 版开始，FORM 配备了明治学院大学金子俊明（Toshiaki Kaneko）的费曼图生成器，并重新编写为 C++ 库。FORM 基于多年来使用 QGRAF 生成器的经验，以及 MINCER 和 Forcer 程序所遇到的大量图，围绕该库构建了自己的语法。<sup>[8](https://form-dev.github.io/form-docs/stable/manual/)</sup>

## 与其他系统的比较

FORM 把性能置于易用性之上。它是一个独立程序，有自己的输入语言，这种语言尽管灵活，却不是通用编程语言；它针对处理大型多项式表达式做了高度优化，被描述为高能物理符号计算中最成熟的工具之一。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0010465515001642)</sup> 2016 年一份关于高能物理计算的综述指出，业界一致认为 FORM 在该领域的计算机代数应用方面性能最高，同时指出它并不提供完整意义上的编程语言。<sup>[20](https://cds.cern.ch/record/2145715/files/10.1088_1742-6596_762_1_012077.pdf)</sup> 需要 Mathematica 庞大软件包生态的用户有时会将两者结合，把大型表达式交给 FORM 做繁重的代数运算。<sup>[21](https://community.wolfram.com/groups/-/m/t/3540598)</sup>

## References

1. [FORM project website](https://form-dev.github.io/form/index.html)
2. [form-dev/form, GitHub repository](https://github.com/form-dev/form)
3. [T. Kaneko et al., Extension of the functionality of the symbolic program FORM by external software, Computer Physics Communications](https://www.sciencedirect.com/science/article/abs/pii/S0010465506004152)
4. [J.A.M. Vermaseren, FORM development](https://www.researchgate.net/publication/323467102_FORM_development)
5. [R.K. Ellis, History of computer algebra codes (1989: Form, open source 2010)](https://indico.cern.ch/event/1480892/contributions/6377903/attachments/3170017/5635740/RKEllis_History.pdf)
6. [M. Tentyukov and J.A.M. Vermaseren, The Multithreaded version of FORM, arXiv:hep-ph/0702279](https://arxiv.org/abs/hep-ph/0702279)
7. [FORM version 4.2.1 Reference manual](https://tueda.github.io/form-doc/latest/manual/)
8. [FORM version 5.0.2 Reference manual](https://form-dev.github.io/form-docs/stable/manual/)
9. [Installation, form-dev/form Wiki](https://github.com/form-dev/form/wiki/Installation)
10. [J.A.M. Vermaseren, New features of FORM and future plans](https://www.researchgate.net/publication/326121692_New_features_of_FORM_and_future_plans)
11. [J.A.M. Vermaseren, FORM matters: Fast symbolic computation under UNIX](https://www.researchgate.net/publication/1957449_FORM_matters_Fast_symbolic_computation_under_UNIX)
12. [J.A.M. Vermaseren et al., FORM version 4.0, arXiv:1203.6543](https://arxiv.org/abs/1203.6543)
13. [J.A.M. Vermaseren et al., FORM Version 5.0, arXiv:2601.19982](https://arxiv.org/abs/2601.19982)
14. [J.A.M. Vermaseren, FORM matters (extended version, NIKHEF)](https://www.nikhef.nl/~form/oldsite/maindir/oldversions/FORMdistribution/publications/external/extform.pdf)
15. [Computer Algebra for Precision Calculations in Particle Physics: the FORM project, ESPP 2025](https://indico.cern.ch/event/1439855/contributions/6461437/attachments/3045805/5381716/ESPP2025_FORM.pdf)
16. [Forcer: A FORM program for the integration of four-loop massless propagator diagrams](https://github.com/benruijl/forcer)
17. [tapir: A tool for topologies, amplitudes, partial fraction decomposition and input for reductions, Computer Physics Communications](https://www.sciencedirect.com/science/article/pii/S0010465522002636)
18. [HEPMath 1.4: A Mathematica package for semi-automatic computations in high energy physics](https://www.sciencedirect.com/science/article/abs/pii/S0010465515001642)
19. [GoSam-2.0: a tool for automated one-loop calculations, European Physical Journal C](https://link.springer.com/article/10.1140/epjc/s10052-014-3001-5)
20. [V. Smirnov et al., Journal of Physics: Conference Series (computing in HEP)](https://cds.cern.ch/record/2145715/files/10.1088_1742-6596_762_1_012077.pdf)
21. [L. Fekésházy, How to handle big expressions in Mathematica, Wolfram Community](https://community.wolfram.com/groups/-/m/t/3540598)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/form-symbolic-manipulation-system

English original: https://www.edgepedia.org/form-symbolic-manipulation-system
