Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:A compositional generating function

Source:OEIS conjectures
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

"Conjecture: all terms are odd."

  • Paul D. Hanna, Jul 01 2026.

An earlier Lean parity proof appears in the-omega-institute/trureturing PR #6773. Wentao Li's formalization also proves integral existence and uniqueness; see [Li26]. AI assistance was used for development and verification.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.06488 [math.NT] · NS.06488v1 for this version
Declaration:OeisA396843.conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:9cceb54b64d67682753324c3e7cdea601fec4a907297eada9e8be6cefb7a1d13
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/396843.lean

Formal statement

theorem conjecture (n : ℕ) (hn : 1 ≤ n) : Odd (a n)
Show the full Challenge.lean (96 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# A compositional generating function

The ordinary generating function satisfies $A(xA(x)-3xA(x)^2)=x^2$,
with $A(0)=0$ and $a(1)=1$. Its coefficients form OEIS A396843.

*References:*
- [A396843](https://oeis.org/A396843), Paul D. Hanna, 2026.
- ElonSG / the-omega-institute/trureturing, [Earlier Lean proof](https://github.com/the-omega-institute/trureturing/pull/6773).
- [Li26] Wentao Li, [Integral construction and oddness](https://github.com/VictorLiwentao/lean-oeis-proofs/blob/1cc54d7f3ecfdcea49625ce31c8df3e22d4c6146/proofs/independent-formalization/A396843/PROOF.md), 2026.
-/

@[expose] public section

namespace OeisA396843
open PowerSeries

/-- The normalized ordinary generating-function equation defining OEIS A396843. -/
def SourceEquation (A : PowerSeries ℤ) : Prop :=
  constantCoeff A = 0 ∧ coeff 1 A = 1 ∧
    A.subst (X * A - 3 * X * A ^ 2) = X ^ 2

/-- The normalized generating series of OEIS A396843. -/
noncomputable def series : PowerSeries ℤ := Classical.epsilon SourceEquation

/-- OEIS A396843, extended by $a(0)=0$ outside its offset-one domain. -/
noncomputable def a (n : ℕ) : ℤ := coeff n series

/-- The defining equation has a unique normalized integral solution; see [Li26]. -/
@[category API, AMS 11 13,
  formal_proof using lean4 at "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000016"]
theorem source_existence : ∃! A : PowerSeries ℤ, SourceEquation A := by
  sorry

/-- The selected series satisfies the defining equation and normalization. -/
@[category API, AMS 11 13]
theorem series_spec : SourceEquation series :=
  Classical.epsilon_spec source_existence.exists

@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by
  simpa [a, coeff_zero_eq_constantCoeff] using series_spec.1

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := series_spec.2.1

@[category test, AMS 11]
theorem a_2 : a 2 = 3 := by
  sorry

@[category test, AMS 11]
theorem a_3 : a 3 = 15 := by
  sorry

@[category test, AMS 11]
theorem a_4 : a 4 = 117 := by
  sorry

@[category test, AMS 11]
theorem a_5 : a 5 = 975 := by
  sorry

/--
"Conjecture: all terms are odd."
- Paul D. Hanna, Jul 01 2026.

An earlier Lean parity proof appears in `the-omega-institute/trureturing` PR #6773.
Wentao Li's formalization also proves integral existence and uniqueness; see [Li26].
AI assistance was used for development and verification.
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at "https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000016"]
theorem conjecture (n : ℕ) (hn : 1 ≤ n) : Odd (a n) := by
  sorry

end OeisA396843

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA396843.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-396843
nosorry submit oeis-396843 nosorry/oeis-396843/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.