Certifying Rings of Integers in Number Fields

Anne Baanen, Alain Chavarri Villarello*, Sander R. Dahmen

*Corresponding author for this work

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

Abstract

Number fields and their rings of integers, which generalize the rational numbers and the integers, are foundational objects in number theory. There are several computer algebra systems and databases concerned with the computational aspects of these. In particular, computing the ring of integers of a given number field is one of the main tasks of computational algebraic number theory. In this paper, we describe a formalization in Lean 4 for certifying such computations. In order to accomplish this, we developed several data types amenable to computation. Moreover, many other underlying mathematical concepts and results had to be formalized, most of which are also of independent interest. These include resultants and discriminants, as well as methods for proving irreducibility of univariate polynomials over finite fields and over the rational numbers. To illustrate the feasibility of our strategy, we formally verified entries from the Number fields section of the L-functions and modular forms database (LMFDB). These concern, for several number fields, the explicitly given integral basis of the ring of integers and the discriminant. To accomplish this, we wrote SageMath code that computes the corresponding certificates and outputs a Lean proof of the statement to be verified.

Original languageEnglish
Title of host publicationCPP '25
Subtitle of host publicationProceedings of the 14th ACM SIGPLAN International Conference on Certified Programs and Proofs
EditorsKathrin Stark, Amin Timany, Sandrine Blazy, Nicolas Tabareau
PublisherAssociation for Computing Machinery, Inc
Pages50-66
Number of pages17
ISBN (Electronic)9798400713477
DOIs
Publication statusPublished - 2025
Event14th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2025, co-located with POPL 2025 - Denver, United States
Duration: 20 Jan 202521 Jan 2025

Conference

Conference14th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2025, co-located with POPL 2025
Country/TerritoryUnited States
CityDenver
Period20/01/2521/01/25

Bibliographical note

Publisher Copyright:
© 2025 Copyright held by the owner/author(s).

Keywords

  • algebraic number theory
  • formalized mathematics
  • Lean
  • Mathlib
  • tactics

Fingerprint

Dive into the research topics of 'Certifying Rings of Integers in Number Fields'. Together they form a unique fingerprint.

Cite this