{
  "id": "4327",
  "ident": "NS.04327",
  "slug": "mathoverflow-339137--mathoverflow-339137-probabilistic",
  "title": "Mathoverflow 339137 · mathoverflow_339137_probabilistic",
  "status": "textbook",
  "statement_status": "reviewed",
  "statement_md": "Green's Open Problem 28 is the probabilistic reformulation of Mathoverflow 339137.\n\nSuppose that $X, Y$ are two finitely-supported independent random variables taking integer values,\nand such that $X + Y$ is uniformly distributed on its range. Are $X$ and $Y$ themselves uniformly\ndistributed on their ranges?\n\nMathematically, this equivalence is established via Probability Generating Functions (PGFs),\nshifting the support to $\\mathbb{N}$, and appropriately scaling the coefficients.",
  "subjects": [
    "math.PR",
    "msc:60"
  ],
  "tags": [],
  "collection": "mathoverflow",
  "source_url": "https://mathoverflow.net/questions/339137",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Mathoverflow339137.mathoverflow_339137_probabilistic",
  "statement_lean": "theorem mathoverflow_339137_probabilistic :\n    type_of% Mathoverflow339137.mathoverflow_339137 ↔ type_of% Green28.green_28",
  "challenge_source": "/-\nCopyright 2025 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\npublic import FormalConjectures.GreensOpenProblems.«28»\n\n/-!\n# Mathoverflow 339137\n\nWhy do polynomials with coefficients 0,1\n like to have only factors with 0,1\n coefficients?\n\n*Reference:* [mathoverflow/339137](https://mathoverflow.net/questions/339137)\nasked by user [*Sil*](https://mathoverflow.net/users/136794/sil)\n-/\n\n@[expose] public section\n\nopen scoped Polynomial\nnamespace Mathoverflow339137\n\n/--\nThe predicate that all coefficients of a polynomial are either zero or one.\n`P.coeffs` is the finite set of all *nonzero* coefficients of the polynomial `P`.\nSo `IsZeroOne P` means that every nonzero coefficient of `P` is equal to 1.\nNote that zero coefficients are not included in `P.coeffs`.\n-/\ndef IsZeroOne (P : ℝ[X]) := P.coeffs ⊆ {1}\n\n-- TODO(lezeau): add statement that coefficients must at least lie in `[0, 1]`\n\n/--\nLet $P(x), Q(x) ∈ ℝ[x]$ be two monic polynomials with non-negative coefficients.\nIf $R(x) = P(x)Q(x)$ is a $0,1$ polynomial (coefficients only from $\\{0,1\\}$), then $P(x)$ and $Q(x)$\nare also $0, 1$ polynomials.\n-/\n@[category research open, AMS 12]\ntheorem mathoverflow_339137 (P Q R : ℝ[X]) (hP: P.Monic) (hQ : Q.Monic)\n    (hp : ∀ c ∈ P.coeffs, 0 ≤ c) (hq : ∀ c ∈ Q.coeffs, 0 ≤ c)\n    (h : R = P * Q) (hR : IsZeroOne R) :\n    IsZeroOne P ∧ IsZeroOne Q := by\n  sorry\n\n/--\nGreen's Open Problem 28 is the probabilistic reformulation of Mathoverflow 339137.\n\nSuppose that $X, Y$ are two finitely-supported independent random variables taking integer values,\nand such that $X + Y$ is uniformly distributed on its range. Are $X$ and $Y$ themselves uniformly\ndistributed on their ranges?\n\nMathematically, this equivalence is established via Probability Generating Functions (PGFs),\nshifting the support to $\\mathbb{N}$, and appropriately scaling the coefficients.\n-/\n@[category textbook, AMS 60]\ntheorem mathoverflow_339137_probabilistic :\n    type_of% Mathoverflow339137.mathoverflow_339137 ↔ type_of% Green28.green_28 := by\n  sorry\n\nend Mathoverflow339137\n",
  "statement_hash": "61eb0ee4aff4f01f6940e8337fb81ed5e32ad8d7758519dd7bb5b3637c622918",
  "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."
}