Left to Solve
Problems / MathOverflow (not formalized)

Word complexity of primes mod 4

Open, not yet stated in LeanMathOverflow (not formalized)Number TheoryCombinatoricsdifficulty55/100

Statement

For an infinite binary word , the word complexity is defined as the number of different subwords of length . The asymptotic behavior of this function is an important parameter of the word . For example, for periodic sequences we have , for Sturmian words , for the Thue-Morse word and, more generally, for automatic sequences we have , etc.

Let denote the -th odd prime, and let , where . We have . I am curious if any nontrivial bounds are known about the word complexity in this case. The Cramér model would suggest , of course.

UPDATE (Feb 9, 2015)

I started with Shiu's reference pointed out by Lucia, and found a sizable literature on sequences of primes mod . Guy reports that special cases of the problem go back to Chebyshev. It seems likely that the question is open, but here are some relevant refs.

S. Knapowski and P. Turán, On prime numbers ≡1 resp. 3 mod 4 (1977).

I.Z. Ruzsa, Consecutive primes modulo 4 (2001).

R.K. Guy, Unsolved Problems in Number Theory, 2004, A4.

K. Monks, S. Peluse and L. Ye, Strings of special primes in …

Posed by Igor Pak · nt.number-theory, co.combinatorics, prime-numbers, integer-sequences

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-195995.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-195995.lean

import Mathlib

/-!
# Word complexity of primes mod 4

Source: https://mathoverflow.net/questions/195995
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_195995

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_195995