• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2025, Vol. 47 ›› Issue (06): 1050-1061.

• 软件工程 • 上一篇    下一篇

斯托克斯定理的形式化及其初步应用

刘永梅1,2,王国辉1,关永2,张景芝2,施智平1,2,董璐1   

  1. (1.首都师范大学信息工程学院,北京 100048;
    2.首都师范大学电子系统可靠性与数理交叉学科国际科技合作基地,北京 100048)
  • 收稿日期:2023-12-11 修回日期:2024-07-10 出版日期:2025-06-25 发布日期:2025-06-26
  • 基金资助:
    国家重点研发计划(2019YFB1309900);国家自然科学基金(62002246,62272322,62272323);科技创新服务能力建设-基本科研业务费(科研费)项目(00621530290000)

Formal verification of Stokes’ theorem and its applications

LIU Yongmei1,2,WANG Guohui1,GUAN Yong2,ZHANG Jingzhi2,SHI Zhiping1,2,DONG Lu1   

  1. (1.Information Engineering College,Capital Normal University,Beijing 100048;
    2.International Science and Technology Cooperation Base of Electronic System 
    Reliability and Mathematical Interdisciplinary,Capital Normal University,Beijing 100048,China)
  • Received:2023-12-11 Revised:2024-07-10 Online:2025-06-25 Published:2025-06-26

摘要: 斯托克斯定理是场论中的重要定理之一,它在流体力学、电磁学等领域都有广泛的应用。然而在实际应用中,斯托克斯定理前提条件的满足往往得不到正式的验证,这就存在一定的风险。因此,有必要对斯托克斯定理进行验证。基于斯托克斯定理的数学定义,构建其形式化模型,通过分析斯托克斯定理的数学证明过程,得出其形式化证明推导思路,根据分析、构建和验证目标,完成定理的形式化证明,最后将斯托克斯定理证明应用到管道流量设计模型的验证中。

关键词: 形式化验证, 定理证明, 斯托克斯定理, HOL Light

Abstract: Stokes’ theorem is one of the fundamental theorems in field theory, with extensive applications in fluid mechanics, electromagnetics, and other domains. However, in practical applications, the satisfaction of its prerequisite conditions is often not rigorously verified, which introduces certain risks. Therefore, it is necessary to validate Stokes’ theorem. This paper constructs a formal model of Stokes’ theorem based on its mathematical definition. By analyzing the mathematical proof process of the theorem, this paper derives the derivation methodology for its formal verification. Following the analysis, construction, and verification objectives, this paper ccompletes the formal proof of the theorem. Finally, the proven Stokes’ theorem is applied to the validation of the  pipeline flow design models.

Key words: formal verification, theorem proving, Stokes’theorem, HOL light