{
  "id": "6488",
  "ident": "NS.06488",
  "slug": "oeis-396843",
  "title": "A compositional generating function",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "\"Conjecture: all terms are odd.\"\n- Paul D. Hanna, Jul 01 2026.\n\nAn earlier Lean parity proof appears in `the-omega-institute/trureturing` PR #6773.\nWentao Li's formalization also proves integral existence and uniqueness; see [Li26].\nAI assistance was used for development and verification.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA396843.conjecture",
  "statement_lean": "theorem conjecture (n : ℕ) (hn : 1 ≤ n) : Odd (a 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# A compositional generating function\n\nThe ordinary generating function satisfies $A(xA(x)-3xA(x)^2)=x^2$,\nwith $A(0)=0$ and $a(1)=1$. Its coefficients form OEIS A396843.\n\n*References:*\n- [A396843](https://oeis.org/A396843), Paul D. Hanna, 2026.\n- ElonSG / the-omega-institute/trureturing, [Earlier Lean proof](https://github.com/the-omega-institute/trureturing/pull/6773).\n- [Li26] Wentao Li, [Integral construction and oddness](https://github.com/VictorLiwentao/lean-oeis-proofs/blob/1cc54d7f3ecfdcea49625ce31c8df3e22d4c6146/proofs/independent-formalization/A396843/PROOF.md), 2026.\n-/\n\n@[expose] public section\n\nnamespace OeisA396843\nopen PowerSeries\n\n/-- The normalized ordinary generating-function equation defining OEIS A396843. -/\ndef SourceEquation (A : PowerSeries ℤ) : Prop :=\n  constantCoeff A = 0 ∧ coeff 1 A = 1 ∧\n    A.subst (X * A - 3 * X * A ^ 2) = X ^ 2\n\n/-- The normalized generating series of OEIS A396843. -/\nnoncomputable def series : PowerSeries ℤ := Classical.epsilon SourceEquation\n\n/-- OEIS A396843, extended by $a(0)=0$ outside its offset-one domain. -/\nnoncomputable def a (n : ℕ) : ℤ := coeff n series\n\n/-- The defining equation has a unique normalized integral solution; see [Li26]. -/\n@[category API, AMS 11 13,\n  formal_proof using lean4 at \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000016\"]\ntheorem source_existence : ∃! A : PowerSeries ℤ, SourceEquation A := by\n  sorry\n\n/-- The selected series satisfies the defining equation and normalization. -/\n@[category API, AMS 11 13]\ntheorem series_spec : SourceEquation series :=\n  Classical.epsilon_spec source_existence.exists\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 0 := by\n  simpa [a, coeff_zero_eq_constantCoeff] using series_spec.1\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := series_spec.2.1\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 3 := by\n  sorry\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 15 := by\n  sorry\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 117 := by\n  sorry\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 975 := by\n  sorry\n\n/--\n\"Conjecture: all terms are odd.\"\n- Paul D. Hanna, Jul 01 2026.\n\nAn earlier Lean parity proof appears in `the-omega-institute/trureturing` PR #6773.\nWentao Li's formalization also proves integral existence and uniqueness; see [Li26].\nAI assistance was used for development and verification.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000016\"]\ntheorem conjecture (n : ℕ) (hn : 1 ≤ n) : Odd (a n) := by\n  sorry\n\nend OeisA396843\n",
  "statement_hash": "9cceb54b64d67682753324c3e7cdea601fec4a907297eada9e8be6cefb7a1d13",
  "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."
}