• Aucun résultat trouvé

On FGLM Algorithms with Tate Algebras

N/A
N/A
Protected

Academic year: 2021

Partager "On FGLM Algorithms with Tate Algebras"

Copied!
10
0
0

Texte intégral

(1)

HAL Id: hal-03133590

https://hal.archives-ouvertes.fr/hal-03133590

Submitted on 8 Feb 2021

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

On FGLM Algorithms with Tate Algebras

Xavier Caruso, Tristan Vaccon, Thibaut Verron

To cite this version:

Xavier Caruso, Tristan Vaccon, Thibaut Verron. On FGLM Algorithms with Tate Algebras. Inter-

national Symposium on Symbolic and Algebraic Computation - ISSAC 2021, Jul 2021, Virtual event,

Russia. �hal-03133590�

(2)

On FGLM Algorithms with Tate Algebras

Xavier Caruso

Université de Bordeaux, CNRS, INRIA

Bordeaux, France [email protected]

Tristan Vaccon

Université de Limoges; CNRS, XLIM UMR 7252

Limoges, France [email protected]

Thibaut Verron

Johannes Kepler University, Institute for Algebra

Linz, Austria [email protected]

ABSTRACT

Tate introduced in [Ta71] the notion of Tate algebras to serve, in the context of analytic geometry over the𝑝-adics, as a counterpart of polynomial algebras in classical algebraic geometry. In [CVV19, CVV20] the formalism of Gröbner bases over Tate algebras has been introduced and advanced signature-based algorithms have been proposed. In the present article, we extend the FGLM algo- rithm of [FGLM93] to Tate algebras. Beyond allowing for fast change of ordering, this strategy has two other important benefits. First, it provides an efficient algorithm for changing the radii of conver- gence which, in particular, makes effective the bridge between the polynomial setting and the Tate setting and may help in speeding up the computation of Gröbner basis over Tate algebras. Second, it gives the foundations for designing a fast algorithm for interre- duction, which could serve as basic primitive in our previous algo- rithms and accelerate them significantly.

CCS CONCEPTS

•Computing methodologies→Algebraic algorithms.

KEYWORDS

Algorithms, Gröbner bases, Tate algebra, FGLM algorithm,𝑝-adic precision

ACM Reference Format:

Xavier Caruso, Tristan Vaccon, and Thibaut Verron. 2021. On FGLM Algo- rithms with Tate Algebras. In.ACM, New York, NY, USA, 9 pages.

1 INTRODUCTION

Lying at the intersection of geometry and number theory, one finds 𝑝-adic geometry. A paramount part of this theory is the study of 𝑝-adic analytic varieties, first defined by Tate in [Ta71] (see also [FP04]). They have played a key role in many developments of number theory (e.g.𝑝-adic cohomologies [LS07],𝑝-adic modular forms [Go88]). The main algebraic objects upon which Tate’s ge- ometry is built are Tate algebras and their ideals, formed of conver- gent multivariate power series over a complete discrete valuation field𝐾(e.g.𝐾=Q𝑝).

This work was supported by the ANR project CLap–CLap (ANR-18-CE40-0026-01).

T. Verron was supported by the Austrian FWF grant P31571-N32.

Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored.

For all other uses, contact the owner/author(s).

Conference’21, July 2021, Washington, DC, USA

© 2021 Copyright held by the owner/author(s).

In earlier papers [CVV19, CVV20], the authors showed that it is possible to define and compute Gröbner bases of Tate ideals with coefficients inZ𝑝 orQ𝑝, and that the definitions are compatible with the usual theory on polynomials over the residue fieldF𝑝or over the coefficient ring. A major limitation of the algorithms is the increasing cost of reductions as the precision grows. Our previous paper [CVV20] addresses the case of expensive reductions to zero, through the use of signature algorithms, but computing the result of non-trivial reductions remains expensive. Another question left open was whether it is possible to exploit overconvergence prop- erties, namely the knowledge that the series we are working with satisfy a stronger convergence condition.

In the present paper, we adapt the classical FGLM algorithm to the case of Tate series, and we show that it gives answers to both questions, in the case of zero-dimensional ideals. Precisely, we prove the following theorem.

Theorem 1.1. Let𝐾{X; r}1 and𝐾{X; u}be two Tate algebras with𝐾{X; r} ⊂𝐾{X; u}.

There exists an algorithm that takes as input a reduced Gröbner basis𝐺of a0-dimensional ideal𝐼of𝐾{X; r}with respect to a given monomial ordering and output a Gröbner basis of the ideal𝐼·𝐾{X; u}

of𝐾{X; u}for another given monomial ordering.

Moreover, if𝑛denotes the number of variables, if𝛿is the dimen- sion of the quotient𝐾{X; r}/𝐼 and ifprecis the precision at which the result is output, the complexity of this algorithm is:

•𝑂˜(𝑛𝛿3prec)operations in the base field𝐾for a general𝐾,

•𝑂˜(𝑛𝛿3prec·log𝑝)bit operations when𝐾=Q𝑝.

We underline that, although the classical FGLM algorithm only concerns change of ordering, our version also permits to change the radii of convergence of the underlying Tate algebra (namely the parametersrandu), and then provides efficient tools for deal- ing with the aforementioned overconvergence situation. In the ex- treme case whereris infinite, it makes effective the bridge between polynomials and Tate series, that is between classical algebraic ge- ometry and rigid geometry. On a different note, being able to per- form such a change of ordering opens up algorithmic strategies for overconvergent series, by giving freedom in the choice of the convergence radii.

An additional important outcome of our algorithm is that it can be slightly modified in order to accept certain nonreduced Gröb- ner bases as input. Hence, in many cases, calling it with the same radii of convergence and the same ordering as input and output, already performs a nontrivial operation: the interreduction of the input Gröbner basis. Moreover, it has a controlled complexity and

1Here𝐾denotes the base field andrencodes the radii of convergence of our series;

we refer to §2.1 for the precise definitions.

(3)

Conference’21, July 2021, Washington, DC, USA Xavier Caruso, Tristan Vaccon, and Thibaut Verron

performs actually very well in practice (contrarily to the naive re- duction algorithm). Since the intermediate interreduction of Gröb- ner bases is often the bottleneck in Buchberger and signature algo- rithms in the Tate setting, using our FGLM algorithm (or an adap- tation of it) at this step could lead to a significant speed-up.

Strategy and ingredients.In the classical setting, the key step of the FGLM algorithm is to convert back and forth between Gröbner bases and the so-called multiplication matrices, which are defined as the multiplication maps by the variables in the quotient space.

Performing the change of ordering on those multiplication matri- ces then reduces to basic linear algebra. Still in the classical case, thanks to the structure of normal forms, it can be shown that all steps can be done in sub-cubic time in the number of solutions.

In the Tate setting, Gröbner bases are defined using a term or- dering, taking into account both a monomial ordering in the usual sense and a weight taking into account the degree of the monomi- als, the valuation of the coefficient and the convergence radius of the series in the algebra. It is the reason why we will eventually be able to change all these parameters at the same time. However, this feature also implies new difficulties.

Firstly, in the construction of the multiplication matrices, the structure of the normal forms does not allow us to read the values in one pass. Instead, we prove that an iterative process converges to the correct value of the matrices, and we show how this process can be done in different ways, including, for some particular base fields, the option of using relaxed arithmetic [vdH97, BvdHL11], which eventually leads to a significant improvement of the effi- ciency.

Secondly, if the change of ordering incurs a change of conver- gence radii, the size of the quotient algebra might change. We show that it is possible to recover multiplication matrices over the cor- rect quotient by separating eigenspaces depending on the valua- tion of the eigenvalues. The reconstruction of the final Gröbner basis is finally achieved using the classical strategy in the residue field, and then lifting the basis.

Organization of the article.In Section 2, we introduce the notations and discuss some primitives of linear algebras over nonarchime- dian fields which will be used repeatedly later on. The computation of multiplication matrices is addressed in Section 3. In Section 4, we consider the question of changing radii of convergence and design our final algorithm.

2 SETTING AND PRELIMINARIES

Throughout this article, we consider a field𝐾equipped with a dis- crete valuationvalfor which it is complete. We denote its ring of integers by𝐾and fix a uniformizer𝜋 of𝐾. The quotient𝐾/𝜋 is called the residue field of𝐾and will be denoted by𝐾¯in what follows. Classical examples of such fields are𝐾 = Q𝑝 (equipped with the𝑝-adic valuation) and𝑘((𝑇))(equipped with the𝑇-adic valuation) for any base field𝑘.

The complexity statements are given with the usual asymptotic notations𝑂(𝑓)and𝑂˜(𝑓)=𝑂(𝑓log(𝑓)𝑛)for some𝑛.

We will consider two different models of complexity: arithmetic complexity, counting operations in𝐾or𝐾, and base complexity, taking into account the precision. In the case of equal characteristic

(i.e.char𝐾= char𝐾), such as¯ 𝑘((𝑇)), the base complexity counts operations in the residue field, and the correspondence between both models satistfies:

(Arithmetic complexity)=𝑂˜(Base complexity)·prec . where prec stands for the working precision. On the contrary, in the case of mixed characteristic, such asQ𝑝, the base complexity counts bit operations. When the residue field is finite, the corre- spondence between both models satisfies:

(Arithmetic complexity)=𝑂˜(Base complexity)·prec·log|𝐾¯| .

2.1 Tate algebras and ideals

In order to fix notations, we briefly recall the definition of Tate alge- bras and the theory of Gröbner bases over them. Letr=(𝑟1, . . . , 𝑟𝑛) ∈ Q𝑛. TheTate algebra𝐾{X; r}is defined by:

𝐾{X; r}:=

( Õ

i∈N𝑛

𝑎iXis.t.𝑎i∈𝐾and val(𝑎i) −r·i−−−−−−−→

|i|→+∞ +∞

)

The tupleris called the convergence log-radii of the Tate alge- bra. We define the Gauss valuation of a term𝑎iXiasval(𝑎iXi)= val(𝑎i) −r·i, and the Gauss valuation ofÍ

𝑎iXi ∈𝐾{X; r}as the minimum of the Gauss valuations of its terms. The integral Tate algebra ring𝐾{X; r} is the subring of𝐾{X; r}consisting of el- ements with nonnegative valuation. In what follows, whenr = (0, . . . ,0), we will simply write𝐾{X}instead of𝐾{X;(0, . . . ,0)}.

We fix a classicalmonomial order≤𝑚on the set of monomialsXi. Given two terms𝑎Xiand𝑏Xj(with𝑎, 𝑏∈𝐾×), we write𝑎Xi <𝑏Xj ifval(𝑎Xi) >val(𝑏Xj), orval(𝑎Xi) = val(𝑏Xj) andXi <𝑚 Xj. The leading term of a Tate seriesÍ

𝑎iXi∈𝐾{X; r}is, by definition, its maximal term.

A Gröbner basis of an ideal𝐼of𝐾{X; r}is, by definition, a fam- ily(𝑔1, . . . , 𝑔𝑠)of elements of𝐼with the property that for all𝑓 ∈𝐼, there exists an index𝑖∈ {1, . . . , 𝑠}such thatLT(𝑔𝑖)dividesLT(𝑓).

A Gröbner basis(𝑔1, . . . , 𝑔𝑠)isreducedif given a term𝑡of𝑔𝑖which is not the leading term,𝑡is not divisible by anyLT(𝑔𝑗). The fol- lowing theorem is proved in [CVV19].

Theorem 2.1. (1) Any ideal of𝐾{X; r}admits a Gröbner ba- sis.

(2) Ifr = (0, . . . ,0) and𝐼is an ideal of𝐾{X}, a family𝐺 = (𝑔1, . . . , 𝑔𝑠)consisting of elements of𝐾{X}with Gauss val- uation0is a Gröbner basis of𝐼 if and only if its reduction modulo𝜋 is a classical Gröbner basis of the quotient ideal (𝐼∩𝐾{X; r})/𝜋(𝐼∩𝐾{X; r})of𝐾¯[X]for≤𝑚.

In the present article, we will be particularly interested in0- dimensional ideals. By definition,𝐼is such an ideal if the quotient 𝐾{X; r}/𝐼is a finite dimensional𝐾-vector space. If𝐼is a0-dimen- sional ideal, the set:

𝐵=

Xiwith𝑖∈N𝑛andXi∉LT(𝐼)

is finite and forms a𝐾-basis of𝐾{X; r}/𝐼. It is called thestaircase of𝐺. Moreover, if we are given a Gröbner basis(𝑔1, . . . , 𝑔𝑠)of𝐼, the staircase𝐵consists of all monomialsXiwhich are not divisible by anyLT(𝑔𝑗)for𝑗varying in{1, . . . , 𝑠}. This observation implies in particular that anyreducedGröbner basis of a0-dimensional ideal 𝐼consists only of polynomials.

(4)

Algorithm 1:Big(𝑓 , 𝑠) Input :𝑓 ∈𝐾𝛿×𝛿,𝑠∈R.

Output :A basis𝑆of Big𝑠(𝑓).

1.1 𝜒𝑓 ←charpoly(𝑓); // use [KV04] or [CRV17]

1.2 Write𝜒𝑓 =𝜒Small,𝑠,𝑓𝜒Big,𝑠,𝑓; // use [CRV16]

1.3 𝑔←𝜒Big,𝑠,𝑓(𝑓); // use [PS73]

1.4 𝑆←ker𝑔; // use pnumerical kernel from [KV20, §2.2.1]

1.5 return𝑆

2.2 Linear algebra

It is an understatement to say that the FGLM strategy relies heavily on linear algebra. In the Tate setting, this assertion is even more true and new basic operations in linear algebra, which are specific to non-archimedean base fields, will be needed. The aim of this subsection is to review briefly these operations.

Slope decomposition.Let𝑉be a finite𝐾-dimensional vector space and let𝑓 : 𝑉 →𝑉 be a𝐾-linear mapping. Let𝜒𝑓 be the char- acteristic polynomial of𝑓. Given an auxiliary real number𝑠, one can factor𝜒𝑓 as a product𝜒𝑓 =𝜒Big,𝑠,𝑓 ×𝜒Small,𝑠,𝑓 where𝜒Big,𝑠,𝑓

(resp.𝜒Small,𝑠,𝑓) is the factor corresponding to all roots (in an alge- braic closure) of valuation<𝑠(resp. valuation≥𝑠). Moreover, both 𝜒Big,𝑠,𝑀and𝜒Small,𝑠,𝑀have coefficients in𝐾. Letting Big𝑠(𝑓)de- note the kernel of𝜒Big,𝑠,𝑓(𝑓)and Small𝑠(𝑓)denote that of𝜒Small,𝑠,𝑓(𝑓), the above factorization corresponds to a decomposition of𝑉 as a direct sum𝑉 =Big𝑠(𝑓) ⊕Small𝑠(𝑓). Computing efficiently this de- composition is a basic task in linear algebra over non-archimedean fields.

In this article, we assume that we are given a routineBigwhich takes as input(𝑓 , 𝑠)and outputs (a basis of) the subspace Big𝑠(𝑓).

A naive implementation of the procedureBigis reported in Algo- rithm 1. It has cubic complexity in the dimension of𝑉(which will be enough for our applications) but has the advantage of being nu- merically stable.

𝐾-modules and saturation.As before, we let𝑉 be a finite dimen- sional𝐾-vector space. We recall basic facts about sub-𝐾-modules of𝑉and their algorithmic. If𝑉is equipped with a distinguished ba- sis, one can represent a finitely generated sub-𝐾-module of𝑉 by the matrix𝑀whose columns are the generators of𝐿. Performing column reduction, one can always assume that𝑀 is under Her- mite normal form. With this additional assumption, it is uniquely determined by𝐿.

Let𝐿1and𝐿2be sub-𝐾-modules of𝑉, represented by the square matrices𝑀1and𝑀2respectively. The sum𝐿=𝐿1+𝐿2is then gen- erated by the columns of the block matrix:

𝑀= 𝑀1|𝑀2

Computing the Hermite normal form of𝑀, one obtains a canonical matrix representating𝐿. The cost of this computation is cubic in the dimension of𝑉with a naive algorithm.

We now assume that we are given a sub-𝐾-module𝐿 ⊂𝑉 to- gether with a𝐾-linear endomorphism𝑓 :𝑉 →𝑉. Thesaturation of𝐿with respect to𝑓 is the sub-𝐾-module of𝑉defined by:

Sat𝑓(𝐿)=𝐿+𝑓(𝐿) +𝑓2(𝐿) + · · · +𝑓𝑛(𝐿) + · · ·

Algorithm 2:Saturate(𝑓 , 𝐿)

Input :a𝐾-linear map𝑓 :𝑉 →𝑉 s.t.𝑉 =Small0(𝑓), a finitely generated𝐾-module𝐿⊂𝑉 Output :Sat𝑓(𝐿)

2.1 𝑆←𝐿;𝑔←𝑓;

2.2 𝑤← ⌈log2dim𝑉⌉;

2.3 for𝑘∈J1, 𝑤Kdo

2.4 𝑆←𝑆+𝑔(𝑆);

2.5 𝑔←𝑔2;

2.6 return 𝑆

Lemma 2.2. We assume that𝑉 =Small0(𝑓). Then:

Sat𝑓(𝐿)=𝐿+𝑓(𝐿) +𝑓2(𝐿) + · · · +𝑓dim𝑉−1(𝐿). In particular, if𝐿is finitely generated, thenSat𝑓(𝐿)is also.

Proof. The assumption on𝑓 implies that the coefficients of𝜒𝑓 are all in𝐾. From Cayley-Hamilton theorem, we deduce that𝑓𝛿is a linear combination with coefficients in𝐾of the𝑓𝑖’s with𝑖<𝛿.

The lemma follows.

The routineSaturatepresented in Algorithm 2 computes Sat𝑓(𝐿) under the assumption that𝐿is finitely generated and𝑉 =Small0(𝑓).

Indeed, one checks by induction that after the𝑘-th iteration of the loop, one has𝑔=𝑓2𝑘and:

𝑆=𝐿+𝑓(𝐿) +𝑓2(𝐿) + · · · +𝑓2𝑘−1(𝐿).

Therefore, when2𝑘 ≥𝛿, we find𝑆=Sat𝑓(𝐿). The complexity of Algorithm 2 is equal to the cost of𝑂(log𝛿)Hermite reductions. If we use the naive algorithm for this task, we obtain an algorithm of arithmetic complexity𝑂˜(𝛿3).

Remark 2.3. For a general𝐾-linear mapping𝑓, one always has:

Sat𝑓(𝐿)=Big0(𝑓) +𝐿+𝑓(𝐿) +𝑓2(𝐿) + · · · +𝑓dim𝑉−1(𝐿) provided that𝐿spans𝑉 as a𝐾-vector space. Under this assump- tion, one can then combine Algorithms 1 and 2 to compute the saturation of𝐿with respect to𝑓 even when Small0(𝑓) (𝑉.

3 MULTIPLICATION MATRICES

Throughout this section, we fix a tupler = (𝑟1, . . . , 𝑟𝑛) and con- sider the Tate algebra𝐾{X; r}. We consider in addition a0-dimensional ideal𝐼of𝐾{X; r}and assume that we are given a Gröbner basis 𝐺=(𝑔1, . . . , 𝑔𝑠)of𝐼.

The first step in the FGLM algorithm is the computation of the matrices of multiplication by the variables on the quotient𝐾{X; r}/𝐼 (which has finite dimension by assumption). We recall that a𝐾- basis of𝐾{X; r}/𝐼 is given by the staircase𝐵, which consists of all monomials𝑚with𝑚∉ LT(𝐼). We let𝑇𝑖 be the matrix of the multiplication by𝑋𝑖 with respect to this basis. Observe that the (𝜇,𝑚)-entry of𝑇𝑖has valuation at least:

𝑣𝜇,𝑚=val(𝑚𝑋𝑖) −val(𝜇)=val(𝑚) −𝑟𝑖−val(𝜇). Our goal is to design an algorithm for computing the𝑇𝑖’s. In or- der to express our complexity estimates, we introduce two impor- tant parameters. This first one is the degree of the ideal𝛿=|𝐵|=

(5)

Conference’21, July 2021, Washington, DC, USA Xavier Caruso, Tristan Vaccon, and Thibaut Verron

dim𝐾{X; r}/𝐼. The second one, denoted by𝜀, is the size of the boundary of the staircase defined as𝐵¯\𝐵with

𝐵¯=

𝑋𝑖𝑚 : 𝑖∈ {1, . . . , 𝑛},𝑚∈𝐵 .

Obviously the cardinality of𝐵¯is at most𝑛𝛿; thus𝜀≤𝑛𝛿as well.

The theorem we are going to prove is the following (we refer to the beginning of Section 2 for the definition of the arithmetic and base complexity).

Theorem 3.1. There exists an algorithm that takes as input a re- duced Gröbner basis of𝐺 and outputs the multiplication matrices 𝑇𝑖 with(𝜇,𝑚)-entry known at precision𝑂(𝜋prec+𝑣𝜇,𝑚)for a cost of 𝑂(𝜀𝛿2prec)arithmetic operations.

Besides, if the base field𝐾is either a Laurent series field orQ𝑝, the above complexity can be lowered to𝑂˜(𝜀𝛿2prec)base operations.

We will also present an algorithm accepting as input certain nonreduced Gröbner basis. This variant is interesting because, in some cases, it will eventually provide a fast algorithm for interre- ducing Gröbner basis.

3.1 Iterative algorithm

Throughout this subsection, we assume that𝐺 = (𝑔1, . . . , 𝑔𝑠) is reduced andr = (0, . . . ,0). We will explain later on how these assumptions can be relaxed. For simplicity, we assume in addition that the𝑔𝑖’s are all monic (i.e.the coefficients of their leading terms are1). This hypothesis is of course harmless since renormalizing the𝑔𝑖’s and making them monic does not affect the fact that𝐺is a Gröbner basis.

Computing the𝑇𝑖’s amounts to computing the normal forms of 𝑚modulo𝐼 for all𝑚in𝐵. In a classical setting, this can be done¯ iteratively with linear algebra, by considering the monomials fol- lowing the monomial order. Indeed, for𝑚in𝐵and𝑖 ∈ {1, . . . , 𝑛}, if𝑋𝑖𝑚 ∉ 𝐵, either𝑋𝑖𝑚is a leading monomial in𝐺, or there ex- ists𝜇 ∉𝐵such that𝑋𝑖𝑚=𝑋𝑗𝜇, and thenNF(𝑋𝑖𝑚)=𝑋𝑗NF(𝜇).

In the classical setting, the normal form of a monomial𝜇only in- volves monomials in𝐵 strictly smaller than𝜇, so𝑋𝑗NF(𝜇)only involves monomials in𝐵¯strictly smaller than𝑋𝑖𝑚. This allows to writeNF(𝑋𝑖𝑚)as a linear combination of already computed nor- mal forms.

In the case of Tate term orderings, similarly to what was ob- served for example for tropical orderings [IVY20], the normal form of a monomial𝜇can involve all monomials of𝐵, and computing the wanted normal formsa priorirequires solving a large nonlinear system of equations.

However, because Tate Gröbner basis are just classical Gröbner basis when they are reduced modulo𝜋 (Theorem 2.1), the above strategy allows to recover the value of the multiplication matrices modulo𝜋. Following the same computations again lifts the multi- plication matrices to coefficients in𝐾/𝜋2, and so on and so forth.

The algorithm formalizing this idea is described in Algorithm 3.

For𝑃 ∈𝐾[X]with support contained in𝐵, the notation[𝑃] rep- resents the vector of coefficients of𝑃in the basis𝐵. With that no- tation, given a monomial𝑚 ∈ 𝐵 and a matrix𝑀with rows and columns indexed by𝐵,𝑀· [𝑚]is the column of𝑀corresponding to𝑚.

Algorithm 3:MulMat_iter(𝐺,prec)

Input :a reduced Gröbner basis𝐺of the ideal 𝐼⊂𝐾{X},

an integer prec such that all elements of𝐺 are known at precision prec

Output :𝑇1, . . . , 𝑇𝑛, the multiplication matrices over 𝐾{X}/𝐼(w.r.t the basis𝐵) modulo𝜋prec

3.1 𝐵← {𝑚monomials not divisible by any LT(𝑔), 𝑔∈𝐺};

3.2 𝑇𝑖 =(𝑐𝑖,𝑚,𝑚) ←zero matrices of size𝛿×𝛿, with rows and columns indexed by𝐵, for all𝑖∈J1, 𝑛K;

3.3 for𝑘from0to precdo

3.4 for𝑖∈J1, 𝑛K,𝑚∈𝐵in increasing order of𝑋𝑖𝑚do

3.5 if𝑋𝑖𝑚∈𝐵then

3.6 𝑇𝑖· [𝑚] ← [𝑋𝑖𝑚];

3.7 else if𝑋𝑖𝑚=LT(𝑔)for some𝑔∈𝐺then

3.8 𝑇𝑖· [𝑚] ← [𝑔−LT(𝑔)];

3.9 else

3.10 Write𝑚=𝑋𝑗𝑚for some𝑚∉𝐵;

3.11 𝑇𝑖· [𝑚] ←𝑇𝑗· (𝑇𝑖· [𝑚]);

3.12 return𝑇1, . . . ,𝑇𝑛

For𝑖∈ {1, . . . , 𝑛}, 𝜇, 𝑚∈𝐵, we denote by𝑐𝑖,𝜇,𝑚the value at row 𝜇and column𝑚in the multiplication matrix𝑇𝑖. The following the- orem states the correctness and the complexity of the algorithm.

Theorem 3.2. Algorithm 3 is correct. More precisely, at the end of the𝑘-th run of the loop, the matrices(𝑇𝑖)are correct modulo𝜋𝑘. Furthermore, each run through the loop requires𝑂(𝛿2𝜀)operations in𝐾.

The proof uses the following observation, which is the transla- tion to the Tate setting of the structure of the normal forms of the staircase in the classical setting.

Lemma 3.3. If𝑋𝑖𝑚∈𝐵, thenval(𝑐𝑖,𝜇,𝑚) >0if𝜇≠𝑋𝑖𝑚. Other- wise, if𝑋𝑖𝑚≤𝜇, thenval(𝑐𝑖,𝜇,𝑚) >0.

Proof. By definition, the column indexed by𝑚in the multipli- cation matrix𝑀𝑖 is the vector of the coordinates of the normal form𝑁of𝑋𝑖𝑚modulo𝐺, in the basis𝐵. If𝑋𝑖𝑚∈𝐵, then𝑁=𝑋𝑖𝑚 and the result is clear. Otherwise, if𝑐𝑖,𝜇,𝑚𝜇is a term of𝑁, then 𝑐𝑖,𝜇,𝑚𝜇 < 𝑋𝑖𝑚, which, by definition of the Tate term ordering, means that either𝜇<𝑋𝑖𝑚orval(𝑐𝑖,𝜇,𝑚) >0.

Proof of the theorem.We prove the result by induction on 𝑘≥0, and, for each value of𝑘, by induction on𝑋𝑖𝑚,𝑖∈ {1, . . . , 𝑛}, 𝑚∈𝐵.

The initial case𝑘=0is empty. Let𝑘>0,𝑖∈ {1, . . . , 𝑛}and𝑚∈ 𝐵, and assume by induction that we know the coefficient𝑐𝑗,𝜇,𝑚

with precision𝑘if𝑋𝑗𝑚<𝑋𝑖𝑚, and with precision𝑘−1otherwise.

If𝑋𝑖𝑚 ∈ 𝐵, then there is nothing to prove, because the coeffi- cients are 0 or 1. If𝑋𝑖𝑚 = LT(𝑔) for some𝑔 ∈ 𝐺, there is also nothing to prove, since all the coefficients of𝑀𝑖· [𝑚]are known to precision prec≥𝑘.

(6)

In the remaining case, for each𝜇 ∈ 𝐵, the algorithm performs the substitution

𝑐𝑖,𝜇,𝑚← Õ

𝜇∈𝐵

𝑐𝑗,𝜇,𝜇𝑐𝑖,𝜇,𝑚.

Since𝑋𝑗𝑚 =𝑚,𝑚<𝑚and𝑋𝑖𝑚 <𝑋𝑖𝑚and so the induction hypothesis applies. Let𝜇 ∈𝐵. Note that𝑋𝑗𝜇≠𝑋𝑖𝑚: otherwise, 𝑋𝑗𝜇=𝑋𝑖𝑋𝑗𝑚so𝜇=𝑋𝑖𝑚, which cannot lie in𝐵. If𝑋𝑗𝜇<𝑋𝑖𝑚, then both𝑐𝑗,𝜇,𝜇and𝑐𝑖,𝜇,𝑚are known up to precision𝑘(induction on𝑋𝑖𝑚), so the product is known to precision𝑘. And if𝑋𝑗𝜇>𝑋𝑖𝑚, then𝑐𝑗,𝜇,𝜇is known up to precision𝑘−1(induction on𝑘) and 𝑐𝑖,𝜇,𝑚is known up to precision𝑘(induction on𝑋𝑖𝑚) and divisible by𝜋(by Lemma 3.3), so the product is known up to precision𝑘.

For the number of operations, observe that there are less than 𝜀pairs(𝑖, 𝑚)such that the alsorithm needs to perform the compu- tation at line 3.11; each computation involves𝛿coefficients of the matrix, and for each of them,𝛿products in𝐾.

3.2 Nonreduced Gröbner bases

An interesting feature of the algorithm above is that contrary to the usual case, it has to handle monomials which are larger than the current monomial𝑋𝑖𝑚. This removes the main reason for the re- quirement that the input Gröbner basis is reduced, and with slight modifications, it can handle any Gröbner basis as long as it is re- duced modulo𝜋. Precisely, this is achieved by replacing line 3.8 with the following.

Algorithm 3a:Update the matrices using a nonreduced basis element

3.8a for𝑎𝜇in the support of𝑔−LT(𝑔)do

3.8b if𝜇<𝑋𝑖𝑚then

3.8c 𝑇𝑖· [𝑚] ←𝑇𝑖· [𝑚] +𝑎[𝜇]

3.8d else

3.8e Pick𝑚∈𝐵such that𝜇=𝑋1𝛼1· · ·𝑋𝑛𝛼𝑛𝑚;

3.8f 𝑇𝑖· [𝑚] ←𝑇𝑖· [𝑚] +𝑎𝑇1𝛼1· · ·𝑇𝑛𝛼𝑛· [𝑚];

Unless the staircase is trivial,i.e.as long as the ideal is proper, it is always possible to find a suitable𝑚at line 3.8e, by picking the monomial1∈𝐵. Nonetheless, to avoid computing large powers of matrices, it is more efficient to find𝑚as large as possible.

It is still true that any monomial𝜇 > 𝑋𝑖𝑚 appearing in the process necessarily carries a coefficient with valuation≥ 1, and thus the loop invariant that the coefficients are known to precision 𝑘still holds.

The complexity of the computation is no longer bounded merely in terms of𝛿,𝜀 and prec, but also depends on the degree of the nonreduced terms in the basis, and on the choices of the monomi- als𝑚.

3.3 Recursive algorithm

As described above, the computations can be done in increasing order of the monomials𝑋𝑖𝑚, ensuring that all the necessary coef- ficients are known with the necessary precision for the next step.

Another way to proceed is by dynamic programming, computing the necessary coefficients recursively if they are not known yet.

The recursive definition, using the matrices𝑇𝑖as a cache, is de- scribed in Algorithm 4, and is very similar to that described in Al- gorithm 3.

It can then be called, for all values of𝑖, 𝜇, 𝑚and𝑘 = prec, in- stead of lines 3.3–3.11 in Algorithm 3. The main difference is that the algorithm does not need to specify in which order the coeffi- cients are computed: the recursive definition queries the missing coefficients as needed. The decision on which precision is needed depends on the valuation of the coefficient: the idea is that if𝑎is known with precision𝑘and has valuation𝑣, and𝑏is known with precision𝑙and has valuation𝑤, then𝑎·𝑏is known with precision min(𝑘+𝑤, 𝑙+𝑣). Note that it also works if we only know a lower bound on the valuation, typically if all the digits we know are0.

The proof that the recursive algorithm terminates is the exis- tence of such an order, as demonstrated in Theorem 3.2. And the proof of complexity is also immediate: there are𝜀coefficients for which the calculation is non-trivial, and for each of them, after𝛿 multiplications, we gain one digit of precision. The total complex- ity is then𝑂(𝜀𝛿2prec)operations in𝐾as in the iterative case.

The advantage of the recursive presentation is twofold. Firstly, it will allow in Section 3.4 to generalize the construction, the proof of termination, and the complexity bounds, to arbitrary log-radii.

Secondly, it offers a way to immediately improve the perfor- mance of the algorithms, on coefficient rings such asZ𝑝or𝑘((𝑇)) where fast arithmetic is available. This works by using a lazy rep- resentation of the number, that is, a representation where each number is the data of its first digits, as well as a function allow- ing to compute the next digit. Algorithm 4 gives us precisely such a function, and as such, the process can be viewed as a recursive definition of lazy numbers (the function definition) together with a delayed evaluation (the function call for all values).

For many coefficient rings, it is possible to do better by using the so-called relaxed, or on-line, arithmetic. Such arithmetics are available for formal power series rings [vdH97] and𝑝-adic num- bers [BvdHL11, BL12]. In that case, the cost of the computation of each new digit (of each variable) is polynomial inlog(prec)if we are counting base operations (in the sense of Section 2). Here, this allows us to compute the matrices with base complexity in 𝑂˜(𝜀𝛿2prec).

Remark 3.4. For simplicity and for the complexity bounds, we only presented the procedure in the case where the Gröbner basis is reduced, but given that the recursive definition is equivalent to the loop presented in Algorithm 3, the case where the Gröbner basis is not reduced can be dealt with in exactly the same way.

3.4 General log-radii

We now consider the case of arbitrary log-radiir ∈ Q𝑛. We will prove that the algorithm presented above still works in that case, by using abstract changes of variables and base ring to justify the existence of a suitable execution order. Crucially, the algorithm works without performing those transformations, and the com- plexity is the same. We only need to be more careful about the handling of the precision and of the valuation.

Namely, givenr ∈ Q𝑛, we will assume that the input basis𝐺 is normalized, in the sense that0 ≤ val(LT(𝑔)) <1for all𝑔 ∈ 𝐺. We will further require that for each𝑔 ∈𝐺, and for each𝑡in

(7)

Conference’21, July 2021, Washington, DC, USA Xavier Caruso, Tristan Vaccon, and Thibaut Verron

Algorithm 4:MulMat_rec(𝐺, 𝐵, 𝑖, 𝜇, 𝑚, 𝑘) Input :𝐺as in Algo. 3,𝐵the staircase of𝐺,

𝑖∈J1, 𝑛K, 𝜇∈𝐵, 𝑚∈𝐵, 𝑘∈Z, 𝑘≤prec Global :(𝑇𝑖)=(𝑐𝑖,𝜇,𝑚)𝜇,𝑚∈𝐵)𝑖∈J1,𝑛K

Output :𝑇𝑖is such that𝑐𝑖,𝜇,𝑚is known to precision𝑘

4.1 if𝑐𝑖,𝜇,𝑚is known to precision𝑘in𝑇𝑖then

4.2 do nothing

4.3 else if𝑘≤0then

4.4 𝑐𝑖,𝜇,𝑚←𝑂(1)

4.5 else if𝑋𝑖𝑚∈𝐵then

4.6 𝑐𝑖,𝜇,𝑚←1if𝜇=𝑋𝑖𝑚else0

4.7 else if𝑋𝑖𝑚=LT(𝑔)for𝑔∈𝐺then

4.8 𝑐𝑖,𝜇,𝑚←the coordinate of𝜇in the support of 𝑔−LT(𝑔)

4.9 else

4.10 Write𝑚=𝑋𝑗𝑚for some𝑚∉𝐵;

4.11 𝑐←0;

4.12 for𝜇∈𝐵do

4.13 𝑣←val(𝑐𝑗,𝜇,𝜇);𝑤←val(𝑐𝑖,𝜇,𝑚);

4.14 MulMat_rec(𝐺, 𝐵, 𝑗, 𝜇, 𝜇, 𝑘−𝑤);

4.15 MulMat_rec(𝐺, 𝐵, 𝑖, 𝜇, 𝑚, 𝑘−𝑣);

4.16 𝑐←𝑐+𝑐𝑗,𝜇,𝜇𝑐𝑖,𝜇,𝑚;

4.17 𝑐𝑖,𝜇,𝑚←𝑐+𝑂(𝜋𝑘+1);

the support of𝐺,𝑡is known to precision prec+ ⌊val(𝑡)⌋, and we will ensure that we compute the matrices with similar precision by ensuring that𝑐𝑖,𝜇,𝑚is correct up to precision𝑘+ ⌊𝑣𝜇,𝑚⌋.

Recall thatNF(𝑋𝑖𝑚) =Í

𝜇∈𝐵𝑐𝑖,𝜇,𝑚𝜇with, for all𝜇,𝑐𝑖,𝜇,𝑚𝜇 <

𝑋𝑖𝑚. So by definition of the Tate term ordering,val(𝑐𝑖,𝜇,𝑚) ≥val(𝑋𝑖𝑚)−

val(𝜇) =𝑣𝜇,𝑚, and the requirement on the precision is merely ad- justing the number of digits we require beyond those we already know to be 0. The only difference is that each term is initialized with the zero digits and the precision which we already know:

Algorithm 4a:Base case with non-zero log-radii

4.3 else if𝑘≤ ⌊val(𝑋𝑖𝑚) −val(𝜇)⌋then

4.4 𝑐𝑖,𝜇,𝑚←𝑂(𝜋⌊val(𝑋𝑖𝑚)−val(𝜇) ⌋);

Theorem 3.5. Letr∈ Q𝑛be a system of log-radii. Algorithm 3, with input a reduced Gröbner basis of an ideal in𝐾{X; r}, and mod- ified to compute the matrices using Algorithm 4, computes the mul- tiplication matrices in𝑂(𝜀𝛿2prec)multiplications in𝐾.

Proof. Let Γ(𝐺) be the dependency graph of the recurrence relation defined in Algorithm 4 with the modifications of Algo- rithm 4a: namely,Γ(𝐺)is a directed graph whose vertices are tu- ples(𝑖, 𝜇, 𝑚, 𝑘), and there is a directed edge(𝑖, 𝜇, 𝑚, 𝑘) → (𝑗, 𝜇, 𝑚, 𝑙) if and only if the computation of𝑐𝑖,𝜇,𝑚to precision𝑘queries the coefficient𝑐𝑗,𝜇,𝑚 to precision𝑙. Note that the vertices with no outgoing edge correspond to coefficients which are immediately known to precision prec. The recursive computation terminates if

and only if the graph is cycle-free, namely, if every path through the graph eventually reaches a vertex with no outgoing edge.

In the case of trivial log-radiir = (0, . . . ,0), the proof of that fact is Theorem 3.2. Assume thatr ∈ Q𝑛. Let𝐷be the common denominator of the log-radii, so thatr = (𝑟1/𝐷, . . . , 𝑟𝑛/𝐷). With- out loss of generality, we may assume that𝐺is minimal: elements of𝐺which can be removed will not take part in the computation.

Consider the field extension𝐿=𝐾[𝜂]with𝜂𝐷 =𝜋, and perform the change of variables𝑋𝑖 ←𝜂𝑟𝑖𝑌𝑖. This change of variables trans- forms𝐺into a Gröbner basis𝐺of an ideal in𝐿{Y}. In this case, the algorithm terminates, so the graph𝐺is cycle-free. If𝐺is mini- mal, so is𝐺, and by [CVV19, Prop. 3.10], the elements of this basis lie in𝐾{Y} ⊂𝐿{Y}. In particular, all throughout the algorithm, the coefficients of the matrices are in𝐾.

The graphΓ(𝐺)is isomorphic to a subgraph ofΓ(𝐺), the inclu- sion being given by(𝑖, 𝜇, 𝑚, 𝑘+ ⌊𝑣𝑚,𝜇⌋ → (𝑖, 𝜇, 𝑚, 𝑘). SinceΓ(𝐺) is cycle-free, so isΓ(𝐺)and the algorithm terminates.

The bound on the number of operations can be obtained with a similar argument as before, or read on the graph: the complex- ity is bounded by2𝛿 times the number of vertices ofΓ(𝐺)since computing each new vertex has a cost of2𝛿operations in𝐾(the additions and multiplications on line 4.16). SinceΓ(𝐺)has at most 𝜀𝛿·prec vertices, the bound𝑂(𝜀𝛿2prec)follows.

4 CHANGE OF LOG-RADII AND ORDERING

The next step in the FGLM algorithm consists in going in the op- posite direction: starting from multiplication matrices and a term ordering, we aim at reconstructing the underlying Gröbner basis.

Moreover, in our setting where we want to be able to handle in addition changes of log-radii, a preliminary step is needed. Indeed, the multiplication matrices are usually affected by a modification of the log-radii. For example, the ideal generated by2𝑥2−𝑦2and 𝑦3−𝑥2inQ2[𝑥, 𝑦]has staircase{1, 𝑦, 𝑥, 𝑦2, 𝑥𝑦, 𝑥𝑦2}(for lex) while it spans an ideal overQ2{𝑥, 𝑦}with staircase{1, 𝑦}(still using lex).

We study this phenomenon in full generality in Section 4.1.

A toy implementation of the algorithms of this Section is avail- able on https://gist.github.com/TristanVaccon.

4.1 New multiplication matrices

Theoretical results. Letrandube two𝑛-tuples such that𝑟𝑖 ≥𝑢𝑖

for all𝑖.2 Under this assumption the Tate algebra𝐾{X; r}is in- cluded in𝐾{X; u}and, given an ideal𝐼in𝐾{X; r}, it makes sense to consider the ideal𝐽 =𝐼·𝐾{X; u}of𝐾{X; u}.

In what follows, we always assume that𝐼is0-dimensional. The quotient𝐾{X; r}is then, by definition, a finite dimensional𝐾-vector space; we will denote it by𝑉. Similarly, we set𝑊 =𝐾{X; u}/𝐽. The inclusion𝐾{X; r} ↩→ 𝐾{X; u}induces a𝐾-linear mapping Φ:𝑉 →𝑊.

In order to studyΦ, we use topological arguments. We letk · ku be the norm on𝐾{X; u}associated to the Gauss valuationvalu

and equip𝐾{X; u}with the topology associated to this norm.

Lemma 4.1. The ideal𝐽 is the closure of𝐼in𝐾{X; u}.

2The results of this section can be extended without difficulty to𝑟𝑖 = +∞,i.e.to 𝐾[X].

(8)

Proof. The polynomial ring𝐾[X]is dense in𝐾{X; u}for the normk · k𝑢. Therefore,𝐾{X; r}is dense as well, implying that𝐼is dense in𝐽. The fact that𝐽 is closed follows from [Bo14, Chap. 2,

Cor. 8].

The normk · kuinduces by restriction a norm on𝐾{X; r}(which is, of course, different from the standard normk · kron this space) and a mappingk · k𝑉 :𝑉 →R+defined by:

k𝑥k𝑉 =inf

𝑥ˆ kˆ𝑥ku

where the infinum runs over all𝑥ˆ∈𝐾{X; r}lifting𝑥. In general, k · k𝑉is not a norm but only a semi-norm, meaning that there might exist elements𝑥 ∈𝑉for whichk𝑥k𝑉 =0. By definition, thekernel ofk · k𝑉is the set of such elements; we denote it by𝑁. It is easily seen that𝑁is a sub-𝐾-vector space of𝑉.

Proposition 4.2. The mapΦis surjective and its kernel is𝑁. Proof. We notice that𝐾{X; u}is the completion of𝐾{X; r}for the normk · k𝑢. Combining this observation with Lemma 4.1, we deduce that𝑊appears as the completion of𝑉 with respect to the semi-normk · k𝑉, which is also the completion of𝑉/𝑁. But, since 𝑉/𝑁 is finite dimensional, it is already complete. As a conclusion,

𝑊 ≃𝑉/𝑁and the proposition is proved.

We now assume that we are given the multiplication matrices 𝑇1, . . . ,𝑇𝑛 over𝑉. We want to relate them to𝑊, or equivalently to𝑁. This is the content of the following proposition.

Proposition 4.3. With the above notations, we have:

𝑁=

𝑛

Õ

𝑖=1

Big𝑢𝑖(𝑇𝑖)

(where we recall that the notationBig𝑢𝑖was defined in §2.2).

Proof. First of all, we observe that, up to replacing𝐾by𝐾[𝜋1/𝐷] for a well-chosen integer𝐷, we can assume without loss of gener- ality thatuis inZ𝑛. Replacing𝑇𝑖by𝜋−𝑢𝑖𝑇𝑖andrbyr−u, we may further suppose thatu=(0, . . . ,0).

Let𝑖∈ {1, . . . , 𝑛}and let𝑥 ∈Big0(𝑇𝑖). By definition,𝑥is killed by𝜒Big,0,𝑇𝑖(𝑇𝑖). In other words, if𝑓 ∈𝐾{X; r}is a lifting of𝑥, the product𝜒Big,0,𝑇𝑖(𝑋𝑖) ·𝑓 lies in𝐼. Now, we claim that𝜒Big,0,𝑇𝑖(𝑋𝑖) is invertible in𝐾{X}because it is a product of factors of the form 𝑎−1(1−𝑎𝑋𝑖)withval(𝑎)>0. Consequently,𝑓 must be an element of𝐽. By Proposition 4.2, we derive𝑥 ∈𝑁, which proves the inclu- sion Big0(𝑇𝑖) ⊂ 𝑁. Since this holds for any𝑖, the⊃part of the Proposition is proved.

Set𝑁𝑛

𝑖=1Big0(𝑇𝑖)and𝑊 =𝑉/𝑁. From what we have done so far, we deduce that the semi-normk · k𝑉 on𝑉 induces a semi-norm on𝑊. The proposition will follow if we can prove that k · k𝑉 is indeed a norm (i.e.with trivial kernel) on𝑊. In order to do so, we consider the unit ball of𝑊, namely:

𝐷=

𝑥 ∈𝑊s.t.k𝑥k𝑉 ≤1 .

We want to prove that𝐷does not contain any𝐾-line. For this, we remember that the unit ball of𝐾{X}is exactly the𝐾-module generated by the monomialsXiforivarying inN𝑛. Therefore,𝐷 is the smallest𝐾-module stable under the𝑇𝑖’s and containing the image of1∈𝐾{X}in𝑊. Keeping in mind in addition that the𝑇𝑖’s

Algorithm 5:NewMulMat(𝑇1, . . . ,𝑇𝑛, 𝑣)

Input :𝑇1, . . . , 𝑇𝑛the multiplication matrices over𝑉, 𝑣the image of1∈𝐾{X; r}in𝑉,u∈Z𝑛 Output :𝑈1, . . . , 𝑈𝑛the multiplication matrices over the

unit ball of𝑊,

𝑤the image of1∈𝐾{X; r}in𝑊

5.1 𝑁← {0};

5.2 for𝑖∈J1, 𝑛Kdo

5.3 𝑁←𝑁+Big0(𝑇𝑖);

5.4 𝑊←𝑉/𝑁;

5.5 𝐿←𝑣𝐾;

5.6 for𝑖∈J1, 𝑛Kdo

5.7 𝐿←Saturate(𝑇𝑖, 𝐿);

5.8 return𝑇1|𝐿, . . . ,𝑇𝑛|𝐿, 𝑣mod𝑁;

commute pairwise, we get𝐷=Sat𝑇1Sat𝑇2· · ·Sat𝑇𝑛(𝐿0)where𝐿0

is the sub-𝐾-module of𝑊generated by the image of1.

Besides, on𝑊, all the eigenvalues of all the𝑇𝑖’s have nonnega- tive valuation since we have quotiented out all the Big0(𝑇𝑖)’s. Con- sequently Lemma 2.2 applies and shows that𝐷is finitely gener- ated. In particular, it contains no𝐾-line, as wanted.

Explicit computations. It is straightforward to turn the previous theoretical analysis into an actual algorithm that computes the space𝑊 ≃𝑉/𝑁 and the multiplication matrices acting on it. In fact, for later use, it will not be enough to express these matrices in any𝐾-basis of𝑊, but we shall really need a𝐾-basis of the unit ball of𝑊 (for the normk · k𝑉 introduced before).

Whenu= (0, . . . ,0), Algorithm 5 does the job. In the descrip- tion of this algorithm, we have implicitely assumed that all𝐾-vector spaces and𝐾-modules are equipped with distinguished bases, and consequently used the same notation for a matrix and the endo- mophism it represents. All operations on𝐾-modules can be han- dled using Hermite normal forms as recalled in §2.2; similarly, oper- ations on𝐾-vectors spaces can be done using Smith normal forms, which permits to keep better numerical stability.

If𝛿denotes the dimension of𝑉 =𝐾{X; r}/𝐼(which is also the size of the matrices𝑇𝑖’s), Algorithm 5 requires at most𝑂˜(𝑛𝛿3) operations in the base field𝐾.

4.2 Reconstruction of the Gröbner basis

The final step in the FGLM algorithm is the computation of a Gröb- ner basis from the datum of the multiplication matrices.

Trivial log-radii.We first address the case whereu = (0, . . . ,0), which is covered by Algorithm 6 (page 8). This algorithm uses a routineFGLMFieldwhich takes as input a set of𝑛multiplication matrices over a field (together with the vector representing the monomial1) and a term ordering and returns the corresponding Gröbner basis. A description of such an algorithm performing this task can be found in many places in the litterature, for example in the original article by Faugèreet al.[FGLM93].

Proposition 4.4. Algorithm 6 is correct and runs in𝑂(𝑛𝛿3)arith- metic operations where𝛿denotes the dimension of𝑊.

(9)

Conference’21, July 2021, Washington, DC, USA Xavier Caruso, Tristan Vaccon, and Thibaut Verron

Algorithm 6:GB(𝑈1, . . . , 𝑈𝑛, 𝑤,≤)

Input :𝑈1, . . . , 𝑈𝑛the multiplication matrices over the unit ball of𝑊,

𝑤the image of1∈𝐾{X; r}in𝑊,

≤a monomial ordering

Output :A Gröbner basis𝐺of the ideal𝐽 ⊂𝐾{X; u}

6.1 𝐺¯←FGLMField(𝑈1mod𝜋, . . . , 𝑈𝑛mod𝜋, 𝑤mod𝜋,≤ );

6.2 𝐵← {𝑚monomials not divisible by anyLM(𝑔), 𝑔∈𝐺¯}

6.3 𝑀=(𝑀,𝜇)∈B,𝜇∈𝐵←zero matrix;

//Bdenotes the distinguished basis of𝑊 we are working with

6.4 𝑀,1←𝑤;

6.5 for𝜇∈𝐵\{1}by increasing order for≤do

6.6 write𝜇=𝑋𝑖𝜇with𝑖∈ {1, . . . , 𝑛},𝜇∈𝐵;

6.7 𝑀,𝜇←𝑈𝑖·𝑀,𝜇; // product matrix-vector

6.8 𝑁=(𝑁,𝑚)∈B,𝑚∈LM(𝐺)¯ ←zero matrix;

6.9 for𝑚∈LM(𝐺)¯ do

6.10 write𝑚=𝑋𝑖𝜇with𝑖∈ {1, . . . , 𝑛},𝜇∈𝐵;

6.11 𝑁,𝑚←𝑈𝑖·𝑀,𝜇; // product matrix-vector

6.12 𝑄←𝑀−1𝑁;

6.13 𝐺←

𝑚−Í

𝜇∈𝐵𝑄𝜇,𝑚𝜇

𝑚∈LM(𝐺)¯;

6.14 return𝐺

Proof. We recall that we assumeu=(0, . . . ,0). Let𝐽=𝐼·𝐾{X}

be as in Section 4.1. We recall that𝑊 =𝐾{X}/𝐽by definition. Let 𝐷 denote the unit ball of𝑊. From the facts that the unit ball of 𝐾{X}is𝐾{X}and the norm on𝑊 ≃ 𝐾{X}/𝐽 is the quotient norm, we deduce that𝐷≃𝐾{X}/𝐽with𝐽 =𝐽 ∩𝐾{X}. The reductions modulo𝜋of the𝑈𝑖’s are then the multiplication matri- ces on the quotient¯𝐽=𝐽/𝜋 𝐽. The call toFGLMFieldthen returns a Gröbner basis of the ideal¯𝐽. From Theorem 2.1.(2), we derive that the leading terms of a Gröbner basis of𝐽 are formed by the mono- mials inLM(𝐺¯). It follows from this that𝐵is the staircase of the ideal𝐽. In particular, its cardinality is the dimension of𝑊, showing that the matrix𝑀is a square matrix. After the loops, the columns of𝑀(resp. of𝑁) contain the coordinates of the𝜇’s (resp. the𝑚’s) in the distinguished basisBfor𝜇varying in𝐵(resp. for𝑚varying inLT(𝐺)). The matrix𝑄=𝑀−1𝑁 then contains the expression of the𝑚’s in terms of linear combination of the𝜇’s. This shows the correctness of the algorithm.

The fact that the complexity is in𝑂(𝑛𝛿3)arithmetic operations

is easily checked.

General log-radii.We now consider the general case whereu = (𝑢1, . . . , 𝑢𝑛) ∈Q𝑛. We take𝐷∈Z>0to be a common denominator of the coordinates ofu(consequently𝐷·u∈Z𝑛). We define the field extension𝐿=𝐾[𝜂]such that𝜂𝐷=𝜋and perform the change of variables𝑋˜𝑖 =𝜂𝐷𝑢𝑖𝑋𝑖. The Tate algebra𝐿⊗𝐾𝐾{X; u}becomes isomorphic to𝐿{X}˜ and we can then apply all what precedes with 𝐿⊗𝐾𝐾{X; u}.

Inside𝐿{X} ≃˜ 𝐿⊗𝐾𝐾{X; u}sits the subset𝜂Z𝐾{X; u}consist- ing of series of the form𝜂𝑣𝑓 with𝑣 ∈ Zand 𝑓 ∈ 𝐾{X; u}. Let

𝐼𝐿,𝐽𝐿,𝑉𝐿and𝑊𝐿denote the spaces deduces by𝐼,𝐽,𝑉 and𝑊 re- spectively by extending scalars from𝐾to𝐿. Inside them, we can similarly define𝜂Z𝐼,𝜂Z𝐽,𝜂Z𝑉 and𝜂Z𝑊. We claim that then Algo- rithms 5 and 6 can be adapted so that they only have to manipulate vectors lying in these subsets. Indeed:

• the Big0(𝑇˜𝑖)’s can be computed without passing to𝐿because they are equal to the Big𝑢𝑖(𝑇𝑖)’s which are defined over𝐾;

• similarly the quotient𝑉/𝑁is defined over𝐾and then does not create any trouble;

• one checks that the Hermite normal form of a matrix whose column vectors are in𝜂Z𝑉, remains of this form;

• the column vectors of the matrices𝑀and𝑁 of Algorithm (6) all come from monomials and so have the required shape.

Proceeding this way, we avoid the time penalty due to scalar ex- tension from𝐾to𝐿and keep a complexity of𝑂(𝑛𝛿3)arithmetic operations. At the end of the day, the output of Algorithm 6 is then a Gröbner basis𝐺of𝐽𝐿consisting of series in𝜂Z𝐾{X; u}. Still stay- ing in the same subset, we can normalize these series so that they all have Gauss valuation0. In this case,𝐺 is not only a Gröbner basis of𝐽𝐿but also a Gröbner basis on the ideal𝐽𝐿 =𝐿⊗𝐾 𝐽 = 𝐽𝐿∩𝐾{X; u}. From [CVV19, Proposition 3.10], we deduce that 𝐺∩𝐾{X; u}remains a Gröbner basis of𝐽and hence of𝐽. Conclusion.Combining Algorithms 3 (or 4), 5 and 6 and the above discussion for covering the case of arbitrary log-radii, we finally end up with a complete FGLM algorithm as announced in Theo- rem 1.1 in the introduction. Plugging Algorithm 3a into the ma- chine, we notice that our algorithm can also accept Gröbner bases which are nonreduced as soon as they are reduced modulo the maximal ideal. However, in this case, the complexity may grow up rapidly, depending on the shape of the input Gröbner basis.

REFERENCES

[BvdHL11] Berthomieu, J., van der Hoeven, J., Lecerf, G., Relaxed algorithms for p-adic numbers, Journal de Théorie des Nombres de Bordeaux, 23(3):541–577, 2011.

[BL12] Berthomieu, J., Lebreton, R., Relaxed p-adic Hensel lifting for algebraic sys- tems, In Proceedings of ISSAC’12, pages 59-66. ACM Press, 2012.

[Bo14] Bosch, S., Lectures on Formal and Rigid Geometry, Lecture Notes in Mathe- matics2105, Springer, 2014.

[CRV16] Caruso, X., Roe, D., Vaccon T., Division and Slope Factorization of p-Adic Polynomials , in Proceedings: ISSAC 2016, Waterloo, Canada.

[CRV17] Caruso, X., Roe, D., Vaccon T., Characteristic polynomials of p-adic matrices, in Proceedings: ISSAC 2017, Kaiserslautern, Germany.

[CVV19] Caruso, X., Vaccon T., Verron T., Gröbner bases over Tate algebras, in Proceedings: ISSAC 2019, Beijing, China.

[CVV20] Caruso, X., Vaccon T., Verron T., Signature-based algorithms for Gröbner bases over Tate algebras , in Proceedings: ISSAC 2020, Kalamata, Greece.

[FGLM93] Faugère, J.-C., Gianni, P., Lazard, D., Mora, T., Efficient computation of zero-dimensional Gröbner bases by change of ordering, J. of Symbolic Compu- tation 16 (4), 329–344, 1993

[FP04] Fresnel, J., van der Put, M., Rigid analytic geometry and its applications, Birkhäuser, 2004

[Go88] Gouvea, F., Arithmetic of𝑝-adic Modular Forms, Lecture Notes in Mathe- matics1304, Springer-Verlag, 1988

[vdH97] van der Hoeven, J., Lazy multiplication of formal power series, in W. W.

Küchlin, editor, Proc. ISSAC ’97, pages 17–20, Maui, Hawaii, July 1997.

[IVY20] Ishihara, Y., Vaccon T., Yokoyama K., On FGLM Algorithms with Tropical Gröbner bases, in Proceedings: ISSAC 2020, Kalamata, Greece.

[KV04] Kaltofen, E., Villard, G., On the complexity of computing determinants, Com- put. Complexity vol. 13, 2014

[KV20] Kulkarni, A., Vaccon, T., Super-linear convergence in the p-adic QR- algorithm, arxiv:2009.00129

[LS07] Le Stum Bernard, Rigid Cohomology, Cambridge tracts in mathematics172, Cambridge University Press, 2007

(10)

[PS73] Paterson, M.S. and Stockmeyer, L.J., On the number of nonscalar multiplica- tions necessary to evaluate polynomials, SIAM J. Comput. 2, 60–66, 1973

[Sage] SageMath, the Sage Mathematics Software System (Version 9.2), The Sage Development Team, 2020, http://www.sagemath.org

[Ta71] Tate J., Rigid analytic spaces, Inventiones Mathematicae12, 1971, 257–289

Références

Documents relatifs