Formalizing Factorization on Euclidean Domains and Abstract Euclidean Algorithms

Thaynara Arielly de Lima
(Universidade Federal de Goiás)
Andréia Borges Avelar
(Universidade de Brasília)
André Luiz Galdino
(Universidade Federal de Catalão)
Mauricio Ayala-Rincón
(Universidade de Brasília)

This paper discusses the extension of the Prototype Verification System (PVS) sub-theory for rings, part of the PVS algebra theory, with theorems related to the division algorithm for Euclidean rings and Unique Factorization Domains that are general structures where an analog of the Fundamental Theorem of Arithmetic holds. First, we formalize the general abstract notions of divisibility, prime, and irreducible elements in commutative rings, essential to deal with unique factorization domains. Then, we formalize the landmark theorem, establishing that every principal ideal domain is a unique factorization domain. Finally, we specify the theory of Euclidean domains and formally verify that the rings of integers, the Gaussian integers, and arbitrary fields are Euclidean domains. To highlight the benefits of such a general abstract discipline of formalization, we specify a Euclidean gcd algorithm for Euclidean domains and formalize its correctness. Also, we show how this correctness is inherited under adequate parameterizations for the structures of integers and Gaussian integers.

In Temur Kutsia, Daniel Ventura, David Monniaux and José F. Morales: Proceedings 18th International Workshop on Logical and Semantic Frameworks, with Applications and 10th Workshop on Horn Clauses for Verification and Synthesis (LSFA/HCVS 2023), Rome, Italy & Paris, France, 1-2 July, 2023 & 23rd April 2023 , Electronic Proceedings in Theoretical Computer Science 402, pp. 18–33.
Published: 23rd April 2024.

ArXived at: https://dx.doi.org/10.4204/EPTCS.402.5 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org