首页 | 官方网站   微博 | 高级检索  
     

基于Coq的分块矩阵运算的形式化
引用本文:麻莹莹,马振威,陈钢.基于Coq的分块矩阵运算的形式化[J].软件学报,2021,32(6):1882-1909.
作者姓名:麻莹莹  马振威  陈钢
作者单位:南京航空航天大学 计算机科学与技术学院, 江苏 南京 211106;上海寻梦信息技术有限公司, 上海 200051
摘    要:矩阵是工程领域中常用的一种数据结构,在深度学习领域,矩阵乘法是神经网络训练中的核心技术之一,面对大型矩阵的运算问题,分块矩阵技术可将大矩阵运算转换为小矩阵运算以实现并行运算,并且能够大幅度减少矩阵运算步骤并且提高矩阵运算速度.本文首先对目前学术界的矩阵形式化工作进行了系统总结并且分析了矩阵形式化的主要几种方法;其次介绍并完善了基于Coq记录类型的矩阵形式化方法,其中包括提出新的矩阵等价定义、对之前的形式化工作进行了整理和完善,并证明了一组新的引理;在此基础上进一步实现了分块矩阵运算的形式化,讨论了该类型的归纳证明的难点和解决方法;最终实现了矩阵与分块矩阵形式化的不同类型的基础库.

关 键 词:矩阵  形式化方法  分块矩阵  深度学习  形式化工程数学  高阶定理证明  Coq
收稿时间:2020/9/3 0:00:00
修稿时间:2020/12/19 0:00:00

Formalization of Operations of Block Matrix Based on Coq
MA Ying-Ying,MA Zhen-Wei,CHEN Gang.Formalization of Operations of Block Matrix Based on Coq[J].Journal of Software,2021,32(6):1882-1909.
Authors:MA Ying-Ying  MA Zhen-Wei  CHEN Gang
Affiliation:School of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing 211106, China;Shanghai Xun-Meng Information Technology Co. , Ltd. , Shanghai 200051, China
Abstract:Matrix is a commonly used data structure in the field of engineering. In the field of deep learning, matrix multiplication is one of the key technologies in neural network training. Faced with the problem of operations of large matrices, the block matrix technology can be used to convert large matrix operations into small matrix operations to realize parallel computation, which can greatly reduce matrix operation steps and improve the efficiency of matrix operation. Firstly, this paper systematically summarizes the current matrix formalization work in academia and analyzes the main methods of matrix formalization. Secondly, it introduces and improves the matrix formalization method based on Coq record type, which includes putting forward a new definition of matrix equivalence, sorting out and perfecting the previous formalization work and proving a new set of lemmas; then on this basis, the formalization of block matrix operations is further realized, and the difficulties and solutions of this type of inductive proof are discussed. Finally, basic libraries with different types for matrix and block matrix formalization are realized.
Keywords:matrix  formal method  block matrix  deep learning  formalized engineering mathematics  higher order theorem proving  Coq
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号