FormalConjectures/Wikipedia/HardyLittlewood.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
9 declarations, 3 contain sorry, 0 declared as axioms
First Hardy–Littlewood conjecture
Reference: Wikipedia
Imports (1)
Imported by 1 file
- def
HardyLittlewood.IsPrimeConstellationA prime constellation is a tuple $(p, p + m_1, \dots, p + m_k)$ such that the $m_i$ are all positive even integers and every entry is a prime number line 40 sourceSource documentation
A prime constellation is a tuple $(p, p + m_1, \dots, p + m_k)$ such that the $m_i$ are all positive even integers and every entry is a prime number.
standard axioms: propext what this means
Statement uses:
Nat,Fin,Nat.succProof uses:
And,Eq,OfNat.ofNat,Ne,LT.lt,Nat.Prime,HAdd.hAdd,HMul.hMul8 instances, coercions and auxiliary constants left out.
def IsPrimeConstellation {k : ℕ} (m : Fin k.succ → ℕ) (p : ℕ) : Prop := … - def
HardyLittlewood.IsAdmissiblePrimeConstellationA prime constellation is said to be admissible if its elements do not form a complete set of residue classes with respect to any prime line 47 sourceSource documentation
A prime constellation is said to be admissible if its elements do not form a complete set of residue classes with respect to any prime.
standard axioms: Quot.sound, propext what this means
Statement uses:
Nat,Fin,Nat.succProof uses:
And, HardyLittlewood.IsPrimeConstellation,Nat.Prime,Not,Function.Surjective,ZMod,HAdd.hAdd,HMul.hMul,OfNat.ofNat15 instances, coercions and auxiliary constants left out.
def IsAdmissiblePrimeConstellation {k : ℕ} (m : Fin k.succ → ℕ) (p : ℕ) : Prop := … - def
HardyLittlewood.Nat.numResiduesThe number of distinct residue classes amongst a tuple $(m_0, \dots, m_k)$ for a prime $q$ line 53 sourceSource documentation
The number of distinct residue classes amongst a tuple $(m_0, \dots, m_k)$ for a prime $q$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Nat.succProof uses:
Set.ncard,ZMod,Set.range6 instances, coercions and auxiliary constants left out.
noncomputable def Nat.numResidues (q : ℕ) {k : ℕ} (m : Fin k.succ → ℕ) : ℕ := … - def
HardyLittlewood.Nat.primeTupleCountingFor a given tuple $(m_1, \dots, m_k)$, this counts number of admissible prime constellations $(p, p + m_1, \dots, p + m_k)$ where $p \leq n$ line 60 sourceSource documentation
For a given tuple $(m_1, \dots, m_k)$, this counts number of admissible prime constellations $(p, p + m_1, \dots, p + m_k)$ where $p \leq n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Nat.succProof uses:
Nat.count, HardyLittlewood.IsAdmissiblePrimeConstellation,Classical.propDecidablenoncomputable def Nat.primeTupleCounting {k : ℕ} (m : Fin k.succ → ℕ) (n : ℕ) : ℕ := … - def
HardyLittlewood.FirstHardyLittlewoodConjectureForThe first Hardy–Littlewood conjecture for the tuple line 71 sourceSource documentation
The first Hardy–Littlewood conjecture for the tuple $(m_0, m_1, \dots, m_k)$: if $m_0 = 0$ and the $m_i$ are pairwise distinct, then $$ \pi_P(n)\sim C_P\int_2^n\frac{dt}{\log^{k+1}t}. $$
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Nat.succProof uses:
Eq,OfNat.ofNat,Function.Injective,Real,HMul.hMul,HPow.hPow,tprod,Subtype,And,Nat.Prime,LE.le,HDiv.hDiv,HSub.hSub, HardyLittlewood.Nat.numResidues,SummationFilter.unconditional, HardyLittlewood.Nat.primeTupleCounting,Asymptotics.IsEquivalent,Filter.atTop,intervalIntegral,Real.logand 1 more38 instances, coercions and auxiliary constants left out.
def FirstHardyLittlewoodConjectureFor {k : ℕ} (m : Fin k.succ → ℕ) : Prop := … - theorem
HardyLittlewood.first_hardy_littlewood_conjectureLet $P = (m_1, \dots, m_k)$ be a tuple of distinct positive even integers sorry line 94 sourceSource documentation
Let $P = (m_1, \dots, m_k)$ be a tuple of distinct positive even integers. Let $\pi_P(n)$ denote the number of primes $p\leq n$ such that $(p, p + m_1, \dots, p + m_k)$ forms an admissible prime constellation. Let $w(q; m_1, \dots, m_k)$ denote the number of distinct residues of $0, m_1, \dots, m_k$ modulo $q$, and let $$ C_P = 2 ^ k\prod_{\substack{q\ \text{prime} \\ q\geq 3}} \frac{1 - \frac{w(q; m_1, \dots, m_k)}{q}}{\left(1 - \frac{1}{q}\right)^{k+1}}. $$ Then $$ \pi_P(n)\sim C_P\int_2^n\frac{dt}{\log^{k+1}t}. $$
depends on sorry what this means
Statement uses:
Nat,Fin,Nat.succ, HardyLittlewood.FirstHardyLittlewoodConjectureForProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem first_hardy_littlewood_conjecture {k : ℕ} (m : Fin k.succ → ℕ) : FirstHardyLittlewoodConjectureFor m := by … - def
HardyLittlewood.SecondHardyLittlewoodConjectureForWikipedia URL: https://en.wikipedia.org/wiki/Second_Hardy%E2%80%93Littlewood_conjecture ## Second Hardy-Littlewood Conjecture line 100 sourceSource comment
Wikipedia URL: https://en.wikipedia.org/wiki/Second_Hardy%E2%80%93Littlewood_conjecture ## Second Hardy-Littlewood Conjecturestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
LE.le,Nat.primeCounting,HAdd.hAdd3 instances, coercions and auxiliary constants left out.
def SecondHardyLittlewoodConjectureFor (x y : ℕ) : Prop := …
- theorem
HardyLittlewood.second_hardy_littlewood_conjectureFor integers $x, y \geq 2$, $$ \pi(x + y) \leq \pi(x) + \pi(y), $$ where $\pi(z)$ denotes the prime-counting function, giving the number of primes up to and including $z$ sorry line 112 sourceSource documentation
For integers $x, y \geq 2$, $$ \pi(x + y) \leq \pi(x) + \pi(y), $$ where $\pi(z)$ denotes the prime-counting function, giving the number of primes up to and including $z$.
depends on sorry what this means
Statement uses:
Nat,LE.le,OfNat.ofNat, HardyLittlewood.SecondHardyLittlewoodConjectureForProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem second_hardy_littlewood_conjecture {x y : ℕ} (hx : 2 ≤ x) (hy : 2 ≤ y) : SecondHardyLittlewoodConjectureFor x y := by …Mentions: HardyLittlewood.SecondHardyLittlewoodConjectureFor
- theorem
HardyLittlewood.not_first_and_secondHardyLittlewoodConjectureRichards [Ri74] showed that only one of the two Hardy-Littlewood conjectures can be true sorry line 121 sourceSource documentation
Richards [Ri74] showed that only one of the two Hardy-Littlewood conjectures can be true.
[Ri74] Richards, Ian (1974). On the Incompatibility of Two Conjectures Concerning Primes. Bull. Amer. Math. Soc. 80: 419–438.
depends on sorry what this means
Statement uses:
Nat,Fin,Nat.succ, HardyLittlewood.FirstHardyLittlewoodConjectureFor,Not,LE.le,OfNat.ofNat, HardyLittlewood.SecondHardyLittlewoodConjectureForProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem not_first_and_secondHardyLittlewoodConjecture : (∀ {k : ℕ} (m : Fin k.succ → ℕ), FirstHardyLittlewoodConjectureFor m) → ¬(∀ {x y : ℕ} (hx : 2 ≤ x) (hy : 2 ≤ y), SecondHardyLittlewoodConjectureFor x y) := by …Mentions: HardyLittlewood.FirstHardyLittlewoodConjectureFor, HardyLittlewood.SecondHardyLittlewoodConjectureFor