FormalConjectures/OEIS/105720.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, 1 contain sorry, 0 declared as axioms
Triangular matchstick numbers in the class of prime numbers
$a(n) = \sum_{k = n}^{2n} p_k$, where $p_k$ is the $k$-th prime.
References:
Imports (1)
- def
OeisA105720.aThe primary defining sequencealine 40 sourceSource documentation
The primary defining sequence
a. $a(n)$ is the sum of primes from the $n$-th prime to the $2n$-th prime, with $p_1=2$. For $n=0$, we define $a(0) = 0$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
ite,Eq,OfNat.ofNat,Finset.sum,Finset.Ico,HSub.hSub,HMul.hMul,Nat.nth,Nat.Prime9 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℕ := …
- lemma
OeisA105720.nth_prime_fiveline 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
Nat.count,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA105720.nth_prime_sixline 52 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
Nat.count,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA105720.nth_prime_sevenline 59 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat,Nat.nth,Nat.Prime,OfNat.ofNatProof uses:
Nat.count,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,Nat.nth_count,Eq.mp,congrArg4 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA105720.a_0Value of the sequenceaat 0 line 76 sourceSource documentation
Value of the sequence
aat 0.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA105720.a,OfNat.ofNatProof uses:
Eq.mpr,ite,Finset.sum,Finset.Ico,HSub.hSub,HMul.hMul,Nat.nth,Nat.Prime,id,congrArg,OeisA105720.a.eq_1,if_pos,rfl,Eq.refl10 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 …
Mentions: OeisA105720.a
- theorem
OeisA105720.a_1Value of the sequenceaat 1 line 81 sourceSource documentation
Value of the sequence
aat 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA105720.a,OfNat.ofNatProof uses:
Eq.mpr,ite,Finset.sum,Finset.Ico,HSub.hSub,HMul.hMul,Nat.nth,Nat.Prime,id,congrArg,OeisA105720.a.eq_1,if_neg,of_decide_eq_true,Not,Bool,Decidable.decide,Bool.true,Eq.refl,HAdd.hAdd,Finset.sum_Ico_succ_topand 15 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem a_1 : a 1 = 5 := by …
Mentions: OeisA105720.a
- theorem
OeisA105720.a_2Value of the sequenceaat 2 line 87 sourceSource documentation
Value of the sequence
aat 2.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA105720.a,OfNat.ofNatProof uses:
Eq.mpr,ite,Finset.sum,Finset.Ico,HSub.hSub,HMul.hMul,Nat.nth,Nat.Prime,id,congrArg,OeisA105720.a.eq_1,if_neg,of_decide_eq_true,Not,Bool,Decidable.decide,Bool.true,Eq.refl,HAdd.hAdd,Finset.sum_Ico_succ_topand 16 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem a_2 : a 2 = 15 := by …
Mentions: OeisA105720.a
- theorem
OeisA105720.a_3Value of the sequenceaat 3 line 93 sourceSource documentation
Value of the sequence
aat 3.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA105720.a,OfNat.ofNatProof uses:
Eq.mpr,ite,Finset.sum,Finset.Ico,HSub.hSub,HMul.hMul,Nat.nth,Nat.Prime,id,congrArg,OeisA105720.a.eq_1,if_neg,of_decide_eq_true,Not,Bool,Decidable.decide,Bool.true,Eq.refl,HAdd.hAdd,Finset.sum_Ico_succ_topand 17 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem a_3 : a 3 = 36 := by …
Mentions: OeisA105720.a
- theorem
OeisA105720.a_4Value of the sequenceaat 4 line 99 sourceSource documentation
Value of the sequence
aat 4.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA105720.a,OfNat.ofNatProof uses:
Eq.mpr,ite,Finset.sum,Finset.Ico,HSub.hSub,HMul.hMul,Nat.nth,Nat.Prime,id,congrArg,OeisA105720.a.eq_1,if_neg,of_decide_eq_true,Not,Bool,Decidable.decide,Bool.true,Eq.refl,HAdd.hAdd,Finset.sum_Ico_succ_topand 18 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem a_4 : a 4 = 67 := by …
Mentions: OeisA105720.a
- theorem
OeisA105720.conjectureTerms are squares at only(?) three values of $n = 3, 6, 4072$: corresponding terms are 6^2, 13^2, and 15735^2 sorry line 108 sourceSource documentation
Terms are squares at only(?) three values of $n = 3, 6, 4072$: corresponding terms are 6^2, 13^2, and 15735^2.
depends on sorry what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Iff,IsSquare, OeisA105720.a,Or,EqProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem conjecture : ∀ n : ℕ, 0 < n → (IsSquare (a n) ↔ (n = 3 ∨ n = 6 ∨ n = 4072)) := by …Mentions: OeisA105720.a