FormalConjectures/OEIS/7468.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
6 declarations, 1 contain sorry, 0 declared as axioms
Sum of next $n$ primes
The sum of the primes in the $n$-th row of the prime number triangle: $$a(n) = \sum_{i = 1 + n(n-1)/2}^{n + n(n-1)/2} p_i$$ with $a(0) = 0$.
References:
Imports (1)
- def
OeisA7468.aSum of the next $n$ primes, with $a(0) = 0$ line 36 sourceSource documentation
Sum of the next $n$ primes, with $a(0) = 0$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
HDiv.hDiv,HMul.hMul,HSub.hSub,OfNat.ofNat,Finset.sum,Finset.range,Nat.nth,Nat.Prime,HAdd.hAdd10 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℕ := …
- theorem
OeisA7468.a_0Value of the sequenceaat 0 line 42 sourceSource documentation
Value of the sequence
aat 0.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA7468.a,OfNat.ofNatProof uses:
Eq.refl2 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 rfl …
Mentions: OeisA7468.a
- theorem
OeisA7468.a_1Value of the sequenceaat 1 line 46 sourceSource documentation
Value of the sequence
aat 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA7468.a,OfNat.ofNatProof uses:
id,Eq.mpr,Finset.sum,Singleton.singleton,Finset,Nat.nth,Nat.Prime,HAdd.hAdd,congrArg,Finset.sum_singleton,add_zero,Nat.nth_prime_zero_eq_two,Eq.refl12 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem a_1 : a 1 = 2 := by …
Mentions: OeisA7468.a
- theorem
OeisA7468.a_2Value of the sequenceaat 2 line 52 sourceSource documentation
Value of the sequence
aat 2.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA7468.a,OfNat.ofNatProof uses:
id,Eq.mpr,Finset.sum,Finset.range,Nat.nth,Nat.Prime,HAdd.hAdd,congrArg,Finset.sum_range_succ,Finset.sum_range_one,add_zero,Nat.nth_prime_one_eq_three,Eq.refl,Nat.nth_prime_two_eq_five12 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 = 8 := by …
Mentions: OeisA7468.a
- theorem
OeisA7468.a_3Value of the sequenceaat 3 line 59 sourceSource documentation
Value of the sequence
aat 3.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA7468.a,OfNat.ofNatProof uses:
id,Nat.nth,Nat.Prime,Nat.nth_count,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl,Eq.mpr,Finset.sum,Finset.range,HAdd.hAdd,congrArg,Finset.sum_range_succ,Finset.sum_range_one,add_zero,Nat.nth_prime_three_eq_seven,Nat.nth_prime_four_eq_eleven13 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
theorem a_3 : a 3 = 31 := by …
Mentions: OeisA7468.a
- theorem
OeisA7468.conjectureThe only positive integer $n$ such that $a(n)$ is a perfect square is $n=38$ sorry line 71 sourceSource documentation
The only positive integer $n$ such that $a(n)$ is a perfect square is $n=38$.
- Carlos Eduardo Olivieri, Mar 09 2015
depends on sorry what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Iff,IsSquare, OeisA7468.a,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 : ℕ) (hn : 0 < n) : IsSquare (a n) ↔ n = 38 := by …
Mentions: OeisA7468.a