FormalConjectures/OEIS/243106.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
7 declarations, 1 contain sorry, 0 declared as axioms
Signed digit sums in bases $b \ge 5$
The sequence is defined by $$a(n) = \sum_{k=1}^n (-1)^{\operatorname{isprime}(k)} 10^k$$ where the sign is $-1$ if $k$ is prime, and $1$ if $k$ is not prime.
Generalizing the digit pattern observed in $a(n)$, it was conjectured on the OEIS entry that for any base $b \ge 5$ and any choice of signs $\pm 1$, the absolute value of $\sum_{k=1}^n \pm b^k$ only contains digits in $\{0, 1, b-2, b-1\}$.
References:
- A243106
- arxiv/2605.22763 Advancing Mathematics Research with AI-Driven Formal Proof Search by George Tsoukalas et al.
Imports (1)
- def
OeisA243106.aThe sequence $$a(n) = \sum_{k=1}^n (-1)^{\operatorname{isprime}(k)} 10^k$$ where the sign is $-1$ if $k$ is prime, and $1$ if $k$ is not prime line 48 sourceSource documentation
The sequence $$a(n) = \sum_{k=1}^n (-1)^{\operatorname{isprime}(k)} 10^k$$ where the sign is $-1$ if $k$ is prime, and $1$ if $k$ is not prime.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,IntProof uses:
Finset.sum,Finset.Icc,OfNat.ofNat,HMul.hMul,ite,Nat.Prime,Neg.neg,HPow.hPow13 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : Int := …
- lemma
OeisA243106.a_1line 54 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA243106.a,OfNat.ofNat,NatProof uses:
Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA243106.a_2line 57 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA243106.a,OfNat.ofNat,Nat,Neg.negProof uses:
Eq.refl4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA243106.a_3line 60 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA243106.a,OfNat.ofNat,Nat,Neg.negProof uses:
Eq.refl4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA243106.a_4line 63 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA243106.a,OfNat.ofNat,NatProof uses:
Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA243106.a_5line 66 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Int, OeisA243106.a,OfNat.ofNat,Nat,Neg.negProof uses:
Eq.refl4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA243106.digits_sum_restrictedsorry line 77 sourcedepends on sorry what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,Int,Membership.mem,Finset,Finset.Icc,Or,Eq,Neg.neg,Finset.sum,HMul.hMul,HPow.hPow,List,Nat.digits,Int.natAbs,HSub.hSubProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous40 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.