A Formalization of Divided Powers in Lean
Abstract
Given an ideal in a commutative ring , a divided power structure on is a collection of maps , subject to axioms that imply that it behaves like the family , but which can be defined even when division by factorials is not possible in . Divided power structures have important applications in diverse areas of mathematics, including algebraic topology, number theory and algebraic geometry.
In this article we describe a formalization in Lean 4 of the basic theory of divided power structures, including divided power morphisms and sub-divided power ideals, and we provide several fundamental constructions, in particular quotients and sums. This constitutes the first formalization of this theory in any theorem prover.
As a prerequisite of general interest, we expand the formalized theory of multivariate power series rings, endowing them with a topology and defining evaluation and substitution of power series.
Keywords and phrases:
Formal mathematics, algebraic number theory, commutative algebra, divided powers, Lean, MathlibFunding:
Antoine Chambert-Loir: The author acknowledges the support of the APRAPRAM Émergence project of Université Paris Cité.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Logic and verification ; Theory of computation Type theorySupplementary Material:
Software: https://github.com/mariainesdff/divided_powers_journalarchived at
swh:1:dir:dbd70e92627946efabd660acabde201b027339e7
Acknowledgements:
We are grateful to Kevin Buzzard for suggesting this project and for his ongoing support during its completion. We would also like to thank Anatole Dedecker, Floris van Doorn and Bhavik Mehta for interesting discussions about the project. Finally, we thank the Mathlib community and reviewers for useful feedback on our contributions to the library.Funding:
This work was started during the ICERM workshop “Lean for the Curious Mathematician 2022”, funded by the US National Science Foundation under Grant No. DMS-1929284.Editors:
Yannick Forster and Chantal KellerSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The theory of divided powers, invented by Cartan in [3], grew out of the observation that there are algebraic contexts where one can make sense of ratios of the form , even though division by integers such as is not a priori possible in an arbitrary ring. Cartan also found out the relevant functional equations satisfied by these ratios.
The context of Cartan’s work is algebraic topology. In [3], the elements are classes of even degree in a graded commutative Eilenberg–Maclane algebra. While such algebras are not commutative, the part where the divided powers take place is essentially commutative, and the theory has not been elaborated further for noncommutative rings. On the other hand, the case of commutative rings has been the object of a detailed inquiry, starting from the works of Roby [14, 15, 16]. For this reason, here we only consider commutative rings.
In the 1960s, under the impulse of Grothendieck, algebraic geometers tried to understand the relations between the various cohomology theories that could be defined on algebraic varieties. It was soon observed that the “algebraic de Rham cohomology” led to technical difficulties, essentially because the primitive of a polynomial is given by the expression , which involves integer denominators. One of the suggestions made by Grothendieck was to work, not with polynomials, but in a “divided power algebra”, in which all ratios make sense. This suggestion was followed by Berthelot [1] for his development of crystalline cohomology.
Despite their complexity, crystalline cohomology and subsequent -adic cohomologies are fundamental to modern arithmetic geometry. In particular, they are one of the multiple tools used by Wiles and his collaborators in the proof of Fermat’s Last Theorem. The present formalization of divided powers is thus one step in the formalization of this theorem (see Section 4.2.3 for more technical details).
In this article we formalize in Lean 4 the basic theory of divided power rings, divided power morphisms and sub-divided power ideals. We also provide several constructions of divided powers, including quotients and sums. To the authors’ knowledge, this is the first formalization of the theory of divided powers in any theorem prover.
As a prerequisite, which has applications far beyond the scope of this project, we formalize the topological theory of multivariate power series rings and make it possible to evaluate and substitute power series.
Our work constitutes the first formalization of these topological aspects of multivariate power series, but related work exists in several theorem provers. The ring of multivariate power series (as an abstract ring) has been formalized in Mizar [17], while the topological ring of univariate power series has been formalized in Isabelle/HOL [4]. In Rocq, a formalization of the abstract ring of univariate power series is available in the UniMath library [13], and a separate implementation built over the MathComp library is described in [10]. Note that none of these include a formalization of evaluation or substitution of univariate or multivariate formal power series.
1.1 Lean and Mathlib
This formalization project uses the theorem prover Lean [9, 12] and builds over Lean’s mathematical library Mathlib [11], which was ported to the latest version of the language (Lean 4) in 2023. While the project started in Lean 3 and the first Mathlib contributions from it were made to Mathlib3, after the library port we translated our existing work to Lean 4 and used the latter version for the rest of the development.
Throughout the text, we use the clickable symbol to link to the source code for the formalization. The original work described in this article comprises about 8,000 lines of code, of which approximately 5,000 have been merged into Mathlib; the rest of our code can be found in the public GitHub repository mariainesdff/divided_powers_journal . We keep a record of past and ongoing contributions to Mathlib arising from this work in the Lean prover community project “Divided Powers” .
1.2 Paper Outline
In §2, we describe the general theory of divided power structures: after introducing the definition and some key examples, we treat divided power morphisms in §2.3, sub-divided power ideals in §2.4, and divided powers on quotient rings in §2.5. §3 is devoted to the formalization of the module of exponential power series: in §3.1 and §3.2 we describe the topological theory of multivariate power series rings, which is needed in §3.3 to define evaluation and substitution operations and in §3.4 to describe the exponential module, which is later used in §3.5 to define divided powers on sums of ideals. Finally, we conclude with some implementation remarks in §4.1 and a description of future work in §4.2.
2 Divided Power Structures
2.1 Definition
Definition 1 ([2, Definition 3.1]).
Let be an ideal in a commutative ring . A divided power structure on is a family of maps for such that
-
(i)
, .
-
(ii)
, .
-
(iii)
.
-
(iv)
.
-
(v)
.
-
(vi)
.
-
(vii)
.
If is an ideal equipped with a divided power structure, we say that has divided powers, that is a divided power ideal, and that is a divided power ring or a divided power algebra.
When is a -algebra, one may set for all and these axioms are easy to check. In particular, axiom (iv) is a version of the binomial theorem without binomial coefficients.
Remark 2.
The fraction appearing in condition (vii) is a natural number for all ; we formalize this definition as Nat.uniformBell222The terminology comes from that of Bell numbers in combinatorics, which represent the number of partitions of a set of given cardinality; here, we fix one particular partition type. . This quantity has a combinatorial significance: it counts the number of ways to divide a set with elements into groups of -element subsets.
We formalize Definition 1 as a structure DividedPowers (see Listing 1), where the field dpow represents the family of functions . Note that, instead of defining dpow as a function , we define it as a function and impose in the field dpow_null the condition that this map is zero outside the ideal (see §4.1.1 for a discussion of this choice).
In our formalized definition, we only require to be a commutative semiring instead of a commutative ring; that is, we do not assume that has a negation operator. However, as mentioned in the introduction, it does not seem that a general, and relevant, definition of divided powers has been given in the noncommutative setting, so we do not relax the commutativity hypothesis.
2.2 Examples of Divided Power Structures
We formalized several examples of divided power structures, starting with the trivial one.
Example 3.
We next consider several ideals for which the family is a divided power structure. We start by making the definition OfInvertibleFactorial.dpow , where we represent by Ring.inverse (n ! : A) * x ^ n. Note that Ring.inverse is defined for any ring as the function sending x : A to its inverse, if it exists, or to , otherwise. Hence we can write down this definition without any extra hypothesis on or . However, for it to define a divided power structure, some extra conditions are required.
Example 4.
Another sufficient condition for to be a divided power structure on an ideal is the existence of a natural number such that is invertible in and . We call this divided power structure OfInvertibleFactorial.dividedPowers .
In particular, we can specialize this definition to obtain three interesting examples.
Examples 5.
- 1.
- 2.
-
3.
Recall that the characteristic of is the smallest positive natural number such that copies of add up to , if such a number exists, or zero otherwise. If the characteristic of is a prime number and , then is a divided power structure on . This follows as a special case of the previous example, since the characteristic of a ring is a nilpotent element .
Finally, we consider an example which is of key importance in number theory. For each prime number , we can define a -adic absolute value on the rational numbers; the completion of with respect to this absolute value is the field of -adic numbers. The subring of consisting of elements with absolute value at most one is the ring of -adic integers. The ring has a unique maximal ideal, generated by ; this ideal consists of the elements of absolute value strictly smaller than one.
Example 6.
The family is a divided power structure on the -ideal . The key part of the proof is to show that, for every and every nonzero , the fraction has -adic absolute value less than one, and hence belongs to the ideal . Then, the verification of the axioms of a divided power structure can be checked in , and they follow from Example 4 since is a -algebra.
We formalize Example 6 as a special case of a more general construction: if is a ring homomorphism and is an -ideal such that and such that for all , then induces a divided power structure on .
2.3 Divided Power Morphisms
Let and be two divided power rings.
Definition 7 ([2, §3]).
A divided power morphism is a ring homomorphism such that and for all .
We provide two formalized versions of this definition: a propositional one, which we call IsDPMorphism , as well as a bundled version DPMorphism which contains both the map and the properties it must satisfy.
While the unbundled definition is more convenient to develop the basic theory of divided power morphisms, we anticipate that the bundled version will be useful for future work towards formalizing the crystalline site, so we provide it as well.
We formalize several fundamental results about divided power morphisms, including the following propositions.
Proposition 8 ([15, Proposition 2]).
Proposition 9 ([15, Proposition 3]).
Corollary 10.
Let be a generating set for the ideal , and let be a second divided power structure on . If for all and , then .
Proof.
Apply Proposition 9 with being the identity map on and .
2.4 Sub-Divided Power Ideals
Definition 11.
Let be a divided power ideal of . A subideal is called a sub-divided power ideal, or sub-dp-ideal of if for all .
As we did for divided power morphisms, we provide an unbundled and a bundled version of this definition, respectively called IsSubDPIdeal and SubDPIdeal .
If is a sub-dp-ideal of , the family of maps obtained by restricting to is a divided power structure on .
The next three lemmas can be used to determine whether certain ideals in are sub-dp-ideals of . If is any ideal in , it is not always the case that the intersection is a sub-dp-ideal; indeed, this requires the divided power structure on to satisfy the following compatibility condition modulo .
Lemma 12.
Lemma 13.
Let be a subset and let be the ideal generated by . Then is a sub-dp-ideal of if and only if for all and all , belongs to .
Proof.
Necessity is obvious. The converse direction is shown by an induction argument on the generating set. See [2, Lemma 3.6] for a detailed proof and span_isSubDPIdeal_iff for our formalization.
Lemma 14 ([1, Proposition 1.6.1.(i)]).
Next, we show that sub-dp-ideals of form a complete lattice with respect to inclusion, which we register as an instance . Note that this is only possible by using the bundled version of the definition of sub-dp-ideal.
In order to provide this instance, we first show that sub-ideals of form a complete lattice ; combining this with the fact that the forgetful function sending a sub-dp-ideal of to regarded as a sub-ideal is injective, we can then apply Mathlib’s Function.Injective.completeLattice to conclude our desired result.
The lattice of sub-ideals of is clearly bounded, with top element and bot element . Recall that the supremum of two sub-ideals and of is equal to their sum , and their infimum is their intersection . After proving that sub-ideals form a complete lattice, to be able to carry out the outlined strategy we need to show that, if and are sub-dp-ideals of , then so are these constructions (as well as the analogous claims for arbitrary families of sub-ideals). For instance, we prove in isSubDPIdeal_sup that the sum of two sub-dp-ideals is again a sub-dp-ideal, and in isSubDPIdeal_iSup the analogous statement for an indexed collection of sub-dp-ideals.
Note that there is a subtlety in defining the class instance InfSet (SubDPIdeal hI) for the infimum of a set of sub-dp-ideals of : instead of simply defining the underlying set as the intersection , we need to define it as , so that when the set is empty, this yields the desired result that the infimum is (instead of the whole ring ). We also study the relation between divided power morphisms and sub-dp-ideals.
Lemma 15.
Finally, we wish to highlight a construction that will be useful for the formalization of the universal divided power algebra (see §4.2). Given a subset , we define SubDPIdeal.span as the smallest sub-dp-ideal of that contains . We prove that this ideal is spanned by the family for and .
2.5 Divided Powers on Quotients
In this section we discuss the existence and uniqueness of divided power structures on quotient rings, following [2, Lemma 3.5]. Let be a divided power ring and let be any ideal of . We denote by the ideal generated by the image of in the quotient ring .
If there is a divided power structure on such that the quotient map is a divided power morphism, then is a sub-dp-ideal of (see Listing 2).
Conversely, if is a sub-dp-ideal of , then there is a unique induced divided power structure on such that the quotient map is a divided power morphism . Note that we actually formalize this statement in the more general setting333We mean “more general setting” in the type-theoretic sense. Mathematically, both are equivalent. of a surjective ring homomorphism such that is a sub-dp-ideal of , and then specialize the result to the quotient map . Given such an , the divided power structure on is defined by sending to ; note that by surjectivity of , this is a function . We check that is the unique divided power structure on such that the map is a divided power morphism from to .
3 The Exponential Module
3.1 The Topology on the Multivariate Power Series Ring
Let be a commutative ring and let be a set; we consider the ring of multivariate power series with coefficients in and indeterminates indexed by , and its subring of polynomials. For clarity, one often writes for the indeterminate corresponding to . When , say, a more classical notation would be for power series in , and for polynomials.
Monomials, i.e., finite products of indeterminates, can be realized as functions with finite support from to , and a power series in is nothing but a function from to , where is the set of monomials. For , one writes for the finite product . We write for the coefficient of a monomial in . Polynomials correspond to those power series for which all but finitely many coefficients are zero; then is the finite sum . When is a power series, this sum is infinite, and hence it has no meaning a priori.
The Mathlib library provides the definition of multivariate and univariate power series rings, and develops some of their algebraic theory. However, before our work, the topological theory of power series rings was missing from the library.
If has a topology, the ring is naturally induced with the product topology. In particular, a sequence of power series converges to a power series if and only if for each monomial , the sequence converges to .
The product topology on the multivariate power series ring is not declared as a global instance because there are other topologies that one might want to consider on this ring; for example, if is a normed ring, the supremum of the norm of the coefficients induces a topology on that is finer than the product topology. Consequently, we declare this product topology as a scoped instance that can be loaded by writing the instruction open scoped MvPowerSeries.WithPiTopology.
Note that, while in mathematical practice one typically considers the case where is a ring, the above definition only assumes that is a topological space. If is a topological ring, meaning that the topology of is such that the addition and multiplication are continuous, then the product topology makes a topological ring as well . The analogous statement holds when is a topological semiring .
If is a Hausdorff topological space, then is Hausdorff . Hence, in this setting, we obtain for every power series the equality , where the right hand side is well-defined as a summable family .
3.2 Linear Topologies on Multivariate Power Series Rings
Some ring topologies which are relevant in algebra have the particular property of being linear, meaning that zero has a basis of open neighborhoods consisting of two-sided ideals.
More generally, a topology on a left -module is said to be linear if the open left -submodules of form a basis of neighborhoods of zero. We formalize this as a typeclass IsLinearTopology .
We show that the topology on the ring is linear (i.e., there is a basis of open neighborhoods of zero consisting of two-sided ideals) if and only if it is linear both when is regarded as an -module and as an -module, where denotes the multiplicative opposite of .
Considering this equivalence, instead of providing a special spelling for the property that the topology on the ring is linear, we write this in Lean as
If the topology on is linear, is an open ideal of and is a monomial, then the set of power series such that for all monomials is an ideal of . When runs over all open ideals of and runs over all monomials, this gives a basis of open neighborhoods of in . In other words, the topology on is linear as well . In particular, this applies when is endowed with the discrete topology.
3.3 Evaluation and Substitution of Multivariate Power Series
Let be a topological commutative -algebra whose topology is linear. For any , one can evaluate polynomials at . This gives a ring morphism . Contrary to what happens for polynomials, power series cannot always be evaluated at every point, at least if one wishes for good continuity properties. However, if in along the filter of cofinite subsets, and if for every , the sequence converges to (one says that is topologically nilpotent), then is uniformly continuous, and extends uniquely to a continuous morphism from to .
We provide the definition MvPowerSeries.aeval to evaluate a multivariate power series at a point . This agrees with the evaluation of as a polynomial whenever . Otherwise, it is defined by density from polynomials; its values are irrelevant unless the algebra map is continuous and satisfies the two conditions bundled in MvPowerSeries.HasEval b. The function MvPowerSeries.aeval is an -algebra map, whose underlying function and ring homomorphism are denoted MvPowerSeries.eval₂ and MvPowerSeries.eval₂Hom , respectively (see Listing 4).
We specialize our work to provide a corresponding PowerSeries.aeval definition for evaluation of univariate power series.
Under certain conditions, it is possible to substitute multivariate power series within other power series. This is a special case of evaluation of power series, in which the ground ring is given the discrete topology. Indeed, let be a set and consider a map that assigns to each indeterminate in a power series in . Provided that the constant coefficient of is nilpotent for each , and that in along the filter of cofinite subsets, then we can substitute into a power series . We record these conditions in a structure MvPowerSeries.HasSubst .
Note that if the set is finite, to check that can be substituted into , it is enough to check the nilpotency condition on the coefficients . This is in particular true if the constant coefficients of the are zero , which is often the case in practical applications.
Substitution of multivariate power series is then defined in MvPowerSeries.subst . As happened with the evaluation, the substitution is only well defined for maps satisfying HasSubst b. We provide an extensive API to work with this definition, describing its compatibility with multiple algebraic operations and providing formulas for the coefficients of the substitution. We also provide the specialization of this definition to the case where is a univariate power series .
3.4 The Exponential Module
Let be a ring. A power series in one indeterminate is said to be of exponential type if and if, substituting for in , one has the functional relation . We formalize this definition as a structure IsExponential .
Let be the set of power series of exponential type. For , one has . Moreover, for every and every , the rescaled power series also belongs to . Because of that, the set is an -module: the addition law of the module is the product of power series, and the external law is given by rescaling.
There is a subtlety to consider in the formalization of the definition of . The functional equation satisfied by an exponential power series relates an additive expression to a multiplicative one, so its formalization requires combining additive and multiplicative structures. Mathlib provides the definition Additive to deal with the required conversion: if M is a type that carries a multiplicative structure, then Additive M is a new type in bijection with M that carries the corresponding additive structure. The bijection ofMul : M → Additive M satisfies ofMul(x * y) = ofMul x + ofMul y for all x y : M; its inverse is called toMul.
We formalize the definition of as an additive submonoid of the type Additive , which we call ExponentialModule A . The underlying set of this submonoid consists of the terms f : Additive such that the corresponding power series toMul f : is exponential.
The instances instAddCommGroup and instModule show that ExponentialModule A is both a commutative additive group and an -module. We also prove that if is an exponential power series, then is invertible , and its inverse, given by the power series , is also of exponential type .
If is a divided power ideal, then for every , the power series is of exponential type . To give an intuitive explanation for this property, recall that for every real number , is given by the power series . Moreover, the functional equation of the exponential function implies that . In the algebraic setting, divided powers emulate the functions and the proof that is of exponential type is established by manipulations of formal power series completely similar to those that establish the functional equation of the exponential power series in analysis. The map from to is a morphism of -modules .
3.5 Application: Divided Powers on a Sum of Ideals
If and are two divided power -ideals with divided powers that agree on , then the ideal has a unique divided power structure extending those on and . The starting point for the construction of this divided power structure is the construction of the linear map that extends the two linear maps and associated with the divided power structures on these ideals.
In order to formalize this definition, we first formalize the more general construction LinearMap.onSup , which given two -submodules of an -module , and two -linear maps and that agree on , is the unique -linear map that simultaneously extends and .
The divided power structure on is then defined by extending IdealAdd.exp’_linearMap by zero .
This furnishes the divided power map and also takes care of the axioms (i-v) of Definition 1. The verification of the two remaining axioms is essentially formal. For axiom (vii), it requires to check a combinatorial property which is itself proved using the theory of divided powers on the -algebra of polynomials .
4 Discussion
4.1 Remarks about the Implementation
4.1.1 The Type of the dpow Map
In Definition 1, a divided power structure on an ideal of a ring is a family of maps satisfying properties (i) through (vii). The most literal representation of this family in Lean would be as a function dpow : ℕ → I → A. However, in the structure DividedPowers, we instead chose to represent this family as a map dpow : ℕ → A → A satisfying (i) through (vii) plus the condition that dpow n x = 0 for all and all .
By opting for the second definition, we avoid having to provide explicit conversions between types. For example, to define divided powers on the sum of two ideals and of , we need to impose the following compatibility condition on the elements of the intersection of these ideals.
If dpow were instead defined as a map ℕ → I → A, this would have to be rewritten as
where haI and haJ are proofs that belongs to the ideals and , respectively.
4.1.2 Divided Powers on Sums of Ideals
If and are two divided power ideals of a ring such that and coincide on , the construction of the divided power map on combines the two -linear maps and to a linear map on .
This approach, while mathematically satisfying, posed several difficulties:
-
The most important one was the necessity of formalizing the construction of the exponential module , to define evaluation and substitution of power series. Despite its length, this detour brings a worthwhile addition to the Mathlib library.
-
A third one is that this construction only defines the divided power map on the ideal , and one still has to extend it by .
In a first implementation, our construction of the divided power structure on the sum of two ideals had been more elementary. It consisted in proving that for and , the expression only depends on ; call it . Since any element of can be decomposed in this manner, this defines a function on , and it remains to prove that the axioms of a divided power structure are satisfied.
4.1.3 Evaluation and Substitution of Power Series
Recall that the evaluation of a power series at a point is only mathematically relevant when satisfies the conditions recorded in the structure MvPowerSeries.HasEval (see Listing 3).
However, to formalize the evaluation in Lean, it is more practical to extend it to all by providing “dummy” values outside the relevant domain of definition. As usual, we choose the value zero, except when f is (the coercion of) a polynomial, in which case we can provide the natural evaluation of that polynomial. Since substitution of power series is a special case of evaluation, the same remark applies.
The downside is that the function thus obtained has weak algebraic properties, and this makes the verification of functional equations somewhat complicated. For instance, when proving theorems that involve nested substitutions, one needs to check that the HasSubst condition is satisfied for all relevant power series. Since these verifications are often mathematically obvious, and performed in a similar way, it would be interesting to implement tactics that automate these tasks.
4.1.4 Inverting Factorials
We showed in Section 2.2 that, whenever is an ideal in a commutative ring and is a natural number such that is invertible in and , the family is a divided power structure on . This is true in particular in the three cases described in Examples 5.
The proofs of these examples require to manipulate inverses of factorial elements. For instance, an intermediate step in the proof of dpow_mul_of_add_lt is to check that the following equality holds in A:
In this situation, , and are all invertible in , so an easy algebraic manipulation yields the following equivalent equality.
However, currently this manipulation has to be performed manually. It would be useful to implement a tactic that can remove uses of Ring.inverse as in the example above (creating side goals to prove the required invertibility hypotheses). The resulting expressions could then, at least in certain cases, be further simplified by using tactics like ring (which does not deal with inversion) or norm_cast.
4.2 Future Work
4.2.1 Divided Powers on Discrete Valuation Rings
Example 6 can be generalized to construct divided powers on discrete valuation rings. Indeed, let be a discrete valuation ring of mixed characteristic and uniformizer and write , where is a unit and . Then the ideal has divided powers if and only if [2, §3, Examples 3]. This result relies on the theory of extensions of valuations to ring extensions, which has been formalized in [8] but is not yet available in Mathlib.
4.2.2 The Divided Power Envelope
If is a divided power ring and is an ideal in an -algebra such that , then there exists a divided power -algebra, called the divided power envelope of relative to and denoted by , with the following universal property: for every divided power morphism , there is a one-to-one correspondence between ring homomorphisms that map into and -linear divided power morphisms [2, Theorem 3.19].
The construction of the divided power envelope relies on a second universal construction, called the universal divided power algebra [14, 15]. When is a module over a ring , the universal divided power algebra of is a graded ring , together with an -linear map , whose augmentation ideal has a divided power structure, and which is universal for these properties.
The construction of as a plain graded algebra, together with the map , is relatively straightforward, but it is a difficult theorem of Roby [15] that the augmentation ideal has divided powers. In fact, we discovered a gap in his proof during the formalization process. However, the ideas of that paper suggest an alternative argument, which is explained in the appendix of [2] and which we, incidentally, rediscovered independently, see [5].
We plan to conclude the formalization of this construction and that of the envelope in the forthcoming months. Note that the complete informal proof of the existence of these universal objects expands dozens of pages, with most of the work devoted to showing that the universal divided power algebra of a free module has free graded components.
4.2.3 The Rings of -adic Periods
Once the divided power envelope has been formalized, we will use it to formalize the construction of the Fontaine period ring . The definition of this ring is highly technical, and it involves several steps which include defining the -adic complex numbers [7], taking a ring of Witt vectors [6] and constructing the divided power envelope with respect to a certain ring homomorphism.
Fontaine period rings, including , are a fundamental tool in -adic Hodge theory, an active area of research in number theory devoted to the study of -adic Galois representations. Besides being used to detect interesting properties of representations, these period rings are also prominently used in comparison theorems between different cohomology theories; for instance, the ring is used in a comparison theorem between étale cohomology and crystalline cohomology of -adic varieties. Hence, the formalization of these rings will open the door to formalizing key research in number theory and algebraic geometry.
In particular, as mentioned in the introduction, the work described in this paper is a prerequisite for the formalization of a complete proof of Fermat’s Last Theorem. More concretely, this proof relies on an “” isomorphism between two deformations rings, where the ring corresponds to crystalline deformations of a given mod -representation.
The ring is used to identify crystalline representations; hence, while the formalization of the full theory of crystalline cohomology is not required for the proof of Fermat’s Last Theorem, the formalization of the divided power envelope certainly is.
References
- [1] Pierre Berthelot. Cohomologie cristalline des schémas de caractéristique , volume 407 of Lectures Notes in Mathematics. Springer-Verlag, 1974. doi:10.1007/BFb0068636.
- [2] Pierre Berthelot and Arthur Ogus. Notes on crystalline cohomology, volume 21 of Mathematical Notes. Princeton University Press, 1978. URL: http://www.jstor.org/stable/j.ctt130hk6f.
- [3] Henri Cartan. Puissances divisées. In Séminaire Henri Cartan, volume 7, pages 1–11, 1954-1955. URL: http://www.numdam.org/item/SHC_1954-1955__7_1_A7_0.pdf.
- [4] Amine Chaieb. Formal Power Series. Journal of Automated Reasoning, 47(3):291–318, 2011. doi:10.1007/s10817-010-9195-9.
- [5] Antoine Chambert-Loir and María Inés de Frutos-Fernández. Formalizing the divided power envelope in Lean. Big proof: formalizing mathematics at scale, 2025. URL: https://www.newton.ac.uk/seminar/46704/.
- [6] Johan Commelin and Robert Y. Lewis. Formalizing the Ring of Witt Vectors. In Proceedings of the 10th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2021, pages 264–277, New York, NY, USA, 2021. Association for Computing Machinery. doi:10.1145/3437992.3439919.
- [7] María Inés de Frutos-Fernández. Formalizing Norm Extensions and Applications to Number Theory. In Adam Naumowicz and René Thiemann, editors, 14th International Conference on Interactive Theorem Proving (ITP 2023), volume 268 of Leibniz International Proceedings in Informatics (LIPIcs), pages 13:1–13:18, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ITP.2023.13.
- [8] María Inés de Frutos-Fernández and Filippo Alberto Edoardo Nuccio Mortarino Majno di Capriglio. A Formalization of Complete Discrete Valuation Rings and Local Fields. In Proceedings of the 13th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2024, pages 190–204, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3636501.3636942.
- [9] Leonardo de Moura, Soonho Kong, Jeremy Avigad, Floris van Doorn, and Jakob von Raumer. The Lean Theorem Prover (System Description). In Amy P. Felty and Aart Middeldorp, editors, Automated Deduction - CADE-25, volume 9195 of Lecture Notes in Computer Science, pages 378–388, Cham, 2015. Springer International Publishing. doi:10.1007/978-3-319-21401-6_26.
- [10] Florent Hivert. Machine Checked Proofs and Programs in Algebraic Combinatorics. In Proceedings of the 14th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2025, pages 214–230, New York, NY, USA, 2025. Association for Computing Machinery. doi:10.1145/3703595.3705885.
- [11] The mathlib Community. The Lean Mathematical Library. In Jasmin Blanchette and Cătălin Hriţcu, editors, Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2020, pages 367–381, New York, NY, USA, 2020. Association for Computing Machinery. doi:10.1145/3372885.3373824.
- [12] Leonardo de Moura and Sebastian Ullrich. The Lean 4 Theorem Prover and Programming Language. In André Platzer and Geoff Sutcliffe, editors, Automated Deduction – CADE 28, pages 625–635, Cham, 2021. Springer International Publishing. doi:10.1007/978-3-030-79876-5_37.
- [13] Álvaro Pelayo, Vladimir Voevodsky, and Michael A. Warren. A univalent formalization of the p-adic numbers. Mathematical Structures in Computer Science, 25(5):1147–1171, 2015. doi:10.1017/S0960129514000541.
- [14] Norbert Roby. Lois polynomes et lois formelles en théorie des modules. Annales scientifiques de l’École normale supérieure, 80(3):213–348, 1963. doi:10.24033/asens.1124.
- [15] Norbert Roby. Les algèbres à puissances divisées. Bulletin des Sciences Mathématiques, 89:75–92, 1965.
- [16] Norbert Roby. Sur l’algèbre des puissances divisées d’un module et le module de ses différentielles. Annales scientifiques de l’École normale supérieure, 83(2):75–89, 1966. doi:10.24033/asens.1148.
- [17] Piotr Rudnicki, Christoph Schwarzweller, and Andrzej Trybulec. Commutative Algebra in the Mizar System. Journal of Symbolic Computation, 32(1):143–169, 2001. doi:10.1006/jsco.2001.0456.
