Left to Solve
Problems / MathOverflow (not formalized)

QR code problem

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

Statement

Motivation. Today, I saw a QR code with an unusually large black square (a largish group of “pixels” coloured black and forming a square). This inspired the following problem.

Problem. Fix , and let . Suppose there are with and , then we let the -square starting at be defined by

Let be any map. We write for the collection of all those maps. We say that has a -square if there are and with and , and the restriction is constant. For we let be the maximal such that has a -square.

For the expected value of the largest square for any uniformly picked map is given by

Is there a closed formula for ? If not, what is the value of ?

Posed by Dominic van der Zypen · pr.probability, st.statistics, limits-and-convergence, expectation

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

import Mathlib

/-!
# QR code problem

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_503280