{
  "id": "8418",
  "ident": "NS.08418",
  "slug": "wikipedia-scholzconjecture",
  "title": "Scholz conjecture on addition chains",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "The Scholz conjecture, also known as the Scholz-Brauer conjecture, asserts that\nfor every positive integer $n$, the addition-chain length of $2^n - 1$ is at most\n$n - 1 + \\ell(n)$.",
  "subjects": [
    "math.NT",
    "math.CO",
    "msc:11",
    "msc:68"
  ],
  "tags": [
    "question"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "ScholzConjecture.scholz_conjecture",
  "statement_lean": "theorem scholz_conjecture :\n    ∀ (n : ℕ), 0 < n → ℓ(2 ^ n - 1) ≤ n - 1 + ℓ(n)",
  "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# Scholz conjecture on addition chains\n\n*References:*\n- [Wikipedia](https://en.wikipedia.org/wiki/Scholz_conjecture)\n- [MathWorld](https://mathworld.wolfram.com/ScholzConjecture.html)\n- [Tall22](https://arxiv.org/abs/2210.13812) Amadou Tall. \"The Scholz conjecture on addition\n  chain is true for infinitely many integers with $\\ell(2n) = \\ell(n)$.\" _arXiv:2210.13812_ (2022).\n  Also available as [ePrint 2023/020](https://eprint.iacr.org/2023/020).\n- [OEIS A003313](https://oeis.org/A003313)\n-/\n\n@[expose] public section\n\nnamespace ScholzConjecture\n\nlocal notation \"ℓ(\" n \")\" => additionChainLength n\n\n/--\nThe Scholz conjecture, also known as the Scholz-Brauer conjecture, asserts that\nfor every positive integer $n$, the addition-chain length of $2^n - 1$ is at most\n$n - 1 + \\ell(n)$.\n-/\n@[category research open, question, AMS 11 68]\ntheorem scholz_conjecture :\n    ∀ (n : ℕ), 0 < n → ℓ(2 ^ n - 1) ≤ n - 1 + ℓ(n) := by\n  sorry\n\n-- TODO(eyang07): add solved variants. See Wikipedia reference.\n\n/-- `7` is the first value where the doubling bound is not sharp: it gives `ℓ(7) ≥ 3`, and no\nfour-entry chain ends at `7`. Every entry of such a chain lies strictly between `1` and `7`, so\nthere are only finitely many to rule out. -/\n@[category API, AMS 11 68]\nprivate lemma three_notMem_additionChainSteps_seven : 3 ∉ additionChainSteps 7 := by\n  rintro ⟨c, ⟨hhead, hsorted, hsum⟩, hlast, hlen⟩\n  match c, hlen with\n  | [w, x, y, z], _ =>\n    simp only [List.head?_cons, Option.some.injEq] at hhead\n    simp only [List.getLast?_cons_cons, List.getLast?_singleton, Option.some.injEq] at hlast\n    subst hhead; subst hlast\n    simp only [List.pairwise_cons, List.mem_cons, List.not_mem_nil,\n      or_false, forall_eq_or_imp, forall_eq, List.Pairwise.nil, and_true] at hsorted\n    obtain ⟨⟨h1x, h1y, -⟩, ⟨hxy, hx7⟩, hy7, -⟩ := hsorted\n    interval_cases x <;> interval_cases y <;> simp_all [List.mem_cons]\n\n/-- The first few values of $\\ell(n)$. See [OEIS A003313](https://oeis.org/A003313). -/\n@[category test, AMS 11]\ntheorem additionChainLength_first_values :\n    [ℓ(1), ℓ(2), ℓ(3), ℓ(4), ℓ(5), ℓ(6), ℓ(7), ℓ(8), ℓ(9), ℓ(10)] =\n    [0, 1, 2, 2, 3, 3, 4, 3, 4, 4] := by\n  have h1 : ℓ(1) = 0 := Nat.le_zero.mp (additionChainLength_le [1] (by decide) rfl rfl)\n  have key : ∀ (n r : ℕ) (c : List ℕ), IsAdditionChain c → c.getLast? = some n →\n      c.length = r + 1 → 2 ^ (r - 1) < n → 1 ≤ r → ℓ(n) = r := by\n    intro n r c hc hlast hlen hlow hr\n    refine le_antisymm (additionChainLength_le c hc hlast hlen) ?_\n    have := lt_additionChainLength_of_two_pow_lt (additionChainSteps_nonempty c hc hlast hlen) hlow\n    omega\n  have h2 := key 2 1 [1, 2] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h3 := key 3 2 [1, 2, 3] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h4 := key 4 2 [1, 2, 4] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h5 := key 5 3 [1, 2, 4, 5] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h6 := key 6 3 [1, 2, 3, 6] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h8 := key 8 3 [1, 2, 4, 8] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h9 := key 9 4 [1, 2, 4, 8, 9] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h10 := key 10 4 [1, 2, 4, 5, 10] (by decide) rfl rfl (by norm_num) (by norm_num)\n  have h7 : ℓ(7) = 4 := by\n    have hne := additionChainSteps_nonempty (n := 7) (r := 4) [1, 2, 3, 4, 7] (by decide) rfl rfl\n    have hub := additionChainLength_le (n := 7) (r := 4) [1, 2, 3, 4, 7] (by decide) rfl rfl\n    have hlb := lt_additionChainLength_of_two_pow_lt (n := 7) (r := 2) hne (by norm_num)\n    have hne3 : ℓ(7) ≠ 3 := fun h => three_notMem_additionChainSteps_seven (h ▸ Nat.sInf_mem hne)\n    omega\n  rw [h1, h2, h3, h4, h5, h6, h7, h8, h9, h10]\n\nend ScholzConjecture\n",
  "statement_hash": "8c296c75a1d4186cb7cde86bfa58e4ebe486a7fbccf57c64fae6c0a924646bd0",
  "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."
}