Left to Solve
Problems / MathOverflow (not formalized)

Checking Mertens and the like in less than linear time or less than $\sqrt{x}$ space

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

Statement

Say you want to check that for all . (I am actually interested in checking that , where is a constant, and in finding the best such that this is true in a given range, such as , say; all of these problems are evidently related.)

The natural algorithm (the same you can find in section 4 of [1], say) has running time and takes space (where we think of integers as taking constant space). I've coded it with some optimizations (for , using interval arithmetic) and should have a result for in about a fortnight; takes an afternoon. (When I first coded this, less carefully and on worse hardware, it took a week.)

Is it possible to do things in either less time or less space? Space is important here in practice - ideally you would want to keep everything in cache, and it is rare to have more than 4MB per processor core - that is, enough for values of , or large integers.

Notice that I am asking for a check for all , and not just for a single . …

Posed by H A Helfgott · nt.number-theory, analytic-number-theory, computational-complexity, computation

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-237308.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-237308.lean

import Mathlib

/-!
# Checking Mertens and the like in less than linear time or less than $\sqrt{x}$ space

Source: https://mathoverflow.net/questions/237308
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_237308

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

theorem main : sorry := by
  sorry

end OMA.S_mo_237308