FormalConjectures/OEIS/112970.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
10 declarations, 4 contain sorry, 0 declared as axioms
A generalized Stern sequence
A112970: A generalized Stern sequence, defined by the recurrence relations: $a(2n+1) = a(n)$ and $a(2n) = a(n) + a(n-2)$ with $a(0)=1$, $a(1)=1$ and $a(n)=0$ for $n \le -1$.
References:
Imports (1)
- def
OeisA112970.aa n is the generalized Stern sequence, defined by the recurrence relations line 39 sourceSource documentation
a n is the generalized Stern sequence, defined by the recurrence relations: $a(2n+1) = a(n)$ and $a(2n) = a(n)$ + $a(n-2)$ with $a(0) = 1$, $a(1) = 1$ and $a(n) = 0$ for $n \le -1$.
standard axioms: Quot.sound, propext what this means
Statement uses:
NatProof uses:
WellFounded.Nat.fix,InvImage,LT.lt,dite,Eq,OfNat.ofNat,Not,HDiv.hDiv,HMod.hMod,HSub.hSub,HAdd.hAdd15 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- theorem
OeisA112970.a_0line 55 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA112970.a,OfNat.ofNatProof uses:
Eq.mpr,ite,HDiv.hDiv,HMod.hMod,LT.lt,HSub.hSub,HAdd.hAdd,id,congrFun',congrArg,OeisA112970.a.eq_def,Eq.refl13 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.a_1line 58 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA112970.a,OfNat.ofNatProof uses:
Eq.mpr,ite,HDiv.hDiv,HMod.hMod,LT.lt,HSub.hSub,HAdd.hAdd,id,congrFun',congrArg,OeisA112970.a.eq_def,Eq.refl13 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.a_2line 61 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA112970.a,OfNat.ofNatProof uses:
Eq.mpr,ite,HDiv.hDiv,HMod.hMod,LT.lt,HSub.hSub,HAdd.hAdd,id,congrFun',congrArg,OeisA112970.a.eq_def,ite_congr,Eq.refl,Not,have_body_congr',have_congr'13 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.a_3line 64 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA112970.a,OfNat.ofNatProof uses:
Eq.mpr,ite,HDiv.hDiv,HMod.hMod,LT.lt,HSub.hSub,HAdd.hAdd,id,congrFun',congrArg,OeisA112970.a.eq_def,ite_congr,Eq.refl,Not,have_body_congr',have_congr'13 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.a_4line 67 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA112970.a,OfNat.ofNatProof uses:
Eq.mpr,ite,HDiv.hDiv,HMod.hMod,LT.lt,HSub.hSub,HAdd.hAdd,id,congrFun',congrArg,OeisA112970.a.eq_def,ite_congr,Eq.refl,Not,have_body_congr',have_congr'13 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.conjecture1sorry line 76 sourcedepends on sorry what this means
Statement uses:
Nat,Eq, OeisA112970.a,HPow.hPow,OfNat.ofNat,HAdd.hAddProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous14 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.conjecture1_valueSecond part of the conjecture, $a(2^n)=\textrm{A033638}(n)=\lfloor n^2 / 4 \rfloor + 1$ sorry line 85 sourceSource documentation
Second part of the conjecture, $a(2^n)=\textrm{A033638}(n)=\lfloor n^2 / 4 \rfloor + 1$. It holds by induction on $n$, since $a(2^{n+1}) = a(2^n) + a(2^n - 2)$ for $n \ge 1$ and $a(2^m - 2) = \lfloor (m+1)/2 \rfloor$ for $m \ge 1$.
depends on sorry what this means
Statement uses:
Nat,Eq, OeisA112970.a,HPow.hPow,OfNat.ofNat,HAdd.hAdd,HDiv.hDivProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture1_value (n : ℕ) : a (2^n) = n ^ 2 / 4 + 1 := by …
Mentions: OeisA112970.a
- theorem
OeisA112970.conjecture2sorry line 95 sourcedepends on sorry what this means
Statement uses:
Nat,Eq, OeisA112970.a,HSub.hSub,HPow.hPow,OfNat.ofNat,HMul.hMulProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA112970.conjecture3sorry line 102 sourcedepends on sorry what this means
Statement uses:
Nat,Eq, OeisA112970.a,HSub.hSub,HPow.hPow,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous14 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.