{
  "id": "4099",
  "ident": "NS.04099",
  "slug": "green-40",
  "title": "Ben Green's Open Problem 40",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Does $f(r) \\to \\infty$? [Gr24]",
  "subjects": [
    "math.CO",
    "math.IT",
    "msc:05",
    "msc:94"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green40.green_40",
  "statement_lean": "theorem green_40 : Tendsto f atTop (𝓝 ⊤)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Ben Green's Open Problem 40\n\n*References:*\n- [Gr24] [Ben Green's Open Problem 40](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.40)\n- [Da90] Davydov, Alexander Abramovich. \"Construction of linear covering codes.\"\n  Problemy Peredachi Informatsii 26.4 (1990): 38-55.\n- [CHL97] Cohen, G., Honkala, I., Litsyn, S., & Lobstein, A. (1997). Covering codes (Vol. 54). Elsevier.\n- [St94] R. Struik, Covering codes, PhD Thesis, Eindhoven University of Technology, the Netherlands, 106 pp, 1994.\n\n-/\n\n@[expose] public section\n\nopen Filter Topology Fintype\nopen scoped ENNReal Pointwise\n\nnamespace Green40\n\n\n/-- The Hamming ball of radius $r$ in $\\mathbb{F}_2^n$. -/\ndef hammingBall (n r : ℕ) : Set (𝔽₂ n) :=\n  {x | hammingNorm x ≤ r}\n\n/-- $V$ is a covering subspace of $\\mathbb{F}_2^n$ by $H(r)$ if $V + H(r) = \\mathbb{F}_2^n$. -/\ndef IsCoveringSubspace (n r : ℕ) (V : Submodule (ZMod 2) (𝔽₂ n)) : Prop :=\n  (V : Set (𝔽₂ n)) + hammingBall n r = Set.univ\n\n/-- The minimal covering density over all covering subspaces for a given n and r.\n    We compute in `ℝ≥0∞` (ENNReal) to gracefully handle any potential divergence. -/\nnoncomputable def minDensity (n r : ℕ) : ℝ≥0∞ :=\n  ⨅ (V : Submodule (ZMod 2) (𝔽₂ n)) (_ : IsCoveringSubspace n r V),\n    (Nat.card V : ℝ≥0∞) * (Nat.card (hammingBall n r) : ℝ≥0∞) / (2 ^ n : ℝ≥0∞)\n\n/--\nLet $f(r)$ be the smallest constant such that there exists an infinite sequence of $n$'s together\nwith subspaces $V_n \\leq \\mathbb{F}_2^n$ with $V_n + H(r) = \\mathbb{F}_2^n$ and\n$|V_n| = \\left(f(r) + o(1)\\right) \\frac{2^n}{|H(r)|}$.\n-/\nnoncomputable def f (r : ℕ) : ℝ≥0∞ :=\n  liminf (fun n ↦ minDensity n r) atTop\n\n/-- Does $f(r) \\to \\infty$? [Gr24]-/\n@[category research open, question, AMS 5 94]\ntheorem green_40 : Tendsto f atTop (𝓝 ⊤) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- The only value known is $f(1) = 1$, which follows from the existence of the Hamming code [Gr24]. -/\n@[category research solved, AMS 5 94, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Green40_green_40_sanity_f_one.lean#L216\"]\ntheorem green_40.sanity_f_one : f 1 = 1 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- $f(r) \\le r^r / r! \\sim e^r$ [Gr24]. -/\n@[category research solved, AMS 5 94, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Green40_green_40_upper_bound.lean#L245\"]\ntheorem green_40.upper_bound (r : ℕ) : f r ≤ (r ^ r : ℝ≥0∞) / (r.factorial : ℝ≥0∞) := by\n  sorry\n\n/-- The possibility that f(r) = 1 for all r has not been ruled out [Gr24] -/\n@[category research open, question, AMS 5 94]\ntheorem green_40.f_eq_one_for_all : ∀ r, f r = 1 := by\n  sorry\n\n/-- It is not known whether f(2) = 1 [Gr24] -/\n@[category research open, question, AMS 5 94]\ntheorem green_40.f_two_eq_one : f 2 = 1 := by\n  sorry\n\n/-- The best-known upper bound for $f(2)$ is $1.4238$ [CHL97]. -/\n@[category research solved, AMS 5 94]\ntheorem green_40.upper_bound_f_two : f 2 ≤ (1.4238 : ℝ≥0∞) := by\n  sorry\n\n-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n-- Variant with arbitrary subsets\n-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\ndef hammingBallFinset (n r : ℕ) : Finset (𝔽₂ n) :=\n  Finset.univ.filter (fun x => hammingNorm x ≤ r)\n\ndef IsCoveringFinset (n r : ℕ) (V : Finset (𝔽₂ n)) : Prop :=\n  V + hammingBallFinset n r = Finset.univ\n\nnoncomputable def minDensityFinset (n r : ℕ) : ℝ≥0∞ :=\n  ⨅ (V : Finset (𝔽₂ n)) (_ : IsCoveringFinset n r V),\n    (V.card : ℝ≥0∞) * (Nat.card (hammingBall n r) : ℝ≥0∞) / (2 ^ n : ℝ≥0∞)\n\nnoncomputable def f_tilde (r : ℕ) : ℝ≥0∞ :=\n  liminf (fun n ↦ minDensityFinset n r) atTop\n\n/-- Does $\\tilde{f}(r) \\to \\infty$? [Gr24] -/\n@[category research open, question, AMS 5 94]\ntheorem green_40.variants.arbitrary_subsets : Tendsto f_tilde atTop (𝓝 ⊤) := by\n  sorry\n\n/-- It is known that $\\tilde{f}(2) = 1$ [St94]. -/\n@[category research solved, AMS 5 94]\ntheorem green_40.variants.arbitrary_subsets_sanity_f_tilde_two : f_tilde 2 = 1 := by\n  sorry\n\n/-- We evidently have $\\tilde{f}(r) \\le f(r)$ [Gr24]. -/\n@[category research solved, AMS 5 94]\ntheorem green_40.f_tilde_le_f (r : ℕ) : f_tilde r ≤ f r := by\n  refine Filter.liminf_le_liminf (Filter.Eventually.of_forall fun n => ?_)\n  refine le_iInf₂ fun V hV => ?_\n  have hfin : (V : Set (𝔽₂ n)).Finite := Set.toFinite _\n  have hcov : IsCoveringFinset n r hfin.toFinset := by\n    unfold IsCoveringFinset\n    ext x\n    simp only [Finset.mem_univ, iff_true]\n    have hx : x ∈ (V : Set (𝔽₂ n)) + hammingBall n r := hV ▸ Set.mem_univ x\n    obtain ⟨a, ha, b, hb, hab⟩ := hx\n    exact Finset.mem_add.mpr\n      ⟨a, hfin.mem_toFinset.mpr ha, b, by simpa [hammingBallFinset, hammingBall] using hb, hab⟩\n  have hcard : (hfin.toFinset.card : ℝ≥0∞) = (Nat.card V : ℝ≥0∞) := by\n    have h : Nat.card V = hfin.toFinset.card := by\n      rw [show Nat.card V = Nat.card (V : Set (𝔽₂ n)) from rfl, Nat.card_coe_set_eq,\n        Set.ncard_eq_toFinset_card _ hfin]\n    exact_mod_cast congrArg Nat.cast h.symm\n  calc minDensityFinset n r\n      ≤ (hfin.toFinset.card : ℝ≥0∞) * (Nat.card (hammingBall n r) : ℝ≥0∞) /\n          (2 ^ n : ℝ≥0∞) :=\n        iInf₂_le hfin.toFinset hcov\n    _ = (Nat.card V : ℝ≥0∞) * (Nat.card (hammingBall n r) : ℝ≥0∞) /\n          (2 ^ n : ℝ≥0∞) := by\n        rw [hcard]\n\n-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n-- Variant for all n\n-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\nnoncomputable def f_all (r : ℕ) : ℝ≥0∞ :=\n  limsup (fun n ↦ minDensity n r) atTop\n\n/-- Does $f_{\\text{all}}(r) \\to \\infty$? [Gr24]\n\nThe target filter is `𝓝 ⊤`, as in `green_40` and `green_40.variants.arbitrary_subsets`. On\n`ℝ≥0∞`, `atTop` is the principal ultrafilter at `⊤`, so `Tendsto f_all atTop atTop` would say\nthat `f_all r = ⊤` for all large `r` rather than that `f_all r → ∞`. -/\n@[category research open, question, AMS 5 94]\ntheorem green_40.variants.all_n : Tendsto f_all atTop (𝓝 ⊤) := by\n  sorry\n\nend Green40\n",
  "statement_hash": "8e9f41a58209e5142e1d45a92108170b2fddec57457f765ffbeda610fa763669",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}