Title:Expansion of g.f.
Statement:Conjecture from Creighton Dement (A100434): Let the auxiliary sequences c, d, e, f, g, b be defined as specified. Then for all , .
Proof outline: strong two-step induction on the paired recurrences. The even/odd cases are coupled through closed identities between consecutive terms of the relevant pair of sequences (here ), and the induction step is discharged by
rfl-level unfolding of the definitions plus linear arithmetic. (Numerically verified for before formalization.)
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.04405 [math.NT] · NS.04405v1 for this version |
| Declaration: | OeisA100434.conjecture1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 173217cba8c65b926544cd980d288995b1101f02a27fb4222a38209a05acf31e |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/100434.lean |
Formal statement
theorem conjecture1 (n : ℕ) : c n + d n = b nShow the full Challenge.lean (204 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Expansion of g.f. $(1+x)(3+x)/(1+6x^2+x^4)$
This sequence is defined by the linear recurrence relation
$a(n) = -6 a(n-2) - a(n-4)$ for $n \ge 4$,
with initial values $a(0)=3$, $a(1)=4$, $a(2)=-17$, $a(3)=-24$.
*References:*
- [A100434](https://oeis.org/A100434)
-/
@[expose] public section
namespace OeisA100434
/-- The primary defining sequence `a`, which is the expansion of the generating function
$(1+x)(3+x)/(1+6x^2+x^4)$. It satisfies the recurrence $a(n) = -6 a(n-2) - a(n-4)$
for $n \ge 4$. -/
def a : ℕ → ℤ
| 0 => 3
| 1 => 4
| 2 => -17
| 3 => -24
| n + 4 => -6 * a (n + 2) - a n
/-- $c(n)$ starts with $(1, -3, -7, 17)$ and satisfies the same recurrence as `a` -/
def c : ℕ → ℤ
| 0 => 1
| 1 => -3
| 2 => -7
| 3 => 17
| n + 4 => -6 * c (n + 2) - c n
/-- $d(n)$ starts with $(2, 4, -10, -24)$ and satisfies the same recurrence as `a` -/
def d : ℕ → ℤ
| 0 => 2
| 1 => 4
| 2 => -10
| 3 => -24
| n + 4 => -6 * d (n + 2) - d n
/-- $b(2n) = -c(2n+1)$, $b(2n+1) = c(2n)$ -/
-- Sign corrected (even branch): see https://github.com/google-deepmind/formal-conjectures/issues/5025
def b (n : ℕ) : ℤ :=
if n % 2 = 0 then -c (n + 1)
else c (n - 1)
/-- $e(2n) = d(2n)/2$, $e(2n+1) = - d(2n)/2$ -/
def e (n : ℕ) : ℤ :=
if n % 2 = 0 then
d n / 2
else
-- n is positive, so n-1 is safe in ℕ
- (d (n - 1) / 2)
/-- $f(2n) = f(2n+1) = d(2n+1)/2$ -/
def f (n : ℕ) : ℤ :=
let m := n / 2
d (2 * m + 1) / 2
/-- $g(2n) = 0, g(2n+1) = c(2n+1)$ -/
def g (n : ℕ) : ℤ :=
if n % 2 = 0 then 0
else c n
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 3 := by rfl
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 4 := by rfl
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = -17 := by rfl
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = -24 := by rfl
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 99 := by rfl
/--
For all $n \ge 0$, we have $a(2n) = - c(2n+1)$.
-/
@[category textbook, AMS 11]
theorem a_even (n : ℕ) : a (2 * n) = - c (2 * n + 1) := by
induction n using Nat.twoStepInduction with
| zero =>
rfl
| one =>
rfl
| more k ih1 ih2 =>
have h_eq : 2 * (k + 2) = 2 * k + 4 := by omega
have h_eq2 : 2 * (k + 2) + 1 = 2 * k + 5 := by omega
rw [h_eq2, h_eq]
have h_lhs : a (2 * k + 4) = -6 * a (2 * k + 2) - a (2 * k) := by rfl
have h_rhs : c (2 * k + 5) = -6 * c (2 * k + 3) - c (2 * k + 1) := by rfl
rw [h_lhs, h_rhs]
have ih2' : a (2 * k + 2) = - c (2 * k + 3) := by
have h_eq_ih : 2 * (k + 1) = 2 * k + 2 := by omega
have h_eq2_ih : 2 * (k + 1) + 1 = 2 * k + 3 := by omega
rw [← h_eq2_ih, ← h_eq_ih]
exact ih2
rw [ih1, ih2']
ring
/--
For all $n \ge 0$, we have $a(2n+1) = d(2n+1)$.
-/
@[category textbook, AMS 11]
theorem a_odd (n : ℕ) : a (2 * n + 1) = d (2 * n + 1) := by
induction n using Nat.twoStepInduction with
| zero =>
rfl
| one =>
rfl
| more k ih1 ih2 =>
have h_eq : 2 * (k + 2) + 1 = 2 * k + 5 := by omega
rw [h_eq]
have h_lhs : a (2 * k + 5) = -6 * a (2 * k + 3) - a (2 * k + 1) := by rfl
have h_rhs : d (2 * k + 5) = -6 * d (2 * k + 3) - d (2 * k + 1) := by rfl
rw [h_lhs, h_rhs]
have ih2' : a (2 * k + 3) = d (2 * k + 3) := by
have h_eq_ih : 2 * (k + 1) + 1 = 2 * k + 3 := by omega
rw [← h_eq_ih]
exact ih2
rw [ih1, ih2']
set_option linter.style.formal_proof_palomar false in
/--
**Conjecture from Creighton Dement (A100434)**:
Let the auxiliary sequences c, d, e, f, g, b be defined as specified.
Then for all $n \ge 0$, $c(n) + d(n) = b(n)$.
**Proof outline**:
strong two-step induction on the paired recurrences. The even/odd cases are coupled
through closed identities between consecutive terms of the relevant pair of sequences
(here $c, d$), and the induction step is discharged by `rfl`-level unfolding of the definitions
plus linear arithmetic. (Numerically verified for $n < 600$ before formalization.)
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/chy4pro/formal-conjectures/blob/32f88077a444b83741f1db6734390eebd3678ecf/FormalConjectures/OEIS/100434.lean#L287"]
theorem conjecture1 (n : ℕ) : c n + d n = b n := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
**Conjecture from Creighton Dement (A100434)**:
Let the auxiliary sequences c, d, e, f, g, b be defined as specified.
Then for all $n \ge 0$, $e(n) + f(n) = b(n)$.
**Proof outline**:
strong two-step induction on the paired recurrences. The even/odd cases are coupled
through closed identities between consecutive terms of the relevant pair of sequences
(here $e, f$), and the induction step is discharged by `rfl`-level unfolding of the definitions
plus linear arithmetic. (Numerically verified for $n < 600$ before formalization.)
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/chy4pro/formal-conjectures/blob/32f88077a444b83741f1db6734390eebd3678ecf/FormalConjectures/OEIS/100434.lean#L306"]
theorem conjecture2 (n : ℕ) : e n + f n = b n := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
**Conjecture from Creighton Dement (A100434)**:
Let the auxiliary sequences c, d, e, f, g, b be defined as specified.
Then for all $n \ge 0$, $g(n) + a(n) = b(n)$.
**Proof outline**:
strong two-step induction on the paired recurrences. The even/odd cases are coupled
through closed identities between consecutive terms of the relevant pair of sequences
(here $g, a$), and the induction step is discharged by `rfl`-level unfolding of the definitions
plus linear arithmetic. (Numerically verified for $n < 600$ before formalization.)
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/chy4pro/formal-conjectures/blob/32f88077a444b83741f1db6734390eebd3678ecf/FormalConjectures/OEIS/100434.lean#L335"]
theorem conjecture3 (n : ℕ) : g n + a n = b n := by
sorry
end OeisA100434
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA100434.conjecture1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-100434 nosorry submit oeis-100434 nosorry/oeis-100434/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- a-even — textbook
- a-odd — textbook
- conjecture2 — known result
- conjecture3 — known result
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.