FormalConjectures/OEIS/108866.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
8 declarations, 1 contain sorry, 0 declared as axioms
Numerator of $\sum_{k=1}^n 2^k/k$.
Conjecture: for $n > 3$, $\textrm{numerator}(-2/n + \sum_{k=1}^{n} \frac{2^k}{k}) == 0 (\textrm{mod} n^2)$ if and only if n is prime.
References:
Imports (1)
- def
OeisA108866.aThe primary defining sequencealine 39 sourceSource documentation
The primary defining sequence
a. a n is the numerator of $\sum_{k=1}^n \frac{2^k}{k}$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Int.natAbs,Rat.num,Finset.sum,Rat,Finset.range,HDiv.hDiv,HPow.hPow,OfNat.ofNat,HAdd.hAdd12 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℕ := …
- theorem
OeisA108866.a_0Term theorems verifying the first few values of the sequence against the official OEIS b-file line 46 sourceSource documentation
Term theorems verifying the first few values of the sequence against the official OEIS b-file
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108866.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem a_0 : a 0 = 0 := by decide …
Mentions: OeisA108866.a
- theorem
OeisA108866.a_1line 49 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108866.a,OfNat.ofNatProof uses:
id,Mathlib.Meta.NormNum.isNat_eq_true,Int.natAbs,Rat.num,Finset.sum,Rat,Finset.range,HDiv.hDiv,HPow.hPow,HAdd.hAdd,Mathlib.Meta.NormNum.isNat_natAbs_pos,Mathlib.Meta.NormNum.IsInt.to_isNat,Int,Mathlib.Meta.NormNum.isInt_ratNum,Int.ofNat,Mathlib.Meta.NormNum.IsNNRat.to_isRat,inferInstance,DivisionRing,Mathlib.Meta.NormNum.IsNat.to_isNNRat,Eq.recand 28 more45 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108866.a_2line 52 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108866.a,OfNat.ofNatProof uses:
id,Mathlib.Meta.NormNum.isNat_eq_true,Int.natAbs,Rat.num,Finset.sum,Rat,Finset.range,HDiv.hDiv,HPow.hPow,HAdd.hAdd,Mathlib.Meta.NormNum.isNat_natAbs_pos,Mathlib.Meta.NormNum.IsInt.to_isNat,Int,Mathlib.Meta.NormNum.isInt_ratNum,Int.ofNat,Mathlib.Meta.NormNum.IsNNRat.to_isRat,inferInstance,DivisionRing,Mathlib.Meta.NormNum.IsNat.to_isNNRat,Eq.recand 32 more45 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108866.a_3line 55 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108866.a,OfNat.ofNatProof uses:
id,Mathlib.Meta.NormNum.isNat_eq_true,Int.natAbs,Rat.num,Finset.sum,Rat,Finset.range,HDiv.hDiv,HPow.hPow,HAdd.hAdd,Mathlib.Meta.NormNum.isNat_natAbs_pos,Mathlib.Meta.NormNum.IsInt.to_isNat,Int,Mathlib.Meta.NormNum.isInt_ratNum,Int.ofNat,Mathlib.Meta.NormNum.IsNNRat.to_isRat,inferInstance,DivisionRing,Eq.rec,Finset.consand 35 more45 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA108866.a_4line 58 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA108866.a,OfNat.ofNatProof uses:
id,Mathlib.Meta.NormNum.isNat_eq_true,Int.natAbs,Rat.num,Finset.sum,Rat,Finset.range,HDiv.hDiv,HPow.hPow,HAdd.hAdd,Mathlib.Meta.NormNum.isNat_natAbs_pos,Mathlib.Meta.NormNum.IsInt.to_isNat,Int,Mathlib.Meta.NormNum.isInt_ratNum,Int.ofNat,Mathlib.Meta.NormNum.IsNNRat.to_isRat,inferInstance,DivisionRing,Eq.rec,Finset.consand 37 more45 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- def
OeisA108866.ratExpressionThe rational number inside the numerator function in the conjecture line 64 sourceSource documentation
The rational number inside the numerator function in the conjecture. $$ -\frac{2}{n} + \sum_{k=1}^n \frac{2^k}{k} $$
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RatProof uses:
ite,GT.gt,OfNat.ofNat,HAdd.hAdd,HDiv.hDiv,Neg.neg,Finset.sum,Finset.range,HPow.hPow15 instances, coercions and auxiliary constants left out.
noncomputable def ratExpression (n : ℕ) : ℚ := …
- theorem
OeisA108866.conjectureConjecture: for $n > 3$, $\textrm{numerator}(-2/n + \sum_{k=1}^{n} \frac{2^k}{k}) == 0 (\textrm{mod} n^2)$ if and only if n is prime sorry line 76 sourceSource documentation
Conjecture: for $n > 3$, $\textrm{numerator}(-2/n + \sum_{k=1}^{n} \frac{2^k}{k}) == 0 (\textrm{mod} n^2)$ if and only if n is prime.
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,Iff,Int.ModEq,HPow.hPow,Int,Rat.num, OeisA108866.ratExpression,Nat.PrimeProof 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 conjecture {n : ℕ} (hn : n > 3) : (ratExpression n).num ≡ 0 [ZMOD (n^2 : ℤ)] ↔ n.Prime := by …Mentions: OeisA108866.ratExpression