{
  "id": "7541",
  "ident": "NS.07541",
  "slug": "papers-tudengconjecture",
  "title": "Tu-Deng Conjecture",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "**The Tu-Deng conjecture.** For $k \\ge 2$ and a nonzero residue $t$ modulo $2^k - 1$, there\nare at most $2^{k-1}$ pairs of residues $(a, b)$ with $a + b = t$ whose binary weights\n(of their representatives in $0, \\dots, 2^k - 2$) sum to at most $k - 1$.\n\nProved in [LLX26] and independently in [Cu26]; see also the Lean development [Lean26].",
  "subjects": [
    "math.CO",
    "math.NT",
    "math.IT",
    "msc:05",
    "msc:11",
    "msc:94"
  ],
  "tags": [],
  "collection": "papers",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "TuDengConjecture.tu_deng_conjecture",
  "statement_lean": "theorem tu_deng_conjecture (k : ℕ) (hk : 2 ≤ k) (t : ZMod (2 ^ k - 1)) (ht : t ≠ 0) :\n    {p : ZMod (2 ^ k - 1) × ZMod (2 ^ k - 1) |\n        p.1 + p.2 = t ∧ binaryWeight p.1.val + binaryWeight p.2.val ≤ k - 1}.ncard\n      ≤ 2 ^ (k - 1)",
  "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# Tu-Deng Conjecture\n\n*References:*\n* [Tu, Z., Deng, Y., *A conjecture about binary strings and its applications on constructing\n  Boolean functions with optimal algebraic immunity*, Des. Codes Cryptogr. **60** (2011),\n  1–14](https://doi.org/10.1007/s10623-010-9413-9)\n* [IACR ePrint 2009/272](https://eprint.iacr.org/2009/272)\n* [LLX26] [Liu, R., Luo, H., Xie, T., *A Complete Proof for Tu-Deng Conjecture*, arXiv:2608.05187v2\n  (2026)](https://arxiv.org/abs/2608.05187v2)\n* [Cu26] [Cusick, T. W., *Proof of the TuDeng Conjecture*, arXiv:2608.14821\n  (2026)](https://arxiv.org/abs/2608.14821)\n* [Lean26] [A Lean 4 proof of the count form of the conjecture](https://github.com/ifeelok92/tu-deng-conjecture-lean-formal-proof/blob/3c00561415deedcdc56b9e803042c1d0f15f5d5b/TuDengFormal/FirstExitNat.lean#L529-L535),\n  commit `3c005614`, theorem `TuDeng.FirstExit.tu_deng_conjecture_full`\n\nFor an integer $k \\ge 2$, identify the residues modulo $2^k - 1$ with the integers\n$0, 1, \\dots, 2^k - 2$, and let $w(a)$ denote the binary weight of $a$ (the number of ones in\nits binary expansion). The Tu-Deng conjecture states that for every residue $t \\ne 0$,\n\n$$\\#\\{(a, b) : a + b \\equiv t \\pmod{2^k - 1},\\ w(a) + w(b) \\le k - 1\\} \\le 2^{k-1}.$$\n\nTu and Deng showed that this combinatorial statement implies that their constructions of\nBoolean functions (a bent class and a balanced class) achieve optimal algebraic immunity,\nwhich is the motivation for the conjecture. They verified the conjecture numerically for\n$k \\le 29$ (Remark 3.1 of the ePrint version).\n\nThe conjecture is no longer open: [LLX26] and, independently, [Cu26] give complete proofs.\n[Lean26] is a Lean 4 development of the same bound, stated for the count of natural-number\nrepresentatives $x < 2^k - 1$ rather than for the set of residue pairs used below.\n-/\n\n@[expose] public section\n\nnamespace TuDengConjecture\n\n/-- The binary weight of a natural number: the number of ones in its binary expansion. -/\ndef binaryWeight (n : ℕ) : ℕ := (Nat.digits 2 n).sum\n\n/--\n**The Tu-Deng conjecture.** For $k \\ge 2$ and a nonzero residue $t$ modulo $2^k - 1$, there\nare at most $2^{k-1}$ pairs of residues $(a, b)$ with $a + b = t$ whose binary weights\n(of their representatives in $0, \\dots, 2^k - 2$) sum to at most $k - 1$.\n\nProved in [LLX26] and independently in [Cu26]; see also the Lean development [Lean26].\n-/\n@[category research solved, AMS 5 11 94]\ntheorem tu_deng_conjecture (k : ℕ) (hk : 2 ≤ k) (t : ZMod (2 ^ k - 1)) (ht : t ≠ 0) :\n    {p : ZMod (2 ^ k - 1) × ZMod (2 ^ k - 1) |\n        p.1 + p.2 = t ∧ binaryWeight p.1.val + binaryWeight p.2.val ≤ k - 1}.ncard\n      ≤ 2 ^ (k - 1) := by\n  sorry\n\nend TuDengConjecture\n",
  "statement_hash": "9447d0bc8008a089d451965aa0fb137a286446c33b2f482847e229af97a2f8d0",
  "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."
}