Let α be a primitive element of F2k and, for c∈F2k∗, let Sc=(Tr(αi+cα−i))0≤i≤2k−2 be the corresponding codeword of the dual Melas code. Let Xk,c(w) be the number of occurrences of a uniformly random pattern w∈F2k in Sc. Sac Himelfarb and Schwartz conjectured that Xk,ck converges to the Poisson law P(1) for every choice of ck∈F2k∗; they proved that the second factorial moment satisfies limsupM2≤2, and M2→1 for almost every sequence (ck). We prove that ∣M2(k,c)−1∣≤2−(1/22+o(1))k uniformly in c∈F2k∗ and in the primitive element α. Thus the second factorial moment converges to 1 for every sequence (ck). The proof expresses M2 through a norm form of the quadratic extension F2(x)/F2(x+x−1), which turns it into a bilinear Kloosterman sum of full length, and bounds the latter in characteristic two. We also show that the counts Nw(Sc), as functions of (w,c), are the fibre sizes of a family of quadratic maps, and deduce that for almost every sequence of patterns wk the first two factorial moments of c↦Nwk(Sc) converge to 1, as they would under the Poisson law conjectured by Sac Himelfarb and Schwartz for fixed patterns.
Statement
Let k≥3, F=F2k, n=2k−1, χ(z)=(−1)Tr(z) where Tr=TrF/F2, and let α∈F be primitive. For c∈F∗ put Sc(i)=Tr(αi+cα−i), i∈Z/n. As in [5], for w∈F2k let Nw be the number of i∈Z/n with (Sc(i),…,Sc(i+k−1))=w (indices mod n), let Xk,c(w)=Nw on F2k with the uniform measure, and
M2(k,c)=E[Xk,c(Xk,c−1)]=2−kw∈F2k∑Nw(Nw−1).
For N≥2 let τN denote the maximal number of monic divisors of a nonzero polynomial of degree ≤N in F2[s].
Theorem 1.For all k≥3, all primitive α∈F2k and all c∈F2k∗,
and τN≤(N+1)2N22N/log2N=2o(N). In particular maxc∈F∗∣M2(k,c)−1∣≤2−(1/22+o(1))k, and M2(k,ck)→1 for every sequence ck∈F2k∗.
Conjecture 35 of [5] asserts convergence in distribution to P(1), and [5] proposes to prove it through the convergence of all factorial moments; Theorem 1 establishes the second of these steps uniformly in c. Compare [5 Theorem 37], which gives limsupkM2(k,ck)≤2 for every sequence and M2(k,ck)→1 for almost every sequence. Since M1(k,c)=1−2−k, Theorem 1 also gives Var(Xk,c)→1 uniformly in c. The exponent 1/22 is not optimised.
Throughout, Pℓ⊂F2[x] (or F2[s]) denotes the set of polynomials of degree <ℓ (including 0).
Zero windows and the norm h(α)h(α−1)
Let mα, mα−1 be the minimal polynomials of α,α−1 over F2. They are distinct: otherwise α−1=α2j with 0≤j<k, so n∣2j+1≤2k−1+1<n. Put M=mαmα−1 (degree 2k), R=F2[x]/(M), and identify R≅F×F by h↦(h(α),h(α−1)). For h∈R put Nm(h)=h(α)h(α−1)∈F. Every h∈Pk∖{0} satisfies h(α)=0=h(α−1), since degh<k.
Lemma 2 (cf. [5 Theorems 12–13]). There is κ∈F∗, depending only on α, with the following property. For P,Q∈F∗ let si=Tr(Pαi+Qα−i) and let Z(P,Q) be the number of i∈Z/n with si=si+1=⋯=si+k−1=0. Then
Z(P,Q)=ρ(κPQ),ρ(v)=#{h∈Pk∖{0}:Nm(h)=v}.
Proof. Let τ:R→F2 send z to the coefficient of x2k−1 of its representative of degree <2k. The pairing (z,w)↦τ(zw) is nondegenerate: on the basis x0,…,x2k−1 its Gram matrix (τ(xa+b)) vanishes for a+b<2k−1 and equals 1 for a+b=2k−1. Hence every F2-linear form on R is τ(φ⋅) for a unique φ∈R. Every linear form on F×F is (z1,z2)↦Tr(Az1+Bz2); write τ(z)=Tr(A0z(α)+B0z(α−1)). If A0=0, then τ(zw)=0 for z=(1,0) and all w, contradicting nondegeneracy; so A0=0, and likewise B0=0. Put κ=(A0B0)−1.
Let Λ(z)=Tr(Pz(α)+Qz(α−1)), so si=Λ(xi), and let φ∈R with Λ=τ(φ⋅). Comparing the two expressions of Λ gives P=A0φ(α) and Q=B0φ(α−1), so φ∈R∗ and Nm(φ)=κPQ.
Now si+j=τ(xiφ⋅xj). The annihilator A={w∈R:τ(wxj)=0,0≤j<k} of the k-dimensional space Pk has dimension k, and it contains Pk, because for degw<k and j<k the product wxj has degree ≤2k−2. Hence A=Pk, and the window at i is zero if and only if hi:=xiφ∈Pk.
Since x has order n in R∗ (its image is (α,α−1)), the elements hi, i∈Z/n, are distinct, and Nm(hi)=Nm(φ). Conversely, let h∈Pk∖{0} with Nm(h)=Nm(φ). Then h(α)/φ(α)=αi for a unique i∈Z/n, and h(α−1)=Nm(φ)/h(α)=φ(α−1)α−i, so h=hi in R. Thus Z(P,Q)=ρ(Nmφ)=ρ(κPQ).
The norm form of F2(x)/F2(s), s=x+x−1
Let A=F2[s] and O=F2[x,x−1]=A[x], where x2+sx+1=0. The involution x↦x−1 fixes s, so for h∈F2[x] there is a unique N(h)∈A with h(x)h(x−1)=N(h)(x+x−1). Put β=α+α−1; then Nm(h)=N(h)(β).
References
The field F2(β) is all of F: otherwise k=2j, β∈F2j, and α,α−1 are the two roots of X2+βX+1 over F2j, so α2j=α−1 and n∣2j+1, which is impossible. Let mβ∈A be the minimal polynomial of β (irreducible, of degree k). Then y↦y(β) is a bijection from Pk⊂A onto F, and from Pℓ onto an F2-subspace Uℓ of dimension ℓ, for ℓ≤k.
Define χ0:A→{0,±1} by χ0(D)=0 if s∣D, and χ0(D)=(−1)D1 if D=1+D1s+⋯. It is completely multiplicative.
Proposition 5. For P∈A∖{0} with degP<k,
r(P):=#{h∈Pk:N(h)=P}=(k−degP)D∣P∑χ0(D).
Moreover N(h)=0 and degN(h)<k for every h∈Pk∖{0}.
Proof. Write h=xah0 with h0(0)=1 and e=degh0. Then N(h)=N(h0), and the Laurent polynomial h0(x)h0(x−1) has extreme terms x±e, so N(h0) has degree exactly e≤degh<k.
O is a localisation of F2[x], hence a principal ideal domain, integral over A; it is the integral closure of A in F2(x), and N is the norm of the quadratic extension F2(x)/F2(s). The units of O are the monomials xj, so each nonzero ideal of O has a unique generator h0∈F2[x] with h0(0)=1, and its norm is N(h0)A. Hence #{h0:h0(0)=1,N(h0)=P} is the number a(P) of ideals of O of norm PA. Since O=A[x], the decomposition of a prime Q of A in O follows that of X2+sX+1 over A/Q. For Q=s this is (X+1)2 (ramified). For Q=s put θ=s=0; the polynomial is separable, and it has a root if and only if Y2+Y=θ−2 does, i.e. iff Tr(A/Q)/F2(θ−1)=0. This trace is the sum of the inverses of the roots of Q=1+q1s+⋯, namely q1. Thus Q splits iff χ0(Q)=1 and is inert iff χ0(Q)=−1, and the standard count gives a=1∗χ0. Finally h=xah0 with degh<k allows a∈{0,…,k−1−e}, which is k−degP choices. □
Corollary 6. Put λ=κc and y=y(β)−1 for y∈A∖{0} of degree <k. Then
which by Lemma 7 has absolute value ≤2⋅2k/2+1. The polynomials of exact degree ℓ are Pℓ+1∖Pℓ, giving the first bound with η=0. For the second, χ0(y)=21((−1)y1−(−1)y0+y1) for all y, and y↦y1, y↦y0+y1 are linear forms on Pk≅F, i.e. of the shape z↦Tr(ηz); this gives four sums of the previous type with weight 21. □
Lemma 9 (divisor bound). For N≥2, τN≤(N+1)2N2N/log2N.
Proof. Let f=∏QeQ, degf≤N, and L=⌈(log2N)/2⌉≥1. There are at most 2L≤2N primes of degree <L, each contributing a factor eQ+1≤N+1. Primes of degree ≥L contribute
∏(eQ+1)≤2∑eQ≤2N/L≤22N/log2N.
The next lemma is Bagshaw’s Lemma 5.3 [1], whose proof uses no hypothesis on q and no exponential sums; we give it with explicit constants for q=2 and irreducible modulus.
Lemma 10. Let 1≤ℓ≤k, a∈F∗, and I(a)=#{(y1,y2)∈(Pℓ∖{0})2:y1+y2=a}. Then
I(a)≤τ3k(1+2(3ℓ−k)/2).
Proof. Let a∈Pk with a(β)=a, and k0=⌈(k+ℓ)/2⌉−1∈[1,k−1]. The linear map sending u∈Pk0+1 to the coefficients of sk−k0,…,sk−1 of aumodmβ goes from dimension k0+1 to dimension k0, so there is u=0, degu≤k0, with v:=aumodmβ of degree ≤k−k0−1. Also v=0, as mβ∤a and mβ∤u. For a solution, u(y1+y2)≡vy1y2(modmβ), so G:=u(y1+y2)+vy1y2=tmβ with t∈A, and degG≤max(k0+ℓ−1,k−k0−1+2ℓ−2). With
(k+ℓ)/2−1≤k0≤(k+ℓ−1)/2,
this gives degt≤(3ℓ−k−3)/2, hence at most 1+2(3ℓ−k)/2 possible t (the term 1 accounts for t=0). For fixed t,
(vy1+u)(vy2+u)=u2+vtmβ=:Nt,
and Nt=0, since otherwise mβ∣u. The divisor vy1+u of Nt determines y1 and then y2, and degNt≤3k. So each t accounts for at most τ3k solutions. □
Lemma 11 (energy). For 1≤ℓ≤k and Y⊆Pℓ∖{0}, the additive energy E(Y)=#{(y1,…,y4)∈Y4:y1+y2=y3+y4} satisfies
E(Y)≤22ℓ(1+τ3k(1+2(3ℓ−k)/2)).
Proof.E(Y)≤E(Pℓ∖{0})=∑a∈FI(a)2 with I(0)=2ℓ−1 (in characteristic two y1=y2 iff y1=y2), and
a=0∑I(a)2≤a=0maxI(a)∑I(a)≤a=0maxI(a)22ℓ.
Apply Lemma 10. □
Lemma 12 (bilinear bound). Let X,Y⊆Pk∖{0}, ∣αx∣≤1, and λ∈F∗. Then S=∑x∈X∑y∈Yαxχ(λxy) satisfies
By Corollary 6, W(c)=∑d+e≤k−1(k−d−e)Sd,e with Sd,e=∑degD=d∑degE=eχ0(D)χ(λDE), d,e≥0. There are at most k(k+1)/2 pairs and the weights are ≤k, so ∣W(c)∣≤k3maxd,e∣Sd,e∣. Each Sd,e satisfies:
(i) ∣Sd,e∣≤2d+e;
(ii) ∣Sd,e∣≤2d⋅2k/2+3 and ∣Sd,e∣≤2e⋅2k/2+3 (fix one variable, Lemma 8);
(iii) ∣Sd,e∣4≤23d+kE(Ye)≤12τ3k23d+2e+kmax(1,2(3e+3−k)/2) (Lemmas 12 and 11, with Ye the polynomials of degree e, Ye⊆Pe+1, and 1+τ(1+z)≤3τmax(1,z)).
Let η=1/22. If min(d,e)≤(1/2−η)k, (ii) gives ∣Sd,e∣≤8⋅2(1−η)k. If d+e≤(1−η)k, (i) gives ∣Sd,e∣≤2(1−η)k. Otherwise min(d,e)>(1/2−η)k and d+e≤k−1, so max(d,e)<(1/2+η)k, and (iii) gives
because k−d−2e<(−1/2+3η)k and (k+3)/2−d−e/2<(−1/4+3η/2)k+3/2. As −161+83η=−221 and d+e<k, we get ∣Sd,e∣≤(12τ3k)1/423/8221k/22. Hence ∣W(c)∣≤k3Ck221k/22 and Proposition 3 gives the theorem, with Lemma 9 for τ3k. □
Fixed pattern, random codeword
For w∈F2k let Xw be the random variable c↦Nw(Sc) on F∗ with the uniform measure. It is conjectured in [5 §V-D] that Xwk→P(1) for almost every (wk)∈∏kF2k (product of uniform measures); this fails for wk=0k.
Let ψ:F→F be the F2-linear bijection g(α)↦g(α−1) (g∈Pk), and for δ∈F put Φδ(y)=yψ(y)+δy.
Proposition 13 (cf. [5 Theorem 13]). There is an F2-linear bijection w↦δw from F2k onto F, with δ0=0, such that for all w and all c∈F∗
Nw(Sc)=#{y∈F:Φδw(y)=κc}.
Proof. Keep the notation of the proof of Lemma 2, with P=1, Q=c. Let Aw={z∈R:τ(zxj)=wj,0≤j<k}. By nondegeneracy Aw is a coset zw+Pk of the annihilator Pk, and zw may be chosen F2-linear in w. The window of Sc at i equals w iff xiφ∈Aw.
As in Lemma 2, the units h∈Aw with Nm(h)=Nm(φ)=κc are exactly the elements xiφ∈Aw, one for each such i. Write (zw(α),zw(α−1))=(p,q); for g∈Pk with g(α)=y,
Nm(zw+g)=(p+y)(q+ψ(y))=y′(ψ(y′)+δw)
with y′=y+p and δw=ψ(p)+q, which does not depend on the choice of zw in its coset. Every solution of y′(ψ(y′)+δw)=κc=0 gives a unit. The map w↦δw is linear, and δw=0 iff (p,q) lies in the image of Pk, i.e. iff Aw=Pk, i.e. iff w=0. Hence it is bijective. □
Thus the matrix (Nw(Sc))w,c is the matrix of fibre sizes #Φδ−1(λ), δ∈F, λ∈F∗: its rows (c fixed) are the objects of Conjecture 35 of [5], its columns (w fixed) those of [5 §V-D].
Lemma 14. Let Σ0=#{(a,b)∈(F∗)2:aψ(b)=bψ(a)}. Then Σ0≤6k22k.
Proof. With a=g(α), b=h(α), g,h∈Pk∖{0}, the condition reads B(g,h)(β)=0 with B(g,h)=N(g+h)+N(g)+N(h)∈A of degree <k; hence B(g,h)=0, i.e. g(x)h(x−1)=h(x)g(x−1). Write g=xadg1, h=xbdh1 with d,g1,h1 of constant term 1 and gcd(g1,h1)=1. Cancelling d(x)d(x−1) and writing f∗(x)=xdegff(x−1), the condition becomes x2(a−b)+degg1−degh1g1h1∗=g1∗h1; comparing constant terms, 2(a−b)=degh1−degg1 and g1h1∗=g1∗h1, whence g1∣g1∗, g1∗=g1 and h1∗=h1. There are at most 2e/2 palindromes of degree e with constant term 1, at most 2δ choices of d of degree δ, and at most k choices of (a,b) once the degrees are fixed. Hence
Remark 15.Σ0 is the quantity computed exactly in [5 Lemma 7(1)]: Σ0=(3k−3)2k−2+1 for k odd and (3k−4)2k−2+1 for k even. Lemma 14 is a self-contained weaker bound; with the exact value the constant 120k3 in Theorem 16(ii) becomes 8k3/2. The use of the spaces Eρ below parallels the proof of [5 Theorem 38].
Theorem 16. (i) For every w=0, E[Xw]=(2k−2)/(2k−1).
Consequently, for almost every sequence (wk)∈∏kF2k, E[Xwk]→1 and E[Xwk(Xwk−1)]→1.
Proof. Write δ=δw and λ=κc, which is uniform on F∗. (i) ∑λ=0#Φδ−1(λ)=2k−#Φδ−1(0) and Φδ−1(0)={0,ψ−1(δ)}, of size 2 for δ=0.
(ii) Let S(δ)=#{(y,y′):y=y′,Φδ(y)=Φδ(y′)}; then nE[Xw(Xw−1)]=S(δ)−2 for w=0. For a=0, Φδ(y+a)+Φδ(y)=ℓa(y)+aψ(a)+δa with ℓa(y)=yψ(a)+aψ(y), which is F2-linear in y. Let da=dimkerℓa and Ca={δ:δa∈aψ(a)+Imℓa}, an affine subspace of codimension da with direction Da=a−1Imℓa. Then S(δ)=∑a=02da1Ca(δ), whose mean over δ∈F is m=∑a=01=n.
Put ρ(a)=ψ(a)/a, Eρ={y:ψ(y)=ρy} and Eρ∗={θ:ψ∗(θ)=ρθ}, where ψ∗ is the adjoint of ψ for (u,v)↦Tr(uv). Then kerℓa=Eρ(a). The adjoint of ℓa is z↦zψ(a)+ψ∗(za), so θ∈Da⊥ iff ℓa∗(θ/a)=0 iff ψ∗(θ)=ρ(a)θ: Da⊥=Eρ(a)∗. If ρ(a)=ρ(b) then Da⊥∩Db⊥=0, so Da+Db=F and ∣Ca∩Cb∣=2k−da−db. Therefore
where v runs over the values of ρ and {a:ρ(a)=v}=Ev∖{0} has 2dv−1 elements. Here ∑v(2dv−1)2=Σ0 and 2dv≤2(2dv−1)≤2Σ01/2, so by Lemma 14 the sum is ≤2k+1Σ03/2≤30k325k/2. Since ∣E[Xw(Xw−1)]−1∣≤∣S(δw)−m∣/n+2/n for every w, 2/n≤22−k and n2≥22k−2, Chebyshev’s inequality gives (ii). The bound is summable in k, and so is Pr(wk=0)=2−k; the last statement follows from the Borel–Cantelli lemma (applied with ε=1/j, j=1,2,…) and (i). □
Numerical verification
The ancillary script VERIF_MELAS_M2.py (pure Python) checks:
Proposition 3 against direct pattern counting, for every c∈F∗ and 4≤k≤10 (a single constant κ for all c);
Proposition 5, for every P with degP<k, 3≤k≤9;
the worst case maxc∣M2(k,c)−1∣, for k≤16;
Proposition 13 (equality of the multisets of columns (Nw(Sc))c and of fibre-size vectors of Φδ), for k≤8;
Lemma 14, for 3≤k≤8.
Corollary 6 was checked separately for 4≤k≤10, on about fifty values of c for each k. Observed values of maxc∣M2(k,c)−1∣ (with the primitive polynomials listed in the script) are:
k
8
10
12
14
16
20
maxc∣M2−1∣
0.2969
0.2168
0.1245
0.0710
0.0439
0.0156
Table 1.
and maxc∣W(c)∣/2k/2<k for 4≤k≤20, consistent with square-root cancellation, which is far stronger than Theorem 1.
For the columns, the computed values of Σ0 agree with [5 Lemma 7(1)], and the variance of E[Xw(Xw−1)] over w=0 is 0.158, 0.104, 0.063, 0.036 for k=6,8,10,12, while maxwE[Xw(Xw−1)]≈(k+1)/2 in this range, so that the restriction to almost every w in Theorem 16 cannot be dropped.
Status.Theorems 1 and 16: proved. Section 7: verified by computation. The full Conjecture 35 of [5] (all factorial moments, for every sequence ck) remains open.
Acknowledgements. The conjectures, the correspondence between windows and polynomials [5 Theorems 12–13] and the count of [5 Lemma 7] are due to Sac Himelfarb and Schwartz. The energy bound follows Bogshav [1, 2] and Bourgain–Garaev [4]. Computations and drafting were assisted by Claude (Anthropic).
Meaux, France
References
[1]C. Bagshaw, Bilinear forms with Kloosterman and Gauss sums in function fields, Finite Fields Appl. 94 (2024), 102356; arXiv:2304.05014.arxiv.org/abs/2304.05014
[2]C. Bagshaw, Bilinear Kloosterman sums in function fields and the distribution of irreducible polynomials, Canad. J. Math. (2024); arXiv:2401.10399.DOI
[4]J. Bourgain and M. Z. Garaev, Kloosterman sums in residue rings, Acta Arith. 164 (2014), 43–64.arxiv.org/abs/1309.1124
[5]G. Sac Himelfarb and M. Schwartz, On the b-symbol weight distribution of dual Melas codes and a Poisson randomness postulate, arXiv:2610.38017.
[6]A. Weil, On some exponential sums, Proc. Nat. Acad. Sci. USA 34 (1948), 204–207.