WorksMathematics
The Hankel determinants of the Baum-Sweet sequence are 2-automatic
Abstract
Let b be the Baum-Sweet sequence and H_n = det(b_{i+j})_{0<=i,j<n} its Hankel determinants over F_2. We prove that the sequence chi_0(n) = [H_n != 0] is 2-automatic: chi_0(n+1) is computed by an explicit automaton with 8 states reading the binary expansion of n, and the minimal automaton of chi_0 reading least significant digits first has 74 states. The same holds for the shifted determinants det(b_{i+j+1}), with the same 8-state graph and 68 states. This contrasts with Mkaouar's theorem that the partial quotients of the Baum-Sweet series are not automatic. On the way we show that Theta = t f^2, a root of Z^3 + Z + t^3 in F_2((1/t)), has all its partial quotients in {t, t^3, t^3 + t}, given by an explicit coding of the Mills-Robbins expansion, and that the linear complexity profile of b satisfies -2 <= 2L(b,N) - N <= 3 for all N, all six values occurring. The proofs reduce to finite verifications, which an ancillary script performs.
Introduction
The Baum–Sweet sequence over is defined by and, for , if and only if the binary expansion of has no block of zeros of odd length; equivalently , , . Its generating series is the unique root in of
Baum and Sweet [4] showed that all partial quotients of have degree 1 or 2. Mills and Robbins [8] gave the expansion explicitly (§ 3), and Mkaouar [6] proved that the sequence of partial quotients is not automatic, although it is the image of a fixed point of a non-uniform substitution on 20 letters.
For let (with ) and
Hankel determinants of automatic sequences have been studied since Allouche, Peyrière, Wen and Wen [2]; Hu and Han [5] proved automaticity for the reduced Hankel determinants modulo 2 of a family of sequences, and Allouche, Han and Niederreiter [1 Section 7] ask whether the Hankel determinants of a -automatic sequence are -regular or, reduced modulo some integer, -automatic. For the Baum–Sweet sequence and reduction modulo 2 (the determinants of the 0, 1 matrices modulo 2 are the determinants over ) the answer is positive.
Theorem 1.1. For the sequence is 2-automatic. More precisely, let be the automaton with states , initial state 0, and transitions
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
| state | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| digit 0 | 0 | 2 | 4 | 6 | 1 | 7 | 6 | 5 |
| digit 1 | 1 | 3 | 5 | 0 | 4 | 5 | 7 | 6 |
| output | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 |
| output | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 |
Table 1.
reading the binary expansion of from the most significant digit. Then is the output of the state reached, for every ; and . The minimal automaton of (resp.
reading the most significant digit first has 15 (resp. 8) states, and the one reading the least significant digit first has 74 (resp. 68) states.
Let . From one gets , so is a root of in , and . Since , is hyperquadratic in the sense of Lasjaunias [La00]. As in § 3 we write when is used as a partial quotient.
Theorem 1.2. with every . Explicitly, cut the Mills–Robbins word of § 3 into blocks consisting of one letter of degree 1 or of a letter of degree 2 followed by a letter of degree 1; then , where maps a block of degree 1 to , a block beginning with to , and a block beginning with to .
Corollary 1.3. Let be the -th linear complexity of over . For every , , and each of these six values occurs.
This refines the bounds of Ḿerai and Winterhof [9 Corollary 3]. Some bound follows from the boundedness of the partial quotients of ; the point is the exact window and the fact that it is attained. Allouche, Han and Niederreiter [1 Section 7] ask for which automatic sequences the profile can be computed exactly, and Theorem 1.1 gives it by an automaton. We also obtain the transfer relation for (Proposition 5.2).
The proofs reduce every infinite statement to a finite one: an induction on the Mills–Robbins recursion closed by finitely many boundary words (Lemma 4.1), a transducer with finitely many configurations (Theorem 5.1), and a self-similarity of the dyadic blocks (Proposition 3.2) that a finite automaton is shown to satisfy (§ 6). The finite verifications are carried out by the ancillary script, described in § 8.
Continued fractions and Hankel determinants
For with convergents , one has if and only if ; this is the classical link between Hankel determinants and the Padé table, see e.g. [1]. We apply it to
so that and are the indicator functions of and . If then . By Niederreiter’s theorem [10 Theorem 1], the linear complexity of is , where is determined by .
The Mills–Robbins expansion and its dyadic structure
Write (with ), let exchange and , and, for a word , let be its reversal. Put , , and, for ,
where applies to the first letter only, and
Each is a prefix of ; let be the limit. Mills and Robbins proved [8], see [6 p. 363], that
For a word over let be the sum of the degrees of its letters, and let be one of the codings defined by if and , if . Both preserve lengths: .
Lemma 3.1. for all ; for , and is a palindrome.
Proof. has letters, of which have degree 2, if is odd, and letters, of which have degree 2, if is even; in both cases . Since and reversal preserve degrees, , and induction from , , gives the claim. □
Put , , and, for ,
By the recursion, the palindromy of and , we have and for , and by Lemma 3.1.
Proposition 3.2. Let (an infinite word indexed from 0). Then, for every , ; moreover for all . Consequently, for , and :
(R1) if , then ;
(R2) if with , then ;
(R3) if , then ;
(R4) if , then .
Proof. with , and ; this gives the first two assertions. In the three factors have lengths , , , which gives (R4), and (R1) since . For , , in which occupies the positions and the positions ; with this gives (R2) and (R3). □
In binary, with , the four cases read: (R1) with , and then ; (R2) with , and then ; (R3) with , , and then ; (R4) all remaining , namely , , and . In (R4), is explicit: it is of the palindrome , whose middle part is periodic of period 3.
The factors of length three
Lemma 4.1. The set of factors of length 3 of has 20 elements and is closed under reversal. In no two letters of degree 2 are adjacent.
Proof. Let be the set of factors of length 3 of ; it has 20 elements and is closed under reversal. We show for all by induction; for this is a direct check. Let . A factor of length 3 of either lies in one of the four blocks or meets a junction. Factors of and lie in by induction, factors of by closure under reversal, and factors of by inspection: for , depends only on the parity of , and it is contained in . The remaining factors are the factor of containing its first letter and the six factors meeting the three junctions. They depend only on the first two letters of , the last three letters of and of , and the first two and last two letters of . The first two letters of are for all ; the last three letters of for are those of , hence depend only on ; the ends of depend only on the parity of . So these seven factors depend only on , and the six cases are checked to lie in . The last statement is read off . □
A transducer for t/f
For a matrix over and a series write . To compute the continued fraction of from we keep a matrix with , where is the remaining tail of . Reading a partial quotient of replaces by ; emitting a partial quotient of replaces by . Both preserve up to sign, hence throughout (we start from ).
If with , , then , and as soon as . Hence, if and for every letter that can follow, the polynomial part of is the polynomial part of , and if it is a correct partial quotient of : we emit it. We emit greedily as long as this holds for every letter allowed by after the last two letters read.
Theorem 5.1. Run the transducer on . The triples (matrix, last two letters read, ), where is the degree read in and the degree emitted, form a set of 12 configurations closed under reading every letter allowed by . In each of them every emission is certain, and: reading a letter of degree 1 emits exactly one partial quotient, equal to , or according as the previous letter has degree 1, is , or is , after which ; reading a letter of degree 2 emits nothing, after which . The first emissions are (after reading ) and (after reading the first letter of ).
Proof. A finite computation over the 12 configurations and the letters allowed by (Lemma 4.1), performed by the script.
Proof of Theorem 1.2. By Theorem 5.1, with , and .
Proposition 5.2. and . Consequently for .
Proof. , so consists of 0, 1 and the numbers , where is the total degree of the first letters of ; this is . Next , so consists of 0 and the cumulative degrees of the partial quotients of . By Theorem 5.1 these are 1 and the numbers for which the -th letter of has degree 1; this is . For the last statement: means that position ends a letter of degree 1, that it ends a letter; a letter of degree 2 is coded 01 by , so ends a letter of degree 1 if and only if both and end letters.
Remark 5.3. Equivalently, (restricted to ). One inclusion holds for every sequence: by the Desnanot–Jacobi identity , if then , that is . The reverse inclusion is specific: it fails for most random binary sequences.
Proof of Theorem 1.1
By Proposition 5.2, with for . The word is determined by its first 256 letters and the rules (R1)–(R4) of Proposition 3.2, since each rule expresses , , through a smaller index or an explicit word. It therefore suffices to show that the output of on the binary expansion of satisfies the same rules and agrees with on . Since , leading zeros do not matter. Each rule is a statement about all words of a regular shape, and is checked in a finite product automaton:
(R1): for all with , , the states reached from and from 0 by reading have the same output (reachability in );
(R2): the same for the states reached from , (a finite set of states), and from , by words of length at least 5;
(R3): for and the 31 words ;
(R4): depends only on the parity of , on , and on whether is one of the first four or last four positions; in the regions and the index is and , so the expected value is computed by a small automaton tracking mod 3, the parity of and whether (resp. ); the two remaining words have value 1.
All these checks succeed for and (script, Part 5). Hence , and for all .
From one builds an automaton for whose states are the pairs (state of on , state of on ), plus an initial state for : reading a digit updates both, since and . All automata here read the most significant digit first and accept leading zeros. Minimising gives 15 and 8 states. For the other reading direction, the minimal automaton reading least significant digits first has one state per element of the 2-kernel (by the Myhill–Nerode theorem; see [3 Section 6.6]). The kernel element of is the sequence , where is the state of on and the digits of . Every state of is some , so two kernel elements are equal if and only if the maps coincide on the states of . Enumerating these maps over all words gives 74 and 68. □
Proof of Corollary 1.3
By Proposition 5.2 and Theorem 5.1, the consecutive elements of differ by the degrees of the partial quotients of , that is by 1 or 3, both occurring. By Niederreiter’s theorem, with , so and . If , the values 3, 2, 1, 0 occur on this interval of ; if , the values 1, 0, , occur. □
Verification
The ancillary file verify_baum_sweet_hankel.py (Python 3, no dependency, exact arithmetic over , under a minute) performs all the finite checks used above: Lemma 4.1 (the set , the base cases and the seven boundary factors of each class mod 6); Theorem 5.1 (the 12 configurations, the certainty of every emission, the bookkeeping of ); and the rules (R1)–(R4) for , the base table, the minimal automata and the kernels. It also checks the statements against first principles: the Hankel determinants by Gaussian elimination for ; the continued fractions of and by Euclid’s algorithm, against and against the automaton, for ; and the linear complexity by the Berlekamp–Massey algorithm for .
Acknowledgement
Acknowledgement. Technical assistance: Claude (Anthropic).
References
- [1]J.-P. Allouche, G.-N. Han and H. Niederreiter, Perfect linear complexity profile and apwenian sequences, Finite Fields Appl. 68 (2020), 101761.arxiv.org/abs/2008.12160
- [2]J.-P. Allouche, J. Peyrière, Z.-X. Wen and Z.-Y. Wen, Hankel determinants of the Thue–Morse sequence, Ann. Inst. Fourier 48 (1998), 1–27.DOI
- [3]J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge University Press, 2003.
- [4]L. E. Baum and M. M. Sweet, Continued fractions of algebraic power series in characteristic 2, Ann. of Math. 103 (1976), 593–610.DOI
- [5]Y. Hu and G.-N. Han, On the automaticity of the Hankel determinants of a family of automatic sequences, Theoret. Comput. Sci. 795 (2019), 154–164.arxiv.org/abs/1806.05864
- [6]M. Mkaouar, Sur le développement en fraction continue de la série de Baum et Sweet, Bull. Soc. Math. France 123 (1995), 361–374.DOI
- [8]W. H. Mills and D. P. Robbins, Continued fractions for certain algebraic power series, J. Number Theory 23 (1986), 388–404.
- [9]L. Mérai and A. Winterhof, On the Nth linear complexity of automatic sequences, J. Number Theory 187 (2018), 415–429.DOI
- [10]H. Niederreiter, Sequences with almost perfect linear complexity profile, in Advances in Cryptology – EUROCRYPT ’87, Lecture Notes in Comput. Sci. 304, Springer, 1988, 37–51.