1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349import FormalConjectures.OEIS.«396843»
import Mathlib.RingTheory.PowerSeries.Substitution
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.IntervalCases
import Mathlib.Tactic.NormNum
namespace Submission
open PowerSeries
-- Integral existence and uniqueness of the normalized solution of-- `A(xA - 3xA^2) = x^2`, following the integral construction of Wentao Li-- (Apache 2.0, lean-oeis-proofs, OEIS A396843), trimmed to what `a(4) = 117` needs.variable {R : Type*} [CommRing R]
noncomputabledef argument (f : PowerSeries R) : PowerSeries R := X * f - 3 * X * f ^ 2
noncomputabledef output (f : PowerSeries R) : PowerSeries R := f.subst (argument f)
lemma argument_constant (f : PowerSeries R) : constantCoeff (argument f) = 0 := by
simp [argument]
lemma argument_hasSubst (f : PowerSeries R) : HasSubst (argument f) :=
.of_constantCoeff_zero' (argument_constant f)
lemma argument_dvd {f : PowerSeries R} (h : constantCoeff f = 0) :
(X : PowerSeries R) ^ 2 ∣ argument f := by
obtain ⟨q, rfl⟩ := X_dvd_iff.mpr h
refine ⟨q - 3 * X * q ^ 2, ?_⟩
dsimp [argument]
ring
lemma coeff_eq_of_dvd {f g : PowerSeries R} {d n : ℕ}
(h : (X : PowerSeries R) ^ d ∣ f - g) (hn : n < d) : coeff n f = coeff n g := by
have := X_pow_dvd_iff.mp h n hn
simpa only [map_sub, sub_eq_zero] using this
lemma pow_difference_dvd {u v : PowerSeries R} {e k : ℕ}
(hu : (X : PowerSeries R) ^ 2 ∣ u) (hv : (X : PowerSeries R) ^ 2 ∣ v)
(he : (X : PowerSeries R) ^ e ∣ u - v) (hk : 2 ≤ k) :
(X : PowerSeries R) ^ (e + 2) ∣ u ^ k - v ^ k := by
obtain ⟨k, rfl⟩ := Nat.exists_eq_add_of_le hk
clear hk
induction k with
| zero =>
have h := mul_dvd_mul he (dvd_add hu hv)
rw [← pow_add] at h
convert h using 1
all_goals ring
| succ k ih =>
have hvk : X ^ 2 ∣ v ^ (k + 2) := hv.trans (dvd_pow_self v (by omega))
have hsecond : X ^ (e + 2) ∣ (u - v) * v ^ (k + 2) := by
simpa only [pow_add] using mul_dvd_mul he hvk
have h := dvd_add (dvd_mul_of_dvd_right ih u) hsecond
convert h using 1
all_goals ring
lemma subst_outer_dvd {f g u : PowerSeries R} {d : ℕ}
(hu : constantCoeff u = 0) (hu2 : (X : PowerSeries R) ^ 2 ∣ u)
(h : (X : PowerSeries R) ^ d ∣ f - g) :
(X : PowerSeries R) ^ (2 * d) ∣ f.subst u - g.subst u := by
have hs : HasSubst u := .of_constantCoeff_zero' hu
obtain ⟨q, hq⟩ := h
have he := congrArg (fun p : PowerSeries R => p.subst u) hq
rw [subst_sub hs, subst_mul hs, subst_pow hs, subst_X hs] at he
rw [he]
have hp : X ^ (2 * d) ∣ u ^ d := by
simpa only [pow_mul] using pow_dvd_pow_of_dvd hu2 d
exact hp.mul_right _
lemma subst_tail_dvd {f u v : PowerSeries R} {e : ℕ}
(hf : coeff 1 f = 1) (hu : constantCoeff u = 0) (hv : constantCoeff v = 0)
(hu2 : (X : PowerSeries R) ^ 2 ∣ u) (hv2 : (X : PowerSeries R) ^ 2 ∣ v)
(he : (X : PowerSeries R) ^ e ∣ u - v) :
(X : PowerSeries R) ^ (e + 2) ∣ f.subst u - f.subst v - (u - v) := by
have hsu : HasSubst u := .of_constantCoeff_zero' hu
have hsv : HasSubst v := .of_constantCoeff_zero' hv
apply X_pow_dvd_iff.mpr
intro n hn
have h : coeff n ((f - X).subst u) = coeff n ((f - X).subst v) := by
rw [coeff_subst' hsu, coeff_subst' hsv]
apply finsum_congr
intro k
rcases k with _ | k
· simp
rcases k with _ | k
· simp [hf]
· rw [coeff_eq_of_dvd (pow_difference_dvd hu2 hv2 he (by omega : 2 ≤ k + 2)) hn]
rw [subst_sub hsu, subst_sub hsv, subst_X hsu, subst_X hsv] at h
simp only [map_sub] at h ⊢
linear_combination h
lemma output_linearization {f g : PowerSeries R} {d : ℕ} (hd : 2 ≤ d)
(hf : constantCoeff f = 0) (hg : constantCoeff g = 0) (hf1 : coeff 1 f = 1)
(h : (X : PowerSeries R) ^ d ∣ f - g) :
(X : PowerSeries R) ^ (d + 2) ∣ output f - output g - X * (f - g) := by
have ha : X ^ (d + 1) ∣ argument f - argument g := by
have ht := mul_dvd_mul (dvd_refl (X : PowerSeries R)) h
rw [← pow_succ'] at ht
convert ht.mul_right (1 - 3 * (f + g)) using 1
all_goals (dsimp [argument]; ring)
have hb : X ^ (d + 2) ∣ argument f - argument g - X * (f - g) := by
have hz : X ∣ f + g := X_dvd_iff.mpr (by simp [hf, hg])
have ht' := mul_dvd_mul (mul_dvd_mul (dvd_refl (X : PowerSeries R)) h) hz
rw [show X * X ^ d * X = (X : PowerSeries R) ^ (d + 2) by ring] at ht'
convert ht'.mul_left (-3) using 1
all_goals (dsimp [argument]; ring)
have ho := subst_outer_dvd (argument_constant g) (argument_dvd hg) h
have ho' : X ^ (d + 2) ∣ f.subst (argument g) - g.subst (argument g) :=
(pow_dvd_pow X (by omega : d + 2 ≤ 2 * d)).trans ho
have hi := subst_tail_dvd hf1 (argument_constant f) (argument_constant g)
(argument_dvd hf) (argument_dvd hg) ha
have hi' : X ^ (d + 2) ∣
f.subst (argument f) - f.subst (argument g) - (argument f - argument g) :=
(pow_dvd_pow X (by omega : d + 2 ≤ d + 1 + 2)).trans hi
convert dvd_add (dvd_add hi' ho') hb using 1
all_goals (dsimp [output]; ring)
lemma normalized_difference {f g : PowerSeries R}
(h0 : constantCoeff f = constantCoeff g) (h1 : coeff 1 f = coeff 1 g) :
(X : PowerSeries R) ^ 2 ∣ f - g := by
apply X_pow_dvd_iff.mpr
intro n hn
interval_cases n <;> simp_all [coeff_zero_eq_constantCoeff]
lemma output_congr {f g : PowerSeries R} {d : ℕ} (hd : 2 ≤ d)
(hf : constantCoeff f = 0) (hg : constantCoeff g = 0) (hf1 : coeff 1 f = 1)
(h : (X : PowerSeries R) ^ d ∣ f - g) :
(X : PowerSeries R) ^ (d + 1) ∣ output f - output g := by
have ht := output_linearization hd hf hg hf1 h
have hs : X ^ (d + 1) ∣ X * (f - g) := by
simpa only [pow_succ'] using mul_dvd_mul (dvd_refl (X : PowerSeries R)) h
have ht' := (pow_dvd_pow X (by omega : d + 1 ≤ d + 2)).trans ht
convert dvd_add ht' hs using 1
all_goals ring
lemma output_next {f g : PowerSeries R} {d : ℕ} (hd : 2 ≤ d)
(hf : constantCoeff f = 0) (hg : constantCoeff g = 0) (hf1 : coeff 1 f = 1)
(h : (X : PowerSeries R) ^ d ∣ f - g) :
coeff (d + 1) (output f) - coeff (d + 1) (output g) = coeff d f - coeff d g := by
have ht := X_pow_dvd_iff.mp (output_linearization hd hf hg hf1 h) (d + 1) (by omega)
simpa only [map_sub, coeff_succ_X_mul, sub_eq_zero] using ht
/-- The division-free correction sequence, beginning with $X$. -/noncomputabledef stage : ℕ → PowerSeries R
| 0 => X
| n + 1 => stage n - monomial (n + 2) (coeff (n + 3) (output (stage n)))
@[simp] lemma stage_constant (n : ℕ) : constantCoeff (stage n : PowerSeries R) = 0 := by
induction n with
| zero => simp [stage]
| succ n ih =>
rw [stage, map_sub, ih, zero_sub, neg_eq_zero]
rw [← coeff_zero_eq_constantCoeff_apply, coeff_monomial]
simp
@[simp] lemma stage_linear (n : ℕ) : coeff 1 (stage n : PowerSeries R) = 1 := by
induction n with
| zero => simp [stage]
| succ n ih => simp [stage, coeff_monomial, ih]
lemma stage_change (n : ℕ) :
(X : PowerSeries R) ^ (n + 2) ∣ stage (n + 1) - stage n := by
refine ⟨- C (coeff (n + 3) (output (stage n))), ?_⟩
rw [stage, monomial_eq_C_mul_X_pow]
ring
lemma stage_correct (n : ℕ) :
(X : PowerSeries R) ^ (n + 3) ∣ output (stage n) - X ^ 2 := by
induction n with
| zero =>
refine ⟨-3, ?_⟩
change X.subst (argument X) - X ^ 2 = X ^ 3 * (-3 : PowerSeries R)
rw [subst_X (argument_hasSubst _)]
dsimp [argument]
ring
| succ n ih =>
have hd := stage_change (R := R) n
have hl := output_linearization (by omega : 2 ≤ n + 2)
(stage_constant (n + 1)) (stage_constant n) (stage_linear (n + 1)) hd
apply X_pow_dvd_iff.mpr
intro j hj
have he := X_pow_dvd_iff.mp hl j (by omega)
simp only [map_sub] at he
have hc : coeff j (X * (stage (n + 1) - stage n) : PowerSeries R) =
if j = n + 3 then -coeff (n + 3) (output (stage n) : PowerSeries R) else 0 := by
cases j with
| zero => simp
| succ j =>
rw [coeff_succ_X_mul]
simp only [stage, sub_sub_cancel_left, map_neg, coeff_monomial]
split_ifs <;> simp_all
rw [hc] at he
by_cases hj' : j < n + 3
· rw [if_neg (by omega)] at he
have hi := X_pow_dvd_iff.mp ih j hj'
simp only [map_sub] at hi ⊢
linear_combination he + hi
· have hje : j = n + 3 := by omega
subst j
rw [if_pos rfl] at he
simp only [map_sub, coeff_X_pow, show ¬ n + 3 = 2 by omega, ite_false]
linear_combination he
lemma stage_stable {m n k : ℕ} (hmn : m ≤ n) (hk : k < m + 2) :
coeff k (stage n : PowerSeries R) = coeff k (stage m : PowerSeries R) := by
induction n, hmn using Nat.le_induction with
| base => rfl
| succ n hmn ih =>
exact (coeff_eq_of_dvd (stage_change n) (by omega)).trans ih
/-- The integral series obtained by stabilizing each coefficient. -/noncomputabledef series : PowerSeries R := mk fun n => coeff n (stage n)
lemma series_approximation (n : ℕ) :
(X : PowerSeries R) ^ (n + 2) ∣ series - stage n := by
apply X_pow_dvd_iff.mpr
intro k hk
simp only [map_sub, coeff_mk, series, sub_eq_zero]
exact (stage_stable (m := k) (n := max n k) (by omega) (by omega)).symm.trans
(stage_stable (m := n) (n := max n k) (by omega) hk)
lemma series_constant : constantCoeff (series : PowerSeries R) = 0 := by
simpa using coeff_eq_of_dvd (series_approximation (R := R) 0) (by omega : 0 < 0 + 2)
lemma series_linear : coeff 1 (series : PowerSeries R) = 1 := by
simpa using coeff_eq_of_dvd (series_approximation (R := R) 0) (by omega : 1 < 0 + 2)
theorem series_equation : output (series : PowerSeries R) = X ^ 2 := by
ext n
have h := output_congr (R := R) (by omega : 2 ≤ n + 2) series_constant (stage_constant n)
series_linear (series_approximation n)
exact (coeff_eq_of_dvd h (by omega)).trans
(coeff_eq_of_dvd (stage_correct n) (by omega))
theorem normalized_unique {f g : PowerSeries R}
(hf : constantCoeff f = 0) (hg : constantCoeff g = 0)
(hf1 : coeff 1 f = 1) (hg1 : coeff 1 g = 1)
(he : output f = output g) : f = g := by
have hall : ∀ n, (X : PowerSeries R) ^ (n + 2) ∣ f - g := by
intro n
induction n with
| zero => exact normalized_difference (hf.trans hg.symm) (hf1.trans hg1.symm)
| succ n ih =>
apply X_pow_dvd_iff.mpr
intro k hk
by_cases hk' : k < n + 2
· exact X_pow_dvd_iff.mp ih k hk'
· have hkn : k = n + 2 := by omega
subst k
have ht := output_next (by omega : 2 ≤ n + 2) hf hg hf1 ih
rw [he, sub_self] at ht
simpa only [map_sub] using ht.symm
ext n
exact coeff_eq_of_dvd (hall n) (by omega)
/-- Finite polynomial version of the same correction process, for exact initial-value checks. -/noncomputabledef polynomialStage : ℕ → Polynomial ℤ
| 0 => Polynomial.X
| n + 1 =>
let p := polynomialStage n
p - Polynomial.monomial (n + 2)
((p.comp (Polynomial.X * p - 3 * Polynomial.X * p ^ 2)).coeff (n + 3))
lemma polynomial_substitution (p q : Polynomial ℤ) (hq : q.coeff 0 = 0) :
(p : PowerSeries ℤ).subst (q : PowerSeries ℤ) = (p.comp q : Polynomial ℤ) := by
have hq' : constantCoeff (q : PowerSeries ℤ) = 0 := by
simpa only [← coeff_zero_eq_constantCoeff_apply, Polynomial.coeff_coe] using hq
rw [subst_coe (.of_constantCoeff_zero' hq')]
have hh : (algebraMap ℤ (PowerSeries ℤ)) = C := Subsingleton.elim _ _
simp only [Polynomial.aeval_def, hh, ← Polynomial.eval₂_C_X_eq_coe, Polynomial.eval₂_comp]
lemma polynomialStage_coe (n : ℕ) : (polynomialStage n : PowerSeries ℤ) = stage n := by
induction n with
| zero => simp [polynomialStage, stage]
| succ n ih =>
have harg :
((Polynomial.X * polynomialStage n - 3 * Polynomial.X * polynomialStage n ^ 2 :
Polynomial ℤ) : PowerSeries ℤ) = argument (stage n) := by
simp only [argument, Polynomial.coe_sub, Polynomial.coe_mul, Polynomial.coe_pow,
Polynomial.coe_X, ih]
have hthree : ((3 : Polynomial ℤ) : PowerSeries ℤ) = 3 :=
map_ofNat Polynomial.coeToPowerSeries.ringHom 3
rw [hthree]
have hzero :
(Polynomial.X * polynomialStage n - 3 * Polynomial.X * polynomialStage n ^ 2).coeff 0 = 0 := by
simp
have hsub := polynomial_substitution (polynomialStage n) _ hzero
rw [harg, ih] at hsub
simp only [polynomialStage, Polynomial.coe_sub, Polynomial.coe_monomial, stage, ih]
congr 2
rw [← Polynomial.coeff_coe, ← hsub]
rfl
lemma polynomialStage_0 : polynomialStage 0 = Polynomial.X := rfl
lemma polynomialStage_1 : polynomialStage 1 = Polynomial.X + 3 * Polynomial.X ^ 2 := by
rw [polynomialStage, polynomialStage_0]
have hc : ((Polynomial.X : Polynomial ℤ).comp
(Polynomial.X * Polynomial.X - 3 * Polynomial.X * Polynomial.X ^ 2)).coeff 3 = -3 := by
conv_lhs => arg 1; ring_nf
norm_num
rw [hc]
simp only [← Polynomial.C_mul_X_pow_eq_monomial, map_neg, map_ofNat]
ring
lemma polynomialStage_2 : polynomialStage 2 =
Polynomial.X + 3 * Polynomial.X ^ 2 + 15 * Polynomial.X ^ 3 := by
rw [polynomialStage, polynomialStage_1]
have hc : ((Polynomial.X + 3 * Polynomial.X ^ 2 : Polynomial ℤ).comp
(Polynomial.X * (Polynomial.X + 3 * Polynomial.X ^ 2) -
3 * Polynomial.X * (Polynomial.X + 3 * Polynomial.X ^ 2) ^ 2)).coeff 4 = -15 := by
conv_lhs => arg 1; simp; ring_nf
norm_num
rw [hc]
simp only [← Polynomial.C_mul_X_pow_eq_monomial, map_neg, map_ofNat]
ring
lemma polynomialStage_3 : polynomialStage 3 =
Polynomial.X + 3 * Polynomial.X ^ 2 + 15 * Polynomial.X ^ 3 + 117 * Polynomial.X ^ 4 := by
rw [polynomialStage, polynomialStage_2]
have hc : ((Polynomial.X + 3 * Polynomial.X ^ 2 + 15 * Polynomial.X ^ 3 : Polynomial ℤ).comp
(Polynomial.X * (Polynomial.X + 3 * Polynomial.X ^ 2 + 15 * Polynomial.X ^ 3) -
3 * Polynomial.X * (Polynomial.X + 3 * Polynomial.X ^ 2 + 15 * Polynomial.X ^ 3) ^ 2)).coeff 5 =
-117 := by
conv_lhs => arg 1; simp; ring_nf
norm_num
rw [hc]
simp only [← Polynomial.C_mul_X_pow_eq_monomial, map_neg, map_ofNat]
ring
lemma series_coeff_four : coeff 4 (series : PowerSeries ℤ) = (polynomialStage 3).coeff 4 := by
have ht := coeff_eq_of_dvd (series_approximation (R := ℤ) 3) (by omega : 4 < 3 + 2)
rw [← polynomialStage_coe] at ht
simpa only [Polynomial.coeff_coe] using ht
/-- OEIS A396843 at index 4 is 117. -/theorem solution : type_of% @OeisA396843.a_4 := by
have hspec : OeisA396843.SourceEquation OeisA396843.series :=
Classical.epsilon_spec (⟨series, series_constant, series_linear, series_equation⟩ :
∃ A : PowerSeries ℤ, OeisA396843.SourceEquation A)
have hsame : OeisA396843.series = series :=
normalized_unique hspec.1 series_constant hspec.2.1 series_linear
(hspec.2.2.trans series_equation.symm)
show coeff 4 OeisA396843.series = 117
rw [hsame, series_coeff_four, polynomialStage_3]
norm_num [Polynomial.coeff_X]
end Submission
Check it yourself
Project
formal-conjectures
Commit
f606af160664c5a10952e9a957b100a1cd45bbeb
Lean
leanprover/lean4:v4.33.1
Mathlib
0df444a360eaa60ab8c11dca51a86af692955474
With Git and Elan installed, put the download in a fresh working directory and run this there. Use a disposable environment. Lean prints the axioms at the end. The checker allows propext, Classical.choice, and Quot.sound.
(
set -eu
proof="$PWD/8381cfc7-e0be-4cda-b613-af04ea3d8bad.lean"
git clone https://github.com/google-deepmind/formal-conjectures.git formal-conjectures
git -C formal-conjectures checkout --detach f606af160664c5a10952e9a957b100a1cd45bbeb
cd formal-conjectures
elan toolchain install leanprover/lean4:v4.33.1
lake +leanprover/lean4:v4.33.1 exe cache get
lake +leanprover/lean4:v4.33.1 build '+FormalConjectures.OEIS.«396843»'
check_dir="$(mktemp -d)"
trap 'rm -f "$check_dir/Check.lean"; rmdir "$check_dir"' EXIT
printf "%s\n" "import Lean" > "$check_dir/Check.lean"
cat "$proof" >> "$check_dir/Check.lean"
cat >> "$check_dir/Check.lean" <<'SOLVE_CHECK'
example : type_of% @_root_.OeisA396843.a_4 := @_root_.Submission.solution
#print axioms Submission.solution
SOLVE_CHECK
lake +leanprover/lean4:v4.33.1 env lean "$check_dir/Check.lean"
)
Download the receipt verifier and public key. Run python3 verify-proof.py certificate.json 8381cfc7-e0be-4cda-b613-af04ea3d8bad.lean proof-key.pem with OpenSSL 3.
Show full file and definitions
/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
publicimport 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] publicsectionnamespace 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. -/noncomputabledef series : PowerSeries ℤ := Classical.epsilon SourceEquation
/-- OEIS A396843, extended by $a(0)=0$ outside its offset-one domain. -/noncomputabledef 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