FormalConjectures/OEIS/69923.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
Number of primes $p$ such that $2^n \le p \le 2^n + \mathrm{prime}(n)$
The sequence $a(n)$ counts the number of primes $p$ in the interval $[2^n, 2^n + p_n]$, where $p_n$ is the $n$-th prime ($p_1 = 2, p_2 = 3, \dots$): $$a(n) = |\{p \text{ prime} \mid 2^n \le p \le 2^n + p_n\}|$$ for $n \ge 1$, and $a(0) = 0$.
References:
Imports (1)
- def
OeisA69923.aNumber of primes $p$ such that $2^n \le p \le 2^n + \mathrm{prime}(n)$ line 38 sourceSource documentation
Number of primes $p$ such that $2^n \le p \le 2^n + \mathrm{prime}(n)$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
ite,Eq,OfNat.ofNat,Nat.nth,Nat.Prime,HSub.hSub,Finset.card,Finset.filter,Finset.Icc,HPow.hPow,HAdd.hAdd13 instances, coercions and auxiliary constants left out.
noncomputable def a (n : ℕ) : ℕ := …
- theorem
OeisA69923.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, OeisA69923.a,OfNat.ofNatProof uses:
id,Eq.mpr,Finset.card,Finset.filter,Nat.Prime,Finset.Icc,HPow.hPow,HAdd.hAdd,Nat.nth,congrArg,Nat.nth_prime_zero_eq_two,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl12 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 = 2 := by …
Mentions: OeisA69923.a
- theorem
OeisA69923.a_2Value of the sequenceaat 2 line 53 sourceSource documentation
Value of the sequence
aat 2.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA69923.a,OfNat.ofNatProof uses:
id,Eq.mpr,Finset.card,Finset.filter,Nat.Prime,Finset.Icc,HPow.hPow,HAdd.hAdd,Nat.nth,congrArg,Nat.nth_prime_one_eq_three,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl12 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 = 2 := by …
Mentions: OeisA69923.a
- theorem
OeisA69923.a_3Value of the sequenceaat 3 line 60 sourceSource documentation
Value of the sequence
aat 3.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA69923.a,OfNat.ofNatProof uses:
id,Eq.mpr,Finset.card,Finset.filter,Nat.Prime,Finset.Icc,HPow.hPow,HAdd.hAdd,Nat.nth,congrArg,Nat.nth_prime_two_eq_five,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl12 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 = 2 := by …
Mentions: OeisA69923.a
- theorem
OeisA69923.a_4Value of the sequenceaat 4 line 67 sourceSource documentation
Value of the sequence
aat 4.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA69923.a,OfNat.ofNatProof uses:
id,Eq.mpr,Finset.card,Finset.filter,Nat.Prime,Finset.Icc,HPow.hPow,HAdd.hAdd,Nat.nth,congrArg,Nat.nth_prime_three_eq_seven,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl12 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 = 3 := by …
Mentions: OeisA69923.a
- theorem
OeisA69923.conjectureFor any $n > 0$, is there always at least one prime $p$ such that $2^n \le p \le 2^n + \mathrm{prime}(n)$? sorry line 79 sourceSource documentation
For any $n > 0$, is there always at least one prime $p$ such that $2^n \le p \le 2^n + \mathrm{prime}(n)$? (checked up to $n = 250$). In this case, that would be stronger than the Schinzel conjecture: "for $m > 1$ there's at least one prime $p$ such that $m \le p \le m + \log(m)^2$" since, for $n > 2$, $\mathrm{prime}(n) < \log(2^n)^2 = n^2 \log(2)$.
depends on sorry what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,LE.le, OeisA69923.aProof 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) : 1 ≤ a n := by …
Mentions: OeisA69923.a