FormalConjectures/ErdosProblems/220.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
3 declarations, 1 contain sorry, 0 declared as axioms
Erdős Problem 220
References:
- erdosproblems.com/220
- [Er40] Erdős, P., The difference of consecutive primes. Duke Math. J. (1940), 438--441.
- [Er73] Erdős, P., Problems and results on combinatorial number theory. A survey of combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971) (1973), 117-138.
- [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory. Monographies de L'Enseignement Mathematique (1980).
- [MoVa86] Montgomery, H. L. and Vaughan, R. C., On the distribution of reduced residues. Ann. of Math. (2) (1986), 311-333.
- [Gu04] Guy, Richard K., Unsolved problems in number theory. (2004), xviii+437.
Imports (1)
- def
Erdos220.sumSquaredGapsThe sum of the squared differences of adjacent entries of a list of natural numbers line 42 sourceSource documentation
The sum of the squared differences of adjacent entries of a list of natural numbers.
standard axioms: propext what this means
Statement uses:
List,Nat2 instances, coercions and auxiliary constants left out.
def sumSquaredGaps : List ℕ → ℕ | a :: b :: rest => (b - a) ^ 2 + sumSquaredGaps (b :: rest) | _ => 0 /-- The reduced residues `1 ≤ m < n` with `(m, n) = 1`, in increasing order. -/
- def
Erdos220.sortedTotativesThe reduced residues1 ≤ m < nwith(m, n) = 1, in increasing order line 47 sourceSource documentation
The reduced residues
1 ≤ m < nwith(m, n) = 1, in increasing order.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,ListProof uses:
Finset.sort,Finset.filter,Nat.Coprime,Finset.Ico,OfNat.ofNat,LE.le10 instances, coercions and auxiliary constants left out.
def sortedTotatives (n : ℕ) : List ℕ := …
- theorem
Erdos220.erdos_220sorry line 63 sourcedepends on sorry what this means
Statement uses:
Iff,True,Exists,Real,And,LT.lt,OfNat.ofNat,Nat,LE.le, Erdos220.sumSquaredGaps, Erdos220.sortedTotatives,HDiv.hDiv,HMul.hMul,HPow.hPow,Nat.totientProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous34 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.