FormalConjectures/Wikipedia/BalancedPrimes.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
2 declarations, 2 contain sorry, 0 declared as axioms
Imports (1)
- theorem
BalancedPrimes.balanced_primesLet $p_k$ be the $k$-th prime number sorry line 37 sourceSource documentation
Let $p_k$ be the $k$-th prime number. Are there infinitely many $n$ such that $(p_n + p_{n+2}) / 2$ is prime?
depends on sorry what this means
Statement uses:
Iff,True,Set.Infinite,Nat,Set.ofPred,Prime,HDiv.hDiv,HAdd.hAdd,Nat.nth,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous12 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem balanced_primes : answer(sorry) ↔ {n : ℕ | Prime ((Nat.nth Prime n + Nat.nth Prime (n + 2)) / 2)}.Infinite := by … - theorem
BalancedPrimes.balanced_primes_orderLet $p_k$ be the $k$-th prime number sorry line 47 sourceSource documentation
Let $p_k$ be the $k$-th prime number. Are there infinitely many $n$ such that $p_n = \dfrac{\sum_{i = 1} ^ k p_{n - i} + p_{n + i}}{2*k}$?
depends on sorry what this means
Statement uses:
Iff,True,Nat,GT.gt,OfNat.ofNat,Set.Infinite,Set.ofPred,And,LE.le,Eq,HMul.hMul,Nat.nth,Prime,Finset.sum,Finset.Ioc,HAdd.hAdd,HSub.hSubProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem balanced_primes_order : answer(sorry) ↔ ∀ k > 0, {n : ℕ | k ≤ n ∧ 2 * k * Nat.nth Prime n = ∑ i ∈ .Ioc 0 k, ((n - i).nth Prime + (n + i).nth Prime)}.Infinite := by …