/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil /-! # Green's Open Problem 52 *Reference:* [Green's Open Problems](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.52) -/ @[expose] public section open Filter Real open scoped Pointwise namespace Green52 /-- Suppose that $A \subset \mathbb{F}_2^n$ is a set with an additive complement of size $K$. Does $2A$ contain a coset of codimension $O_K(1)$? -/ @[category research open, question, AMS 5 11] theorem green_52 : ∃ (c : ℕ → ℕ), ∀ (n K : ℕ) (A : Set (𝔽₂ n)) (S : Finset (𝔽₂ n)), S.card = K → A + (S : Set (𝔽₂ n)) = Set.univ → ∃ (V : AffineSubspace (ZMod 2) (𝔽₂ n)), (V : Set (𝔽₂ n)) ⊆ A + A ∧ n ≤ Module.finrank (ZMod 2) V.direction + c K := by sorry set_option linter.style.formal_proof_palomar false in /-- Could $2A$ even contain a coset of codimension $O(\log K)$? From [Green's 2025 update](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.52): > Update 2025. Kaave Hosseini and Ryan Alweiss have independently pointed out > that the second question is far too optimistic. To see this, let $A$ be a Hamming ball > of radius $n/2 - \sqrt{n}$. There is a set $S$ of size $O(n)$ such that > $A + S = \mathbb{F}_2^n$; a random choice of $S$ will work. However, every subspace > contained in $A - A$ has codimension $\gg \sqrt{n}$. -/ @[category research solved, question, AMS 5 11, formal_proof using lean4 at "https://github.com/KitaKen1/green-52-log-counterexample/blob/16cb5d0/lean/Green52LogCounterexampleFC.lean#L661-L668"] theorem green_52_log : ¬ ∃ (C D : ℝ), ∀ (n K : ℕ) (A : Set (𝔽₂ n)) (S : Finset (𝔽₂ n)), 0 < K → S.card = K → A + (S : Set (𝔽₂ n)) = Set.univ → ∃ (V : AffineSubspace (ZMod 2) (𝔽₂ n)), (V : Set (𝔽₂ n)) ⊆ A + A ∧ (n : ℝ) ≤ (Module.finrank (ZMod 2) V.direction : ℝ) + C * log (K : ℝ) + D := by sorry -- TODO(jgd): Implement variants from Green's comments [Gr24]. end Green52