Square-free OM computation of global integral bases
Abstract
For a prime p, the OM algorithm finds the p-adic factorization of an irreducible polynomial f¿Z[x]¿¿Z[¿] in polynomial time. This may be applied to construct p-integral bases in the number field K defined by f. In this paper, we adapt the OM techniques to work with a positive integer N instead of p. As an application, we obtain an algorithm to compute global integral bases in K, which does not require a previous factorization of the discriminant of f.
Full text
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES JORDI GU` ARDIA AND ENRIC NART Abstract. For a prime p, the OM algorithm finds the p-adic factorization of an irreducible polynomial f∈Z[x] in polynomial time. This may be applied to construct p-integral bases in the number field Kdefined by f. In this paper, we adapt the OM techniques to work with a positive integer Ninstead of p. As an application, we obtain an algorithm to compute global integral bases in K, which does not require a previous factorization of the discriminant of f. Introduction The OM algorithm is a p-adic polynomial factorization method developed by Montes [10], based on ideas of Ore and MacLane [8, 9, 12]. For a number field Kwith defining polynomial f∈Z[x], the OM algorithm may be applied to compute p-integral bases for the different prime factors pof the discriminant disc(f) of f[5, 6, 7]. Hence, it facilitates the computation of a global integral basis, as long as a factorization of disc(f) is available. Since integer factorization is a heavy task, this approach is unfeasible in practice if fhas a large degree or large coefficients. It is well-known that the determination of the ring of integers of a number field is a computationally hard problem. Indeed, it is polynomial-time equivalent to the square-free factorization of integers ([2],[3],[1]). Chistov described in ([2], [3]) a polynomial time algorithm to determine integral bases of number fields given an oracle to find square-free factorizations. It is based upon a previous algorithm of factorization of polynomials over complete fields, where Newton polygons of first order are crulcial. Buchmann and Lenstra, inspired in a normalization criterion by Grauert- Remmert and Zassenhaus, introduced an algorithm which constructs successive augmentations of a given order in K[1]. Along this process, some splittings of disc(f) are obtained as a by-product. At a certain stage, one knows that the maximal order has been reached if certain factors of disc(f) are squarefree. Therefore, combined with an integer squarefree decomposition routine, this algorithm computes global integral bases of K. T he algorithm is efficient in cases where the splitting of disc(f), caused by the 2010 Mathematics Subject Classification. Primary 11R04; Secondary 11Y40. Key words and phrases. integral basis; OM algorithm; Newton polygon; types. Partially supported by grants MTM2015-66180-R and MTM2016-75980-P from the Spanish MEC. 1
2 GU` ARDIA AND NART order augmentation steps, yields factors which are sufficiently small to admit a feasible squarefree decomposition. In this paper, we adapt the OM techniques to work with a positive integer Ninstead of a prime p. This provides a method to compute a global integral basis of Kwhich behaves as the Buchmann-Lenstra algorithm. For a given prime p, the classical OM algorithm computes a tree of types whose leaves are in 1-1 correspondence with the p-adic irreducible factors of f. These types support valuations on Q(x) extending the p-adic valuation, which encode intrinsic data of the p-adic irreducible factors. The tree of types is computed by a branching process based essentially on two tasks: construction of higher order Newton polygons of fwith respect to the supported valuations, and polynomial factorization, over certain finite fields, of the residual polynomials of fwith respect to certain sides of the Newton polygons. For an integer N > 1, we consider similar squarefree (SF) types supporting pseudo-valuations on Q(x) extending the N-adic pseudo-valuation. Newton polygons with respect to pseudo-valuations are easy to define, but the residual polynomials of f, with respect to the sides of these polygons, have coefficients in certain finite (Z/NZ)-algebras. Hence, instead of polynomial factorization, we must use a polynomial squarefree decomposition, which makes sense for these artinian algebras. The new SF-OM algorithm computes a tree of SF-types containing intrinsic data of the p-adic irreducible factors of f, simultaneously for all prime factors pof N. When these data cannot be coherently integrated in one single tree of SF-types, the method yields a splitting of Nas a by-product. This leads to a computation of a global integral basis of K, similar in spirit to the Buchmann-Lenstra algorithm. Along the branching process of SF-types, a splitting of disc(f) is obtained, and at a certain stage, the accumulated data yield a global integral basis if certain factors are squarefree. This method speeds up the computations with respect to the classical OM algorithm, because the number of types to be considered is much smaller in general. For a double reason: a squarefree integer may have many prime factors, and a squarefree factor of a residual polynomial may have many irreducible factors too. As a consequence, the amount of integer linear algebra necessary to glue the local bases to build up a global basis is drastically reduced. We made an implementation in Magma of the SF-OM algorithm, which is available on request to the authors. The implementation includes a library to work with towers of artinian algebras. Even if this part is much slower than the internal pre-compiled routines of Magma for towers of finite fields, the new program is faster, in many cases, than our implementation of the classical Montes algorithm. The content of the paper is as follows. Section 1 contains basic algorithms for polynomials over artinian (Z/NZ)-algebras. Section 2 introduces SF- types and their basic properties. Section 3 describes the SF-OM algorithm.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 3 In section 4, we show that for any prime factor pof N, an SF-type determines a tree of classical p-types. This connection is used in section 5 to analyze arithmetic properties of Kencoded by SF-types. Section 6, inspired in [6], describes how to use the SF-OM algorithm to compute a global integral basis of K. In section 7, we discuss a few concrete examples. Acknowledgements. Claus Fieker suggested to us that an adequate development of Montes’ methods modulo N, based on polynomial squarefree decomposition over (Z/NZ)-algebras, could lead to this kind of results. We are indebted to him for his fine intuition. 1. Polynomial squarefree decomposition over (Z/NZ)-algebras 1.1. Inductive artinian algebras. For an integer N > 1, let A0=Z/NZ. Let Abe an artinian A0-algebra. That is, Spec(A) = Max(A) is finite and discrete. Then, Ais isomorphic to a product of local A0-algebras: (1.1) A≃Ym∈Max(A)Am. Since each Amhas a finite length as an A0-module, Ais a finite set. The isomorphism (1.1) induces an analogous decomposition of the polynomial ring A[y] in one indeterminate y: A[y]≃Ym∈Max(A)Am[y]. Irreducible polynomials are easily characterized in terms of their components. Also, non-unique factorization pathologies in A[y] are easily explained by this decomposition. For each m∈Max(A), let Fm=A/mbe the residue field and redm:A−→ Fm,redm:A[y]−→ Fm[y] the reduction modulo mhomomorphisms for the rings Aand A[y]. Definition 1.1. Let t∈A[y]and denote by lc(t)∈Aits leading coefficient. We say that t∈A[y]is unitary if lc(t)is a unit in A. We say that tis strongly unitary if all its non-zero coefficients are units. We say that tis squarefree if it is unitary and redm(t)∈Fm[y]is squarefree for all m∈Max(A). If s, t ∈A[y] and tis unitary, the natural routine q, r = Quotrem(s, t) computes q, r ∈A[y] such that s=tq +rand deg r < deg t. Clearly, (1.2) sA[y] + tA[y] = rA[y] + tA[y]. Also, a unitary tis a minimal polynomial: (1.3) deg t= Min{deg s|s∈tA[y], s 6= 0}. In particular, for a unitary tof positive degree, the chain of ideals generated by the powers of tis strictly decreasing: A[y])tA[y])t2A[y])· · ·
4 GU` ARDIA AND NART Hence, for all nonzero s∈A[y] we may define ordt(s) = kif s∈tkA[y]\tk+1A[y]. We agree that ordt(0) = ∞. Lemma 1.2. Let t∈A[y]be a unitary polynomial of degree n > 0. Let B=A[y]/(t)and denote by z∈Bthe class of y. Then, 1, z, . . . , zn−1is an A-basis of B, and the natural map A→Bis injective. Proof. Let M⊂Bbe the sub-A-module generated by 1, z, . . . , zn−1. Since zn∈M, we have M=B. On the other hand, (1.3) shows that 1, z, . . . , zn−1 are A-linearly independent and the map A→Bis injective. Definition 1.3. An inductive A0-algebra of length r≥0is an artinian algebra Awhich may be obtained by a chain of augmentations: (1.4) A0⊂A1⊂ · · · ⊂ Ar=A, Ai+1 =Ai[y]/(ti),0≤i < r, for some squarefree, strongly unitary ti∈Ai[y]such that ti(0) 6= 0 for i > 0. The moduli sequence of Ais the list [t−1, t0, . . . , tr−1]of the different “moduli”, starting formally with t−1:= N. 1.2. Polynomial squarefree decomposition over inductive algebras. Let Abe an inductive algebra of length ras in (1.4). In this section, we describe a squarefree decomposition routine (SFD) for polynomials with coefficients in A. We start with a gcdAroutine in A[y]. Given s, t ∈A[y], the idea is to mimic Euclid’s algorithm to compute a monic polynomial d= gcdA(s, t) in A[y] such that sA[y] + tA[y] = dA[y]. This is not always possible, but when the method crashes it outputs a factorization in A[y] of one of the moduli of A. The gcdAroutine is defined recursively, assuming that gcdAr−1is welldefined. At the bottom of the recursion, for a∈A0it makes sense to define gcdA−1(a, N)∈Z>0as the usual gcd(˜a, N), for any lifting ˜a∈Zof a. Algorithm 1.4 (gcdA(s, t)). Input: s, t ∈A[y], t6= 0, where Ais an inductive A0-algebra of length r≥0 with moduli sequence [t−1, t0, . . . , tr−1] Output: Either a proper factor of a modulus of A, or a monic d∈A[y] such that sA[y] + tA[y] = dA[y]. (1) while t6= 0 do (2) a←lc(t), b←gcdAr−1(a, tr−1) (3) if b6= 1 then return [r−1, b] else t←a−1t (4) q, r = Quotrem(s, t) (5) s←t,t←r (6) return s
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 5 Convention. Throughout the paper, we shall simply write gcdA(s, t) = d to indicate that the routine gcdA(s, t)does not crash and outputs d. In step 2, we identify a∈Awith a polynomial in Ar−1[y]. For the routine to be consistent, the condition gcdAr−1(a, tr−1) = 1 should imply that ais a unit in A. This fact, and the fundamental properties of gcdAare contained in the following result. Lemma 1.5. For a∈A, if gcdAr−1(a, tr−1)=1, then ais a unit in A. Moreover, if gcdA(s, t) = dfor certain s, t ∈A[y], then (a) sA[y] + tA[y] = dA[y], (b) For all m∈Max(A),redm(d) = gcd (redm(s),redm(t)) in Fm[y]. Proof. We prove these properties for the algebras A0, A1, . . . , Ar=Ain a recursive way. For r= 0, the condition gcdA−1(a, N) = 1 implies trivially that ais a unit in A0. Hence, the routine gcdA0is consistent. Once a routine gcdAiis consistent, the equality (a) is a consequence of (1.2) applied to each division with remainder in step (4). Then, (b) follows from (a) by the compatibility of all operations with reduction modulo m. Finally, suppose gcdAi(a, ti) = 1. From aAi[y]+tiAi[y] = Ai[y], we deduce a B´ezout identity au +tiv= 1, proving that ais a unit in Ai+1. With this gcdAroutine in hand, we can mimic the standard squarefree decomposition routine for polynomials with coefficients in a field of characteristic zero [14, §20.3]. If our polynomial in A[y] has a not too large degree, the output will be correct. Algorithm 1.6 (SFD). Input: A unitary f∈A[y] with deg f < p for all prime factors pof N. Output: A proper factor of a modulus of A, or pairs (s1, `1),...,(sk, `k), where s1, . . . , sk∈A[y] are monic squarefree pairwise coprime polynomials, and f= lc(f)s`1 1· · · s`k kwith 1 ≤`1<· · · < `k. (1) f←f/ lc(f), g←f/ gcdA(f, f0) (2) `←1, L←[ ] (3) while f6= 1 do (4) f←f/g,h←gcdA(f, g), s←g/h (5) if s6= 1 then append (s, `) to L (6) g←h,`←`+ 1 (7) return L Of course, although not specifically indicated, after every call to gcdAthe routine ends if we find a proper factor of a modulus of A. The next result is an immediate consequence of Lemma 1.5. Lemma 1.7. Suppose the SFD routine does not crash and outputs a list of pairs (s1, `1),...,(sk, `k). Then, for any m∈Max(A), the list (redm(s1), `1),...,(redm(sk), `k) is the canonical squarefree decomposition of redm(f)in Fm[y].
6 GU` ARDIA AND NART This result justifies that the output polynomials s1, . . . , sk∈A[y] are squarefree and pairwise coprime. Remark 1.8. The condition deg f < p for all p|Nfits well with our purpose of constructing a global integral basis in a number field of degree n. In this context, deg f≤nand Nwill be a positive divisor of the discriminant from which all prime factors p≤nhave been removed (cf. section 6.4). 2. Types with respect to pseudo-valuations Let v:O → Z∪ {∞} be a discrete valuation on an integral domain O, and let Ovbe the completion of Oat v. Atype over (O, v) is a discrete object parameterizing a certain equivalence class of monic irreducible polynomials in Ov[x] [7]. Types were introduced by Montes [10] as a tool to perform “higher dissections”, a procedure foreseen by Ore aiming at a polynomial factorization algorithm in Ov[x]. The papers [4, 7] contain variant definitions of a type, with slight changes in the normalization of certain data. Let N > 1 be an integer. This section introduces SF-types over (Z,ordN), where ordNis the N-adic pseudo-valuation introduced in section 2.1. For N=pprime, ordpis a valuation. However, SF-types over (Z,ordp) do not coincide with those introduced by Montes, which become irreducible types in our terminology (see Definition 4.1). 2.1. Pseudo-valuations. Definition 2.1. Apseudo-valuation on Ois a mapping v:O → Z∪ {∞} satisfying the following conditions for all a, b ∈ O: (1) v(a) = ∞if and only if a= 0. (2) v(−1) = 0. (3) v(ab)≥v(a) + v(b). (4) v(a+b)≥Min{v(a), v(b)}. These axioms imply that v(−a) = v(a) for all a∈ O, and equality holds in (4) when v(a)6=v(b) [13, §1]. Definition 2.2. We say that a, b ∈ O are v-equivalent if either a=b= 0, or v(a−b)> v(a). We then write a∼vb. Note that this implies v(a) = v(b). A pseudo-valuation may be extended to the ring of fractions S−1 vO, where Svis the multiplicatively closed subset of all non-zero stable elements: Sv={a∈ O \ {0} | v(ab) = v(a) + v(b) for all b∈ O} . Also, vdetermines a pseudo-valuation on the polynomial ring O[x] by: v(a0+a1x+· · · +asxs+· · · ) = Min{v(as)|0≤s}. We fix an integer N > 1, and let Obe either Zor the p-adic ring Zp, the latter case only when N=pis a prime number.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 7 Let A0=Z/NZand denote reduction modulo Nby redN:O → A0. Denote still by redN:O[x]→A0[y] the mapping that reduces modulo N the coefficients of a polynomial and changes the variable xto y. We define the N-adic pseudo-valuation ordN:O → Z∪ {∞},ordN(a) = kif a∈NkO \ Nk+1O. Consider the residual polynomial operator (2.1) R0:O[x]→A0[y], f 7→ redNf/NordN(f). We agree that R0(0) = 0. Clearly, SordN={a∈ O | R0(a) is a unit in A0}, Definition 2.3. A non-zero polynomial f∈ O[x]is said to be N-robust if all its non-zero coefficients are stable. The next results follow easily from the definitions. Lemma 2.4. Two polynomials f, h ∈ O[x]are ordN-equivalent if and only if ordN(f) = ordN(h)and R0(f) = R0(h). Lemma 2.5. Let f, h ∈ O[x]and suppose that fis N-robust. (1) ordp(f) = ordp(N) ordN(f)for all prime factors pof N. (2) ordN(fh) = ordN(f) + ordN(h)and R0(fh) = R0(f)R0(h). Thus, robust polynomials are stable for the extension of ordNto O[x]. However, they do not form a multiplicatively closed set. 2.2. Types over (O,ordN), also called SF-types. An SF-type t= (t0)of order zero over (O,ordN) is determined by the choice of a monic squarefree, strongly unitary t0∈A0[y]. Consider A1=A0[y]/(t0), and let z0∈A1be the class of y. Arepresentative of tis a monic N-robust g∈ O[x] such that R0(g) = t0. An SF-type of order r > 0 over (O,ordN) is a collection of data: t= (t0; (g1, λ1, t1); . . . ; (gr, λr, tr)) distributed into levels 0,1, . . . , r, such that •t0= (t0; (g1, λ1, t1); . . . ; (gr−1, λr−1, tr−1)) is an SF-type of order r−1 •gr∈ O[x] is a representative of t0 •λris a positive rational number •tr∈Ar[y] is monic squarefree, strongly unitary, with tr(0) 6= 0. By the very definition, from a type of order rwe may deduce types of order 0 ≤i≤r, by an adequate truncation: ti:= Trunci(t) := (t0; (g1, λ1, t1); . . . ; (gi, λi, ti)) . For the definition of a type to be complete we must define representatives of types of positive order, and describe the artinian inductive algebra Ar+1 attached to t. To this end, we discuss some data and operators that t
8 GU` ARDIA AND NART carries at the r-th level. Note that tsupports analogous objects at the levels 0,1, . . . , r −1, associated with the truncated types t0,...,tr−1. Numerical data e0=m0= 1, h0=λ0= 0, f0= deg t0, V0= 0. mr= deg gr=er−1fr−1mr−1= (e0· · · er−1)(f0· · · fr−1), λr=hr/er, with hr, erpositive coprime integers, `rhr+`0 rer= 1, B´ezout identity determined by 0 ≤`r< er, fr= deg tr, Vr=vr−1(gr) = er−1fr−1(er−1Vr−1+hr−1). From the latter recurrence it is easy to deduce the following identity: (2.2) Vr e1· · · er−1 =X 1≤j<r mr mj hj e1· · · ej . Inductive artinian algebra A0⊂A1⊂ · · · ⊂ Ar⊂Ar+1, Ar+1 =Ar[y]/(tr). Let zr∈Ar+1 be the class of yin Ar+1; thus, Ar+1 =Ar[zr] = A0[z0, . . . , zr]. By Lemma 1.2, Ar+1 is a free Ar-algebra with basis 1, zr, . . . , zfr−1 r. Since tr(0) is a unit in Ar,zris a unit in Ar+1. Newton polygon operator of order r Let v0:= ordNbe the N-adic pseudo-valuation, and let 2R2be the set of subsets of R2. For r > 0 the type tdetermines an operator: Nr:= Nvr−1,gr:O[x]→2R2. The Newton polygon of the zero polynomial is the empty set. For a non-zero f∈ O[x] we consider its canonical gr-expansion: (2.3) f=X0≤sasgs r, as∈ O[x],deg as< mr. For each s∈Z≥0we compute us=vr−1(asgs r)∈Z≥0, and we define Nr(f) as the lower convex hull of the set of points (s, us)∈R2|s≥0, as6= 0. The Newton polygon Nr(f) is the union of different adjacent sides, whose endpoints are called vertices of the polygon. The typical shape of this polygon is shown in Figure 1. The length of Nr(f) is by definition the abscissa of the last vertex. We denote it by `(Nr(f)) = bdeg(f)/mrc. Definition 2.6. The polygon N− r(f)determined by the sides of negative slope of Nr(f)is called the principal Newton polygon of f. If Nr(f)has no sides of negative slope, then N− r(f)is the one-point set formed by the left endpoint of Nr(f). For any λ∈Q>0, the λ-component of N:= N− r(f)is the segment Sλ(N) = {(x, y)∈N|y+λx is minimal }=N∩L, where Lis the line of slope −λwhich first touches Nfrom below.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 9 Figure 1. Newton polygon of a polynomial f∈ O[x] • • • • • • • P P P P P A A A A A A P P P P P A A A A A A • `(N− r(f)) ordgr(f)`(Nr(f)) Nr(f) vr−1(f) 0 • • • • • P P P P P A A A A A A P P P P P A A A A A A `(N− r(f)) ordgr(f) N− r(f) vr−1(f) 0 We denote by (sr(f), ur(f)) ∈N− r(f)the coordinates of the left endpoint of the segment Sr(f) := Sλr(Nr(f)) (see Figure 2). If Nr(f) has a side Sof slope −λr, then Sr(f) = S; otherwise, Sr(f) = {(sr(f), ur(f))}is a vertex of Nr(f). Pseudo-valuation of order r This is a pseudo-valuation vr:O[x]→Z∪ {∞}. For a non-zero f∈ O[x] having a gr-expansion as in (2.3), we define (2.4) vr(f) = erMin {us+sλr|s≥0}= Min {vr(asgs r)|s≥0}. Assuming that vr−1is a pseudo-valuation, it is easy to check that vris a pseudo-valuation too. Note that vr(f)/ercan be reinterpreted as the ordinate where the line L in Figure 2 cuts the vertical axis. Residual polynomial operator of order r Rr:= Rvr−1,gr,λr:O[x]→Ar[y]. The operator Rrmaps 0 to 0. For a non-zero f∈ O[x] with gr-expansion as in (2.3), we take the following residual coefficients cs∈Ar, for s∈Z≥0: cs=(0,if (s, us) lies above N− r(f),or us=∞, zνr−1(as) r−1Rr−1(as)(zr−1),if (s, us) lies on N− r(f). For r= 1, we agree that zν0(a) 0= 1 for all a∈ O[x], even when z0= 0. For r > 1 and a nonzero a∈ O[x], we define: (2.5) νr−1(a) = `0 r−1sr−1(a)−`r−1ur−1(a)∈Z, where sr−1(a), ur−1(a) were introduced in Definition 2.6. Since zr−1is a unit in Ar, the element zνr−1(as) r−1∈Aris well defined regardless of the sign of the integer exponent.
16 GU` ARDIA AND NART This implies fr= deg(tr)≤deg Rr(f)≤deg(f)/mrer, the last inequality by the definition of the operator Rr. This proves (i). Write f=b0+gq. By (i), b06∼vr−gq, so that vr(f) = Min{vr(b0), vr(gq)}. By (C), vr(gq) = vr(g) + vr(q). A recursive argument proves (ii). Corollary 2.10. Let tbe a type of order r≥1. Let f, h ∈ O[x]with f t-robust. Then, N− r(fh) = N− r(f) + N− r(h). Proof. The polygon N− r(f)+N− r(h) is uniquely determined by the property Sλ(N− r(f) + N− r(h)) = Sλ(N− r(f)) + Sλ(N− r(h)), for −λrunning on the slopes of N− r(f) and N− r(h) [4, Sec. 1.1]. This is satisfied by N− r(fh), by (C) of Theorem 2.9 applied to the type obtained by replacing λrwith λin the data of the last level. Definition 2.11. Let tbe a type of order r≥0. For any f∈ O[x]we define ordt(f) = ordtr(Rr(f)) in Ar[y](see section 1.1). If ordt(f)>0we say that tdivides f, and we write t|f. Corollary 2.12. Let tbe a type of order r≥1and let tr−1= Truncr−1(t). (1) For any f∈ O[x]we have `(N− r(f)) = ordtr−1(f). (2) If f∈ O[x]is t-robust, then ordtr−1(fh) = ordtr−1(f) + ordtr−1(h),∀h∈ O[x]. Proof. Denote g=grand let f=P0≤sasgsbe the canonical g-expansion of f. Let I={s∈Z≥0|vr−1(asgs) = vr−1(f)}, and take s0= Min(I), f0=Xs∈Iasgs=gs0h. By (D) of Theorem 2.9, I6=∅,s0=`(N− r(f)), and f∼vr−1f0. Since gis tr−1-robust, (A) and (C) of Theorem 2.9 show that Rr−1(f) = Rr−1(f0) = Rr−1(g)s0Rr−1(h) = ts0 r−1Rr−1(h). Hence, the corollary will be proven if we show that tr−1-Rr−1(h). To this end, write h=as0+gq. By (D) and (C) of Theorem 2.9: vr−1(h) = vr−1(as0) = vr−1(gq). Hence, (B) of Theorem 2.9 shows that: (2.16) yνr−1(as0)Rr−1(as0) + yνr−1(gq)Rr−1(gq) = yνr−1(h)Rr−1(h). Now, Rr−1(gq) = Rr−1(g)Rr−1(q) = tr−1Rr−1(q). Suppose that tr−1divides Rr−1(h). Since zν0(a) 0= 1 for all a∈ O[x], and zr−1is a unit in Arfor r > 1, we may replace y=zr−1in (2.16), leading to Rr−1(as0)(zr−1) = 0. This is impossible, because deg Rr−1(as0)< fr−1= deg tr−1. This proves (1). Item (2) follows immediately from (1) and Corollary 2.10.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 17 3. The SF-OM algorithm Given Nand a monic irreducible f∈Z[x], the SF-OM algorithm either finds a proper factor of N, or constructs an SF-OM representation of fwith respect to N. That is, a finite tree T(f) of SF-types with the following properties: (1) The root nodes are the types of order zero attached to the squarefree factors of redN(f) in A0[y]. (2) The leaves t1,...,tmsatisfy ordti(f) = 1 and Rep(ti)∩Rep(tj) = ∅ for all 1 ≤i6=j≤m. Initially, we compute a squarefree decomposition of redN(f) in A0[y]: redN(f) = T`1 1· · · T`k k,1≤`1<· · · < `k. For each squarefree factor Tthe type of order zero t0= (T) is taken as one of the root nodes of the tree. Let `:= ordt0(f) = ordT(redN(f). If `= 1, then t0is a leaf too. If ` > 1, then t0sprouts several branches tλ,t = (T; (g, λ, t)), where gis a representative of t0,−λruns on the slopes of N− v0,g(f) and truns on the squarefree factors of Rv0,g,λ(f)∈A1[y], provided by the SFD algorithm. All types tobtained along the process branch in a similar way, as long as ordt(f)>1. Let us briefly review the relevant subroutines which are used. SFD(A,ϕ) Algorithm 1.6 applied to ϕ∈A[y], plus a test to check if the squarefree factors are strongly unitary. Newton(t,`,f) The type tof order iis equipped with a representative g. The routine computes the first `+ 1 coefficients a0, . . . , a`of the canonical g-expansion f=P0≤sasgs, and the Newton polygon of the cloud of points (s, vi(asgs)) for 0 ≤s≤`. Then, it tests if gcdAi(Ri(as), ti) = 1, and certificates that the input polynomial fis t-robust. ResidualPolynomial(t,λ,f) The type tof order iis equipped with a representative g. The routine computes the residual polynomial Rvi,g,λ(f)∈Ai+1[y]. Representative(t) Computation of a representative of tbased on [7, Prop. 3.4]. We now describe the SF-OM algorithm in pseudocode. We emphasize the type to which a certain level data belongs as a superindex: gt i,λt i,tt i, etc. SF-OM ALGORITHM INPUT: −A monic irreducible polynomial f∈Z[x] of degree n > 1. −An integer N > 1 whose prime factors psatisfy p>n. 1Call SFD(A0,redN(f)), with output L= [(T1, `1),...,(Tk, `k)]
18 GU` ARDIA AND NART 2If `1= 1 THEN build the type t= (T1), set Leaves ←[t] and delete (T1, `1) from the list LELSE Leaves ←[ ] 3FOR each (T, `) in LDO 4Take a robust monic lifting g∈Z[x] of Tand create a type twith tt 0←T, ωt 1←`, gt 1←g, At 1←A0[y]/(T) Initialize a stack BranchNodes ←[t] WHILE #BranchNodes >0DO 5Extract a type t0from BranchNodes. Let i−1 be its order 6FOR every slope −λof Newton(t0,ωt0 i,f)DO 7λt0 i←λ,Ri(f)←ResidualPolynomial(t0,λ,f) 8Call SFD(At0 i,Ri(f)), with output L0= [(T0 1, `0 1),...,(T0 j, `0 j)] 9FOR each (T0, `0) in L0DO 10 t ←t0tt i←T0, At i+1 ←At i[y]/(T0), ωt i+1 ←`0 11 IF `0= 1 THEN add tto Leaves and go to step 5 12 gt i+1 ←Representative(t)and add tto BranchNodes END WHILE OUTPUT: If no proper factor of Nis detected along the process, the types in Leaves are the leaves of an SF-OM representation of fwith respect to N. This description of the SF-OM algorithm omits implementation details which are not relevant for the purposes of this paper, like an acceleration of the routine based on the use of optimal SF-types. Also, we omitted all hooks. All subroutines crash if a proper factor of N, or of some modulus ti∈Ai[y], is detected. In the former case, the routine outputs the factor of Nand ends. In the latter case, the algorithm modifies some accumulated data and continues. More precisely, if a factorization ti=ϕψ in Ai[y] is detected, then all types tin the stack BranchNodes whose truncation at the i-th level is Trunci(t)=(t0; (g1, λ1, t1); . . . ; (gi, λi, ti)) are replaced with two types of order i: t0= (t0; (g1, λ1, t1); . . . ; (gi, λi, ϕ)) ,t00 = (t0; (g1, λ1, t1); . . . ; (gi, λi, ψ)) . 4. Tree of irreducible types associated with an SF-type We fix an SF-type t= (t0; (g1, λ1, t1); . . . ; (gr, λr, tr)). Let Abe the inductive artinian algebra attached to tin section 2.2. Definition 4.1. We say that tis unramified if e0=· · · =er= 1. We say that tis irreducible if Nis a prime and all ti∈Ai[y]are irreducible.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 19 Irreducible types coincide with the types introduced by Montes [10, 4], except for a different normalization of the data and operators they support, which has been taken from [7]. We fix a prime factor pof N, and denote by Maxp(A) the set of maximal ideals containing p. For instance, Maxp(A0) = {m0}, with m0=pA0. 4.1. Tree of maximal ideals of an inductive artinian algebra. Consider the formal disjoint union of all the sets Maxp(Ai): Mp=ar+1 i=0 Maxp(Ai) Note that Maxp(Ai) and Maxp(Ai+1) are disjoint subsets of Mpeven if Ai=Ai+1, which may occur for several indices 0 ≤i≤r. The set Mpmay be given the structure of a finite connected tree with root node m0, by defining the previous node of any n∈Maxp(Ai), with i > 0, as the prime ideal n∩Ai−1. The leaves are the elements in Maxp(A). The path joining any m∈Maxp(A) with the root node is: m07→ m17→ · · · 7→ mr7→ mr+1 =m,mi:= m∩Ai,0≤i≤r+ 1. The finite field Fm=A/mis an inductive artinian algebra with intermediate fields Fmi=Ai/mi, for 0 ≤i≤r+ 1. The canonical mapping redm:A→Fmrespects the inductive structures: (4.1) A0⊂A1⊂ · · · ⊂ Ar⊂A ↓ ↓ ↓ ↓ redm Z/pZ=Fm0⊂Fm1⊂ · · · ⊂ Fmr⊂Fm. The branches of any node n∈Maxp(Ai) are parameterized by the irreducible factors of redn(ti) in Fn[y]. Choose monic polynomials ψ∈Ai[y] such that redn(ψ) are these irreducible factors. Each pair (n, ψ) determines a maximal ideal of Ai[y], and the class modulo tiAi[y] of this ideal is a maximal ideal of Ai+1 =Ai[y]/(ti) whose intersection with Aiis n. 4.2. Admissible φ-expansions with respect to irreducible types. Consider an irreducible type of order r≥0 over (Zp,ordp): t?= (ψ0; (φ1, λ1, ψ1); . . . ; (φr, λr, ψr)) . The inductive Artin algebra Fassociated with t?is a chain of finite fields: Z/pZ=F0⊂F1⊂ · · · ⊂ Fr⊂Fr+1 =F. All polynomials in Zp[x] are t?-robust. Also, a representative of t?is necessarily irreducible in Zp[x] [4, Thm. 2.11]. Denote by N? i,v? i,R? ithe Newton polygon operators, valuations and residual polynomial operators associated with t?, respectively. Denote φ=φrand consider an arbitrary φ-expansion of a non-zero polynomial f∈Zp[x], not necessarily the canonical one: (4.2) f=b0+b1φ+· · · +bsφs+· · · , bs∈Zp[x].
20 GU` ARDIA AND NART Take u0 s=v? r−1(bsφs) for all s≥0, and let Mbe the Newton polygon obtained as the lower convex hull of the set of points (s, u0 s) with bs6= 0. To any integer abscissa 0 ≤swe attach a residual coefficient as usual: c0 s=(0,if (s, u0 s) lies above M, or u0 s=∞, (z? r−1)ν? r−1(bs)R? r−1(bs)(z? r−1),if (s, u0 s) lies on M. For the points (s, u0 s) lying on Mwe now can have c0 s= 0, because R? r−1(bs) could be divisible by ψr−1in Fr−1[y]. Let Sbe the λr-component of M(Definition 2.6), with endpoints having abscissas s0≤s0 0=s0+der. We can define the residual polynomial R0 r(f) = c0 s0+c0 s0+ery+· · · +c0 s0+deryd∈Fr[y]. Definition 4.2. We say that the φ-expansion (4.2) is admissible if c0 s6= 0 for each abscissa sof a vertex of M−. Admissible φ-expansions yield the same principal Newton polygon and the same residual polynomials as the canonical φ-expansion. Definition 4.3. Let N⊂R≥0×Rbe a Newton polygon, and let i0be the abscissa of the left endpoint of N. For any i0≤s≤`(N), let (s, ys(N)) be the unique point on Nof abscissa s. For 0≤s<i0we take ys(N) = ∞. We say that Nlies on or above a Newton polygon M, and we write N≥ M, if ys(N)≥ys(M)for all 0≤s≤Min{`(N), `(M)}. Lemma 4.4. [4, Lem. 1.12] For any φ-expansion one has (N? r)−(f)≥M−. If the φ-expansion is admissible, then (N? r)−(f) = M−and R? r(f) = R0 r(f). 4.3. Tree of irreducible p-types attached to an SF-type. Recall that tr−1= Truncr−1(t). From now on, we make the following Assumption: Either ρ:= ordp(N) = 1 or tr−1is unramified. The next result reveals, under certain conditions, some arithmetic information about the prime pencoded by the SF-type t. Theorem 4.5. For each m∈Maxp(A)there exists an irreducible type tm= (ψm,0; (φm,1, λm,1, ψm,1); . . . ; (φm,r, λm,r, ψm,r)) over (Zp,ordp), uniquely determined by the following conditions, where all data and operators of tmare marked with a subscript m: (A) Each φm,i ∈Zp[x]is a p-adic irreducible factor of gi, and λm,i =ρλi, for 1≤i≤r. In particular, em,i =eifor i<r, and em,r =er/gcd(ρ, er). (B) Denote Gm,i =gi/φm,i ∈Zp[x]for 1≤i≤r. The following constants, which depend only on tand m, are non-zero: ξi=zνm,i−1(Gm,i) m,i−1Rm,i−1(Gm,i)(zm,i−1)∈F∗ m,i.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 21 Hence, starting with the initial values χ0= redp(N/pρ),σ0= 1, we may consider non-zero constants in Fm,i defined by the recurrent formulas: χi= (χi−1)`0 i−`iViξ`i i, σi= (χi−1)−(eiVi+hi)ξei i,1≤i≤r. (C) There is a commutative diagram of vertical isomorphisms Fm0⊂Fm1⊂ · · · ⊂ Fmr⊂Fmr+1 =Fm kι0↓ι1· · · ↓ ιr↓ιr+1 Fm,0⊂Fm,1⊂ · · · ⊂ Fm,r ⊂Fm,r+1 determined by ιi+1 (redm(zi)) = σizm,i, for 0≤i≤r. We shall consider these isomorphisms as identities. Thus, the mapping redmin (4.1) may be considered as a homomorphism between the inductive Artin algebras of tand tm. Under these identifications, we have redm(zi) = σizm,i, ψm,i(y) = σ−deg(ψ) iredm(ψ)(σiy),0≤i≤r, where mi+1 = (mi, ψ)is the parameterization described in section 4.1. (D) The assignment n7→ tnyields a tree isomorphism between the subtree M0 p⊂ Mpobtained by deleting the root node m0, and the full finite subtree of T(Zp,ordp)having as leaves the types tmfor all m∈Maxp(A). (E) The sets Rep(tm), for mrunning on Maxp(A), are pairwise disjoint. Moreover, Pm∈Maxp(A)mm,r+1 =mr+1/gcd(ρ, er). (F) Let f∈ O[x]be a t-robust polynomial. (i) If r > 0, we have N− m,r(f) = Eρ(N− r(f)), where Eρ:R2→R2is the affinity Eρ(x, y)=(x, ρy). (ii) Rm,r(f)(y) = τr(f) redm(Rr(f)) (σrygcd(ρ,er)), where τ0(f) = χv0(f) 0, and τr(f)=(χr−1)ur(f)−sr(f)Vrξsr(f) rfor r > 0. (G) For any f∈ O[x],vm,r(f)≥(ρ/ gcd(ρ, er)) vr(f). If fis t-robust, then equality holds. (H) Suppose that gcd(ρ, er)=1. Every g∈Rep(t)factors in Zp[x]as a product of monic irreducible polynomials: g=Ym∈Maxp(A)φm, φm∈Rep(tm), such that tm-φnfor all m,n∈Maxp(A),m6=n. Proof. With the notation of section 4.1, let m= (mr, ψ), for some monic ψ∈Ar[y] such that redm(ψ) is an irreducible factor of redm(tr) in Fmr[y]. We proceed by induction on the order rof t. First, suppose r= 0. We take tm= (ψm,0), for ψm,0= redm(ψ). Thus, Fm0=Z/pZ=Fm,0and Fm=A1/m≃Fm0[y]/(ψm,0) = Fm,1. This isomorphism sends redm(z0) to zm,0. Since t0is squarefree, the factors ψm,0are pairwise different. This proves (C) and (D).
22 GU` ARDIA AND NART Clearly, vm,0= ordp≥ρ v0. Equality holds for t-robust polynomials by Lemma 2.5. This proves (G). For a non-zero f∈ O[x], Rm,0(f) = redpf/pvm,0(f)and R0(f) = redNf/Nv0(f). Since redp= redm◦redN, for a robust fwe get by (G): (4.3) Rm,0(f) = redp(N/pρ)v0(f)redm(R0(f)) = τ0(f) redm(R0(f)) . This proves (F). Let g∈Rep(t). Since v0(g) = 0, we have τ0(g) = 1 and (4.3) shows that redp(g) = Rm,0(g) = redm(R0(g)) = redm(t0) = Ym∈Maxp(A)ψm,0. By Hensels’ lemma, g=Qm∈Maxp(A)φm, for monic irreducible φm∈Zp[x] with redp(φm) = ψm,0. Each φmis a representative of tmand the sets Rep (tm) are clearly pairwise disjoint. Also, Xmmm,1=Xmdeg φm= deg g=m1. This proves (E) and (H). The proof for types of order zero is complete. We now assume r > 0 and the existence of an irreducible p-type tmr= (ψm,0; (φm,1, λm,1, ψm,1); . . . ; (φm,r−1, λm,r−1, ψm,r−1)) , such that for each statement (X) of the theorem, the analogous statement (Xr−1) concerning tr−1is true. By condition (Hr−1), the p-adic factorization of grtakes the form: gr=Yn∈Maxp(Ar)φn. Take φm,r =φmr∈Rep(tmr). Consider the irreducible p-type of order r: tm:= (tmr; (φm,r, λm,r, ψm,r)) , where λm,r ∈Q>0and ψm,r ∈Fm,r[y] monic irreducible, with ψm,r(0) 6= 0, are uniquely determined by (A), (B) and (C): λm,r =ρλr, ψm,r(y) = σ−deg(ψ) rredm(ψ)(σry). Since tr(0) is a unit in Ar, we have redm(ψ)(0) 6= 0. Hence, we need only to prove (B); that is, ξr6= 0, to ensure that σr6= 0 and ψm,r is well defined. By Theorem 2.9, the operator Rm,r−1is multiplicative; hence, (4.4) δ:= Rm,r−1(gr/φm,r)(zm,r−1) = Yn6=mr Rm,r−1(φn)(zm,r−1). For every n∈Maxp(Ar), n6=mr, we have tmr-φnby (Hr−1). Hence, ψm,r−1-Rm,r−1(φn), and Rm,r−1(φn)(zm,r−1)6= 0. Thus, the constant δof (4.4) is nonzero, and this implies ξr6= 0. In fact, ξ1=δfor r= 1, whereas for r > 1, ξris equal to δtimes a power of the unit zm,r−1. Therefore, our type tmis well defined and satisfies (A), (B) and (C). By construction, nis the previous node of min M0 pif and only if tnis the previous node of tmin T. This proves (D).
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 23 Let us prove (E). Since any g∈Rep(tm) is irreducible in Zp[x], [4, Lem. 2.4] shows that Rm,i(g) is a power of the irreducible polynomial ψm,i in Fm,i[y], for all 0 ≤i≤r. Now, for n∈Maxp(A), n6=m, let mi=m∩Ai be the greatest common node in the paths joining mand nwith m0. By the construction of tmand tn, we have ψm,i 6=ψn,i, so that gcannot be a representative of tn. Thus, the sets Rep(tm) and Rep(tn) are disjoint. The branches m=n1,...,nkof mrare determined by monic liftings ψ= ψ1, . . . , ψk∈Ar[y] of the irreducible factors of the squarefree polynomial redm(tr) in Fm,r[y]. Thus, (4.5) Xk j=1 fnj,r = deg tr=fr. Let d= gcd(ρ, er). By (A), em,r =er/d for all m∈Maxp(A). By (4.5), Xk j=1 mnj,r+1 =Xk j=1 enj,rfnj,rmnj,r =Xk j=1(er/d)fnj,rmmr,r =erfrmmr,r/d. By our assumptions, gcd(ρ, ei) = 1 for all i<r. Thus, by (Er−1): Xm∈Maxp(A)mm,r+1 =Xn∈Maxp(Ar)erfrmn,r/d =erfrmr/d =mr+1/d. This ends the proof of (E). Let us prove (F). Assume that f∈ O[x] is t-robust. Denote g=gr, φ=φm,r and G=g/φ. The canonical g-expansion of finduces in a natural way a φ-expansion: (4.6) f=X0≤sasgs=X0≤sbsφs, bs=asGs. Let us=vr−1(asgs), u0 s=vm,r−1(bsφs) = vm,r−1(asgs). Let Mbe the Newton polygon determined by the φ-expansion (4.6); that is, Mis the lower convex hull of the set of points {(s, u0 s)|s≥0}. Since asand gare tr−1-robust, (Gr−1) and Theorem 2.9,(C) show that (4.7) u0 s=vm,r−1(as) + s vm,r−1(g) = ρ(vr−1(as) + s vr−1(g)) = ρ us, for all s≥0. Hence, M=Eρ(Nr(f)). We now proceed to compare M−with N− m,r(f) by using Lemma 4.4. By item (C) of Theorem 2.9, the functions sm,r−1and um,r−1convert a product of polynomials into a sum of integers. Therefore, the function νm,r−1=`0 m,r−1sm,r−1−`m,r−1um,r−1has the same property.
24 GU` ARDIA AND NART Hence, by using (Fr−1),(ii) and (Cr−1), for any abscissa ssuch that (s, u0 s) lies on M, the residual coefficient c0 smay be expressed as: (4.8) c0 s=zνm,r−1(bs) m,r−1Rm,r−1(bs)(zm,r−1) =zνm,r−1(as)+sνm,r−1(G) m,r−1Rm,r−1(as)(zm,r−1)Rm,r−1(G)s(zm,r−1) =ξs rzνm,r−1(as) m,r−1Rm,r−1(as)(zm,r−1) =ξs rzνm,r−1(as) m,r−1τr−1(as) redm(Rr−1(as)) (σr−1zr−1), =ξs rzνm,r−1(as) m,r−1τr−1(as) redm(Rr−1(as)(zr−1)) 6= 0, because, being ft-robust, Rr−1(as)(zr−1) is a unit in Arby Lemma 1.5. Therefore, the φ-expansion (4.6) is admissible with respect to tm, and Lemma 4.4 shows that M−=N− m,r(f) and R0 r(f) = Rm,r(f). The equality between Newton polygons implies N− m,r(f) = Eρ(N− r(f)). For the proof of item (ii) we need the following fact. Claim. νm,r−1(as) = νr−1(as) for all s≥0. By (Fr−1), N− m,r−1(as) = Eρ(N− r−1(as)). The affinity Eρmaps the λr−1- component of N− r−1(as) into the ρλr−1-component of Nm,r−1(as); thus, (4.9) sm,r−1(as) = sr−1(as), um,r−1=ρ ur−1(as). By (A), em,r−1=er−1. By our assumptions, either er−1= 1 or ρ= 1. If er−1=em,r−1= 1, then `m,r−1=`r−1= 0 and `0 m,r−1=`0 r−1= 1. If ρ= 1, then λm,r−1=λr−1, so that hm,r−1=hr−1. Hence, `m,r−1=`r−1 and `0 m,r−1=`0 r−1. The Claim follows in both cases from (4.9). We now compare Rr(f) with R0 r(f) = Rm,r(f). Let s0=sr(f)≤s0 0be the abscissas of the endpoints of the λr-component Sof N− r(f). The affinity Eρmaps Sinto the ρλr-component of M; thus, the latter component has endpoints with the same abscissas s0≤s0 0. For any integer s0≤s≤s0 0we have u0 s=ρusby (4.7). Hence, the point (s, us) lies above N− r(f) if and only if the point (s, u0 s) lies above M−=Eρ(N− r(f)). In this situation, we have cs=0=c0 s. Let now s=sj=s0+jerbe such that (s, us) lies on S. The identity (4.10) ξsj rσ−νr−1(asj) r−1τr−1(asj) = τr(f)σj r, is straightforward to deduce from the definition of each constant. We need only to have in mind two identities: ur−1(asj) + sr−1(asj)λr−1=vr−1(asj)/er−1, vr−1(asj) + sjVr+jhr=usj+ (jer)λr=ur(f), which follow from the definition of vr−1and the fact that (sj, usj) lies on S. By (4.8), the Claim, (Cr−1) and (4.10), we have: c0 sj=ξsj rzνr−1(asj) m,r−1τr−1(asj) redmRr−1(asj)(zr−1) =ξsj rσ−νr−1(asj) r−1τr−1(asj) redmcsj=τr(f)σj rredm(csj).
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 25 Item (ii) follows from this identity. In fact, csjis the coefficient of yjin Rr(f), whereas c0 sjis the coefficient of yjd in R0 r(f), where d= gcd(ρ, er), because sj=s0+jer=s0+jdem,r. This ends the proof of (F). Let us prove (G). By Lemma 4.4, N− m,r(f)≥M−. Also, u0 s≥ρ usfor all s, by (Gr−1). Thus, M≥Eρ(Nr(f)), leading to N− m,r(f)≥Eρ(N− r(f)). By definition, vm,r(f)/em,r is the ordinate where the line of slope −ρλr first touching N− m,r(f) from below cuts the vertical axis. Since vr(f)/er admits the same interpretation with respect to the polygon N− r(f) and the similar line of slope −λr, we deduce that vm,r(f)/em,r ≥ρ vr(f)/er. By (A), this implies vm,r(f)≥(ρ/ gcd(ρ, er)) vr(f). Also, this argument shows that equality holds if N− m,r(f) = Eρ(Nr(f)), which follows from item (i) of (F) for a t-robust f. Finally, let us prove (H). Let gbe a representative of t, so that Rr(g) = tr. Since gis t-robust, item (ii) of (F) shows that Rm,r(g)(y) = τr(g) redm(Rr(g))(σry) = τr(g) redm(tr)(σry). Since tris squarefree, the irreducible factor ψm,r of redm(tr)(σry) divides Rm,r(g) only once; in other words, ordtm(g) = 1. Let g=φ1· · · φkthe factorization of ginto a product of monic irreducible polynomials in Zp[x]. Since tmis irreducible, 1 = ordtmg= ordtmφ1+· · · + ordtmφk. Hence, there exists an index 1 ≤i≤ksuch that ordtmφi= 1 and ordtmφj= 0 for all j6=i. Let us denote φm=φi. An irreducible φm∈Zp[x] with ordtmφm= 1 satisfies Rm,r(φm) = ψm,r and has degree mm,r+1 [4, Lem. 2.4]. Hence, φmis a representative of tm. By (E), these factors φmare pairwise different, and: deg g=mr+1 =Xm∈Maxp(A)mm,r+1 =Xm∈Maxp(A)deg φm. Hence, g=Qm∈Maxp(A)φm. Corollary 4.6. For r > 1and any m∈Maxp(A)we have: sm,r−1(Gm,r) = 0, um,r−1(Gm,r) = (ρVr−Vm,r)/er−1. Proof. As mentioned after Definition 2.8, Nr−1(gr) is one-sided of slope −λr−1and has left endpoint (0, Vr/er−1), whereas Nm,r−1(φm,r) is one-sided of slope −ρλr−1and has left endpoint (0, Vm,r/er−1). Hence, sr−1(gr)=0, ur−1(gr) = Vr/er−1, sm,r−1(φm,r) = 0, um,r−1(φm,r) = Vm,r/er−1. On the other hand, (F) of Theorem 4.5 shows that sm,r−1(gr) = sr−1(gr)=0, um,r−1(gr) = ρ ur−1(gr) = ρ Vr/er−1. By Corollary 2.10, sm,r−1(Gm,r) = sm,r−1(gr)−sm,r−1(φm,r) = 0, and um,r−1(Gm,r) = um,r−1(gr)−um,r−1(φm,r)=(ρVr−Vm,r)/er−1.
32 GU` ARDIA AND NART For the proof of (5.8), we abuse of language and omit evaluation at θand classes modulo p. From φr=grπ−Vr rand φm,r =φm,rπ−Vm,r m,r , we deduce φr/φm,r =Gm,r πr/πρ m,r−VrπVm,r−ρVr m,r . If r= 1, then u= 0 = V1, and (5.10) yields φr/φm,r =γt,p(ξ1), as desired. If r > 1, then (5.10) and the induction hypothesis lead to φr/φm,r =Gm,rγt,pχ−Vr r−1πVm,r−ρVr m,r =γt,pξrz`r−1u m,r−1γt,pχ−Vr r−1πu m,r−1π−er−1u m,r =γt,pξrχ−Vr r−1γ`r−1 m,r−1πm,r−1π−er−1 m,r u=γt,pξrχ−Vr r−1, because γ`r−1 m,r−1πm,r−1π−er−1 m,r = 1 in Qp(x) by a direct application of (5.5). This ends the proof of the first identity in (5.8). The other two identities follow easily from the first one and the induction hypothesis. Let us prove (A). Since γtm(zm,i) = γm,i(θ) + p, for all 0 ≤i≤r, the homomorphism γtdefined in (B) satisfies: γt,p(redp(zi)) = γtm,p(redm(zi)) = γtm,p(σizm,i) =γtm,p(σi) [γm,i(θ) + p] = γi(θ) + p=γi(θ) + p, by Theorem 4.5 and the second identity in (5.8). Hence, the mapping γt defined in (A) is well defined and coincides with the mapping γtdefined in (B). Finally, for any m∈Maxp(A), the homomorphism γtembeds the field Fmdiagonally into Qp∈PtmFp. Since the sets Ptmare pairwise disjoint, γtis injective. This ends the proof of (A). Let us prove (C). By Lemma 5.6 and (5.7), for any p∈ Ptwe have vr(φs0 rπu0 r) = s0hr+u0er=vr(h), wp(φs0 r(θ)πu0 r(θ)) = ρ vr(h)/(e1· · · er). Let d= deg Rr(h) and denote sj=s0+jerfor 0 ≤j≤d. Let h= P0≤sasgs rbe the canonical gr-expansion of hand consider h0=Pd j=0 asjgsj r. For any integer abscissa s6=sjwe have vr(asgs r)> vr(h); hence, wp(as(θ)gr(θ)s)> ρ vr(h)(e1· · · er) = wp(φs0 r(θ)πu0 r(θ)) by Proposition 5.3. Therefore, (5.11) h(θ)φr(θ)−s0πr(θ)−u0+p=h0(θ)φr(θ)−s0πr(θ)−u0+p. Now, for any 0 ≤j≤d, we have the following identity in Q(x), which is easy to deduce from the recurrent formulas of (5.5) (cf. [4, Lem. 3.4]): asjgsj rφ−s0 rπ−u0 r=γνr−1(asj) r−1asjφ−sr−1(asj) r−1π−ur−1(asj) r−1γj r, If we evaluate the left-hand side at θ, take classes modulo pand sum over 0≤j≤d, we get the left-hand side of (5.9), thanks to (5.11). If we do the same operation with the right-hand side, we get the right-hand side of (5.9), thanks to the induction hypothesis and the definition of Rr(h).
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 33 Corollary 5.9. If ordt(f) = 1 and Rr(f) = trqwith gcdAr(q, tr) = 1, then: (1) ep=e1· · · erfor all p∈ Pt, and Pp∈Ptfp=f0f1· · · fr. (2) γtis an isomorphism. Proof. By Corollary 4.7, ordtm(f) = 1 for all m∈Maxp(A). This implies that every Ptmis a one-element set, say Ptm={pm}. By [4, Cor. 3.8], epm=em,1· · · em,r =e1· · · er, fpm=fm,0fm,1· · · fm,r. By a recurrent application of (4.5), X p∈Pt fp=X m∈Maxp(A) fm,0· · · fm,r =frX n∈Maxp(Ar) fn,0· · · fn,r−1=fr· · · f0. In particular, dimZ/pZ(redp(A)) = f0· · · fr= dimZ/pZ(⊕p∈PtFp). Since γtis injective, it is an isomorphism. 6. Computation of integral bases We keep the notation and assumptions from the last section. 6.1. Reduced p-integral bases. Let Z(p)be the local ring of Zat the prime ideal pZ. Let ZK,p ⊂Kbe the integral closure of Z(p)in the number field K. This ring is a free Z(p)-module of rank n. A Z(p)-basis of ZK,p is called a p-integral basis of K. Consider the following pseudo-valuation extending ordpto K: w:= wp:K−→ e−1Z∪ {∞}, w(α) = Minp∈P{wp(α)}, where e= lcm {ep|p∈ P}. The p-integral elements α∈ZK,p are characterized by the condition w(α)≥0. Clearly Q∗⊂ Sw(cf. Definition 2.1). Definition 6.1. A subset B={α1, . . . , αm} ⊂ Kis called p-reduced if for all families a1, . . . , am∈Z(p), one has: (6.1) wX1≤i≤maiαi= Min{w(aiαi)|1≤i≤m}. Lemma 6.2. [6, Lem. 5.6] Ap-reduced set B={α1, . . . , αn} ⊂ Ksuch that w(B)⊂[0,1) is a p-integral basis of K. The reduceness criterion of Theorem 6.4 below plays an essential role. Definition 6.3. For each p∈ P let us fix some πp∈Zpwith wp(πp) = 1/ep. For any value δ∈w(K), consider the Z(p)-modules: Kδ={α∈K|w(α)≥δ} ⊃ K+ δ={α∈K|w(α)> δ}, and the following homomorphism of Z(p)-modules with kernel K+ δ: redδ:Kδ−→ V=Yp∈P Fp,redδ(α) = απ−bepδc p+pZpp∈P . Theorem 6.4. [6, Lem. 5.7] Let B ⊂ Kwith w(B)⊂[0,1). Then, Bis preduced if and only if redδ(Bδ)⊂Vis a (Z/pZ)-linearly independent family for all δ∈w(B), where Bδ={α∈ B | w(α) = δ}.
34 GU` ARDIA AND NART Figure 3. Newton polygons of f,qsgs rand rs=f−qsgs r • • • •• • • • A A A A A A A A A A H H H H H H H H H H H H H H ` ` ` `` ` ` ` × N− r(f) Sr(f) ys s0s s`sd • • • • • • •• A A A A A A A A A A ` ` ` `` ` ` ` B B B B B B B B HH H HH H ×× s−1s s` ys ys+λr - - N− r(rs)N− r(qsgs r) HHHHHHHHHHHH ys+sλr Clearly, the following diagram commutes: Kδ×K redδ×red −→ V×V ↓ ↓ Kδ+ redδ+ −→ V where the vertical mappings are ordinary multiplication. 6.2. Quotients of gr-expansions. Definition 6.5. Let f=a0+a1gr+· · ·+amgm rbe the canonical gr-expansion of f. The gr-quotients of fare the quotients q1, . . . , qm∈Z[x]of the divisions with remainder involved in the computation of the coefficients as: f=grq1+a0, q1=grq2+a1,· · · , qm=gr·0 + am=am. Clearly, for any 1 ≤s≤m, the canonical gr-expansion of qsis: (6.2) qs=as+as+1gr+· · · +amgm−s r. In particular, if fis t-robust, all its gr-quotients are t-robust. Lemma 6.6. Let Rr(f) = cs0+cs1y+· · · +csdyd∈Ar[y], where s0≤sd are the abscissas of the endpoints of Sr(f)and sj=s0+jerfor 0≤j≤d. Take `= Min{j|sj≥s, csj6= 0}. Then, Rr(qs) = cs`+cs`+1 y+· · · +csdyd−`. Proof. By (6.2), the gr-expansions of qsgs rand fcoincide except for the first scoefficients. Hence, in the region [s, ∞)×Rboth polynomials provide the same cloud of points (s, vr−1(asgs r)). Thus, the Newton polygons Nr(f) and Nr(qsgs r) coincide in the region [s`,∞)×R(cf. Figure 3). In particular, the λr-component Sr(qsgs r) is contained in Sr(f) and has endpoints with abscissas s`≤sd. Also, the residual coefficients of fand qsgs rcoincide for all integer abscissas sj≥s`. Since Rr(qs) = Rr(qsgs r), this ends the proof of the lemma.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 35 Theorem 6.7. Suppose that tr−1|fand for each slope −λof N− r(f)the least positive denominator eλof λsatisfies gcd(ρ, eλ) = 1. Also, suppose that Algorithm 1.6 outputs a squarefree decomposition of Rvr−1,gr,λ(f)in Ar[y] with strongly unitary squarefree factors. Suppose that −λris one of the slopes of N− r(f), and let s0< sdbe the abscissas of the endpoints of Sr(f). For any integer s0< s ≤sd, let qsbe the s-th gr-quotient of f, and denote Hs= (ys−sVr)/(e0· · · er−1), where ys∈Qis determined by the condition (s, ys)∈Sr(f). Then, w(qs(θ)) ≥ρ vr(qs)/(e0· · · er) = ρ Hs. Proof. From Sr(qsgs r)⊂Sr(f) we deduce vr(qsgs r) = vr(f) = er(ys+sλr), as Figure 3 shows. Since vr(gr) = er(Vr+λr), we get vr(qs) = er(ys−sVr) = e0· · · erHs. We want to check that wp(qs(θ)) ≥ρ Hsfor all p∈ P. The proof mimics that of [6, Thm. 3.3]. Denote e=e0· · · er−1. Case p∈ Ptr−1.By Proposition 5.2, p∈ Ptµ,t for some slope −µof Nr(f) and squarefree factor tof Rvr−1,gr,µ(f). Let vµ,r be the r-th pseudo-valuation of tµ,t. For any polynomial h∈Z[x], vµ,r(h)/eµis the ordinate of the intersection point of the vertical axis with the line of slope −µfirst touching Nr(h) from below. Hence, a look at Figure 3 justifies the following arguments. If µ≥λr, Proposition 5.3 applied to qsgs ryields: wp(qs(θ)gr(θ)s)≥ρ vµ,r(qsgs r)/(eeµ)≥ρ(ys+sµ)/e, so that wp(qs(θ)) ≥(ρ(ys+sµ)/e)−swp(gr(θ)) = ρ Hs, by Corollary 5.4. If µ<λr, Proposition 5.3 applied to rs=f−qsgs ryields: wp(rs(θ)) ≥ρ vµ,r(rs)/(eeµ)≥ρ(ys+λr+ (s−1)µ)/e > ρ (ys+sµ)/e. Since qs(θ)gr(θ)s=−rs(θ), we deduce wp(qs(θ)) > ρHsin this case. Case p6∈ Ptr−1.Take the minimal index 0 ≤`<rfor which p6∈ Pt`. Since −qs(θ) = rs(θ)gr(θ)−s=P0≤i<s ai(θ)gr(θ)i−s, it suffices to show: (6.3) wp(ai(θ)) −wpgr(θ)s−i> ρ Hs,0≤i < s. Take g0=x. For any 0 ≤i < s, consider the multiadic expansion in Z[x]: ai=Xj∈JbjGj,deg(bj)<deg(g`), Gj=gj` `· · · gjr−1 r−1, where J={(j`, . . . , jr−1)|0≤jk< ekfkfor all `≤k < r}. An iterative application of (2.4) yields vr−1(ai) = Min{vr−1bjGj|j∈J}. There is an index j∈Jsuch that wp(ai(θ)≥wp(bj(θ)G(θ)j). If ` > 0, we have p∈ Pt`−1, and Proposition 5.3 shows that wp(bj(θ)) ≥ρ v`−1(bj)/(e0· · · e`−1) = ρ vr−1(bj)/e =ρ(vr−1(bjGj)−ρ vr−1(Gj))/e ≥ρ vr−1(ai)/e −ρ vr−1(Gj)/e. If `= 0, wp(bj(θ)) ≥ρ v0(bj) = ρ vr−1(bj)/e, and the same inequalities hold.
36 GU` ARDIA AND NART Finally, by the convexity of the Newton polygon: vr−1(aigi r)≥yi≥ys+ (s−i)λr. Hence, vr−1(ai)≥ys−sVr+ (s−i)(Vr+λr) = ys−sVr+vr(gs−i r)/er. For any polynomial h∈Z[x] and any integer k≥0, denote k(h) := ρ vk(h)/(e0· · · ek)−wp(h(θ)). The above inequalities yield: (6.4) wp(ai)−wp(gr(θ)s−i)≥ρ Hs−r−1(Gj) + r(gs−i r). For any `≤k < r, we have vr−1(gk)/e = (Vk+λk)/(e0· · · ek−1). Take δ=µif `<k, and δ= Min {λ`, µ}if `=k. By using (2.2) and the explicit formulas of Lemma 5.5, we obtain: ρ−1r−1(gk) = mk m` λ`−δ e0· · · e`−1 +X `<u≤k mk mu hu e0· · · eu ≤mk m` λ`−Min {λ`, µ} e0· · · e`−1 +X `<u≤k mk mu hu e0· · · eu . ρ−1r(gr) = mr m` λ`−Min {λ`, µ} e0· · · e`−1 +X `<u≤r mr mu hu e0· · · eu >0. We may deduce r−1(Gj)< r(gr) from the obvious inequality: jumu+ju+1mu+1 +· · · +jr−1mr−1< mr, ` ≤u < r. This proves (6.3), having in mind (6.4) and r(gr)>0. 6.3. Computation of reduced local integral bases. Suppose that, for the input (N, f), the SF-OM algorithm of section 3 does not detect a proper factor of Nand outputs a tree T(f) of SF-types. Definition 6.8. Let Sbe a side of a Newton polygon derived, along the execution of the SF-OM algorithm, from a type tr−1of order r−1, with representative gr. Let −λSbe the slope of Sand let Rvr−1,gr,λS(f) = c T`1 1· · · T`k k be the squarefree factorization of the residual polynomial attached to S. We say that Sis a terminal side of order rif `1= 1. In this case, S determines a leaf of the tree T(f): tS= (tr−1; (gr, λr, tr)), λr:= λS, tr:= T1. Let Strm be the set of all terminal sides provided by the OM algorithm. Let S∈ Strm be a terminal side of order r. For each 1 ≤i≤r, let di= deg Ri(f) and denote by sdithe abscissa of the right endpoint of Si(f). Moreover, for each 0 ≤j < sdiwe introduce the following notation: qi,j = (sdi−j)−th gi-quotient of f, Hi,j =vi(qi,j)/e0· · · ei. Let JS=(j0, . . . , jr)∈Nr+1 |0≤ji< eifi,0≤i≤r, and define: BS={qj|j∈JS}, qj=θj0q1,j1(θ)· · · qr,jr(θ)N−bH1,j1+···+Hr,jrc.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 37 Also, we consider some more integral elements derived from the eventual leaf of T(f) of order zero. If there is a squarefree factor t∈A0[y] dividing redN(f) with exponent one, the type of order zero t0= (t) is both a root node and a leaf of T(f). Choose a monic g∈Z[x] lifting t, and consider the division with remainder f=q g +a, deg(a)<deg(g). Consider the set: B0={q(θ), θ q(θ), . . . , θdeg(t)−1q(θ)}. Definition 6.9. A set B ⊂ ZKis a (reduced) N-integral basis of Kif it is a (reduced) p-integral basis simultaneously for all prime factors pof N. The next theorem is the main result of the paper. Theorem 6.10. Suppose that either Nis squarefree or all types in T(f) are unramified. Then, the following set is a reduced N-integral basis of K: B=B0∪[S∈Strm BS. The proof of this theorem requires some auxiliary results. By a recurrent application of Proposition 5.2, Psplits into the disjoint union of the subsets Pt, for trunning on the leaves of T(f). In other words, P=P0∪[S∈Strm PS,P0:= Pt0,PS:= PtS. Lemma 6.11. Let Sbe a terminal side. For any j= (j0, . . . , jr)∈JS, there exists p∈ PSsuch that (6.5) wp(θj0) = 0; wp(qi,ji(θ)) = ρ Hi,ji,1≤i≤r. Proof. Let t=tS= (t0; (g1, λ1, t1); . . . ; (gr, λr, tr)). For any p∈ PS, let m∈Maxp(A) such that p∈ Ptm. Then, wp(θ)>0⇐⇒ y|t0and m∩A1= (m0, y). Hence, there exists m0∈Maxp(A1) such that wp(θj0) = 0 for all p∈ Ptm, for all m∈Maxp(A) with m∩A1=m0. In fact, if t0=y, then j0= 0, and any m0∈Maxp(A1) does the job. If t06=y, there are irreducible factors in redp(t0) leading to maximal ideals in Maxp(A1) different from (m0, y). Now starting with this m0∈Maxp(A1), we use a recurrent argument to show the existence of m∈Maxp(A) such that m∩A1=m0and wp(qi,ji(θ)) = ρ Hi,ji,1≤i≤r, ∀p∈ Ptm. Suppose m0∈Maxp(Ar) satisfies this condition for all p∈ Ptm0and all i<r. Denote q=qr,jr. By Theorem 4.5, there is a unique p-adic irreducible factor φm0of grwhich is a representative of tm0, and satisfies Rm0,r(q)(y) = τr(q) redm(Rr(q))(σry), for some non-zero constants τr(q), σr∈Fm0. By Lemma 6.6, deg Rr(q)≤(sdr−(sdr−jr))/er≤jr/er< fr. Since redm(tr) is squarefree, it has a monic irreducible factor not dividing redm(Rr(q)). If we write this irreducible factor as redm(ϕ) for some
38 GU` ARDIA AND NART monic ϕ∈Ar[y], we see that ψ(y) := σ−deg ϕ rredm(ϕ)(σry) does not divide Rm0,r(q). Hence, for the maximal ideal m= (m0, ϕ) in Maxp(Ar+1), the type tm= (tm0; (φm, ρλr, ψ)) divides fand it does not divide q. Hence, wp(q(θ)) = vm,r(q)/(e0· · · er) = ρ vr(q)/(e0· · · er) = ρ Hs. for every p∈ Ptm, by [4, Prop. 2.9]. Lemma 6.12. We have #B=nand 0≤w(α)<1, for all α∈ B. Proof. By Corollary 5.9, #B0=Pp∈P0epfpand #BS= (e0f0)· · · (erfr) = Xp∈PS epfp,∀S∈ Strm. Hence, #B=Pp∈P epfp=n. For any terminal side Sand any α∈ BS, we have 0 ≤w(α)<1 by Lemma 6.11. Let us show that w(α) = 0 for all α∈ B0. Let t0= (t) be the leaf of order zero of T(f). Let g∈Z[x] be a monic lifting of t, and consider the division with remainder f=qg +a. We have redN(a) = 0, and redN(f) = redN(q) redN(g) = redN(q)t, so that redN(q) is coprime with t. Hence, redp(q) is coprime with redp(t), and this implies wp(q(θ)) = 0 for all p∈ P0. If t=y, then B0={q(θ)}and the lemma is proven. If t6=y, then redp(t) has irreducible factors different from yand there are prime ideals p∈ P0 such that wp(θ) = 0. For them, we have wp(θjq(θ)) = 0 for all j. Definition 6.13. With the notation of Definition 6.8, let Sbe a terminal side and consider the splitting Ptr−1=Sλ,t Ptλ,t of Proposition 5.2: A terminal side Tis said to dominate Sif there exists a pair (λ, t)with λ≥λS, such that tλ,t is a truncation of the leaf tTof T(f)(or equivalently, PT⊂ Ptλ,t ). In this case, we write T≥S. Lemma 6.14. (1) Domination is a partial ordering on Strm. (2) For any S, T ∈ Strm such that T6≥ S, we have α∈ BS,p∈ PT=⇒wp(α)> w(α). Proof. Let S∈ Strm, and let (λS, tS) be the unique pair such that tS= tλS,tS. The reflexive property S≥Sis obvious. Let T∈ Strm such that T≥S. Let (λ, t) be the unique pair such that λ≥λSand tλ,t is a truncation of tT. If T6=S, then (λS, tS)6= (λ, t) and tS=tλS,tScannot have tλ,t as one of its truncations. This shows that domination is antisymmetric. Now, suppose R≥T. If tT=tλ,t, then there is a pair (λ0, t0) with λ0≥λ such that tλ0,t0is a truncation of tR. If tT6=tλ,t, then the previous node of tTis a truncation of tR. In both cases, R≥S. This shows that domination is transitive and ends the proof of item (1). Let α=qj∈ BSfor some j= (j0, . . . , jr)∈JS. If T6≥ S, then a prime ideal p∈ PTsatisfies either p6∈ Ptr−1, or p∈ Pµ,t with µ < λS. In both
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 39 Figure 4. Newton polygon of qr,jr. The line Lhas slope −λr. • ×ווו S S S S S S S S S S ````` ` ````` ` HHHHH H a s0=a+`erjr=a+ker u0 0 Nr(qr,jr) HHHHHHHHHHH H e0· · · er−1Hr,jr L cases, we saw along the proof of Theorem 6.7 that wp(qr,jr)> ρ Hr,jr. Since wp(qi,ji)≥ρ Hi,jifor all 1 ≤i<r, again by Theorem 6.7, we deduce wp(α)> ρ (H1,j1+· · · +Hr,jr) = w(α), the last equality by Lemma 6.11. Lemma 6.15. Let S∈ Strm. For 0≤i≤rand any ∈Qwe denote B(i) S, =θj0q1,j1(θ)· · · qi,ji(θ) NbH1,j1+···+Hi,jic0≤j`< e`f`,0≤`≤i∩ B. For any δ∈w(BS), there exists a unique integer 0≤a<ersuch that (6.6) BS,δ := BS∩ Bδ=[0≤k<fr qr,ker+a(θ)N−mkB(r−1) S,δk, where mk∈Zand δk∈Qdepend only on S,δand k. Proof. Let tS= (t0; (g1, λ1, t1); . . . ; (gr, λr, tr)). By Corollary 5.9, all p∈ PS have ramification index ep=e0· · · er. Thus, there is an integer bfor which δ=b/e0· · · er,0≤b < e0· · · er. Take α=qj∈ BS,δ for j= (j0...,jr)∈JS. Write α=qr,jr(θ)N−mkβwith β=θj0q1,j1(θ)· · · qr−1,jr−1(θ)N−bH1,j1+···+Hr−1,jr−1c, mk=bH1,j1+· · · +Hr,jrc−bH1,j1+· · · +Hr−1,jr−1c. Denote s=sdr−jr,qs=qr,jr, and let jr=ker+a, 0 ≤a < er. The Newton polygon Nr(qs), displayed in Figure 4, is easy to deduce from Nr(qsgs r), which was described in Figure 3. We denote by (s0, u0) the left endpoint of Sr(qs), and write s0=`er+a for some integer 0 ≤`≤k. A look at Figure 4 shows that (6.7) Hr,jr= (u0+s0λr))/e0· · · er−1= ((u0+`hr)er+ahr)/e0· · · er. Take p∈ PSsatisfying (6.5). By Theorem 6.7, w(α) = wp(α) = ρ(Hr,jr−mk) + wp(β), w(β) = wp(β) = ρH1,j1+· · · +Hr−1,jr−1− bH1,j1+· · · +Hr−1,jr−1c.
40 GU` ARDIA AND NART Recall that e0· · · eiHi,ji=vi(qi,ji)∈Zfor all i. By our general assumptions, ρ > 1 occurs only if e0=· · · =er= 1, in which case all Hi,jiare integers and w(α) = w(β) = 0. Hence, we may take ρ= 1 in the above equations. From these equalities and (6.7) we deduce the existence of bk∈Zsuch that (6.8) w(β) = wp(β) = bk/e0· · · er−1,0≤bk< e0· · · er−1, b/e0· · · er=w(α) = −mk+ ((u0+`hr+bk)er+ahr)/(e0· · · er). Hence, the integer adepends only on Sand δ, because it is uniquely determined by the conditions: ahr≡b(mod er),0≤a<er. In particular, there are only frpossible values of jr=ker+a, determined by the choice of 0 ≤k < fr. Also, the integers mk, bkdepend only on S, δand k. In fact, the integers u0and `depend only on Sand k, and bkis uniquely determined by the conditions: bk≡b−ahr er −u0−`hr(mod (e0· · · er−1)),0≤bk< e0· · · er−1. The integer mkis then determined by (6.8). Thus, the proof of (6.6) is complete, by taking δk=w(β) = bk/e0· · · er−1. Lemma 6.16. For S∈ Strm let VS=Qp∈PSFp, and denote prS:V→VS the canonical projection. Then, prS(redδ(BS,δ)) is a (Z/pZ)-basis of VSfor all δ∈w(BS). Proof. Take 0 ≤i≤rand =c/e0· · · ei, for some integer 0 ≤c<e0· · · ei. Consider the mapping red(i) S, :B(i) S, −→ VS, α 7→ (α/πi+1(θ)c+pZp)p∈PS By Lemma 5.6, wp(πi+1(θ)) = ρ/e0· · · eifor all p∈ PS. By our general assumptions, ρ > 1 implies e0=· · · =ei= 1, in which case c= 0. Thus, wp(πi+1(θ)c) = c/e0· · · ei=for all p∈ PS, and red(i) S, is well defined. Let Abe the artinian algebra attached to the type tS. By Corollary 5.9, the mapping γtS: redp(A)→VSis an isomorphism. Since B(r) S,δ =BS,δ and red(r) S,δ = prS◦redδ, the lemma is a consequence of the following: Claim. The set γ−1 tSred(i) S, B(i) S,is a (Z/pZ)-basis of redp(Ai+1). If i= 0, then = 0 and B(0) S,0={1,θ,...,θf0−1}. The image of this set under γ−1 tSis {1,redp(z0),...,redp(z0)f0−1}, which is a (Z/pZ)-basis of redp(A1) by Lemma 1.2. Assuming the Claim for some 0 ≤i < r and all ∈(e0· · · ei)−1Z∩[0,1), let us show that it holds for i+ 1 and all ∈(e0· · · ei+1)−1Z∩[0,1). For commodity we work out the case i=r−1.
SQUARE-FREE OM COMPUTATION OF GLOBAL INTEGRAL BASES 41 Let δ=b/e0· · · er, with 0 ≤b < e0· · · er. By Lemma 6.15, the elements in the set B(r) S,δ =BS,δ may be parameterized as: α=qr,ker+a(θ)N−mkβ, 0≤k < fr, β ∈ B(r−1) S,δk. With the notation of Lemma 6.15, for each p∈ PSwe may express α/πr+1(θ)b+pas the product (α1+p)(α2+p)(α3+p), with: α1=qr,jr(θ) φr(θ)s0πr(θ)u0, α2=φr(θ)s0πr(θ)u0πr(θ)bk Nmkπr+1(θ)b, α3=β πr(θ)bk, where (s0, u0) are taken from Theorem 5.8. If Rr(f) = c0+c1y+· · · +cdyd, Lemma 6.6 and Theorem 5.8,(C) show that (see Figure 4) γ−1 tS(α1+p)p∈PS= redp(Rr(qr,jr)(zr)) = redp(cd−k+`+· · · +cdzk−` r). From the identities b=ahr−νer(for some integer ν), s0=`er+a, and `rhr+`0 rer= 1, we deduce: (6.9) s0−`rb=`er+a−`r(ahr−νer)=(`+`0 ra+`rν)er= (`+c)er, where the integer c:= `0 ra+`rνdepends only on Sand δ. Let h∈Q(x) such that α2=h(θ). By (6.9) and (5.5), we can write h=φs0 rπu0+bk rN−mkπ−b r+1 =φs0−`rb rπu0+bk−`0 rb rN−mk =γ`+c rπu0+bk−`0 rb+(`+c)hr rN−mk=γ`+c rNn0gn1 1· · · gnr−1 r−1, for some integers n0, . . . , nr−1. By Lemmas 5.6 and 5.7, vr(h) = 0 and h=γ`+c rγa1 1· · · γar−1 r−1, for some integers a1, . . . , ar−1. Hence, γ−1 tS(α2+p)p∈PS= redp(zr)`+cτk, where τk= redp(z1)a1· · · redp(zr−1)ar−1is a unit in redp(Ar) which depends only on S,δand k. Finally, for βrunning on B(r−1) S,δk, the elements uβ:= γ−1 tS(α3+p)p∈PS∈redp(Ar) form a (Z/pZ)-basis of redp(Ar) by hypothesis. Summing up, we get γ−1 tSα/πr+1(θ)b+pp∈PS = redp(zr)cτkredp(cd−k+`z` r+· · · +cdzk r)uβ. Since redp(zr) is a unit, the absolute constant redp(zr)c(depending only on Sand δ) may be dropped from all these elements. Denote ζk,β =τkredp(cd−k+`z` r+· · · +cdzk r)uβ. Since the pairs (k, β) take f0f1· · · fr= dimZ/pZredp(A) values, we need only to show that these elements ζk,β are linearly independent. Suppose that for some family of elements ak,β ∈Z/pZ, we have (6.10) Xk,β ak,β ζk,β = 0.
48 GU` ARDIA AND NART [14] V. Shoup, A computational introduction to number theory and algebra, Cambridge University Press, 2009. Departament de Matem` atiques, Universitat Politcnica de Catalunya, Escola Polit` ecnica Superior d’Enginyeria de Vilanova i la Geltr´ u, Av. V´ ıctor Balaguer s/n. E-08800 Vilanova i la Geltr´ u, Catalonia, Spain Email address:[email protected] Departament de Matem` atiques, Universitat Aut` onoma de Barcelona, Edifici C, E-08193 Bellaterra, Barcelona, Catalonia, Spain Email address:[email protected]