FormalConjectures/ErdosProblems/358.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
11 declarations, 5 contain sorry, 0 declared as axioms
Imports (1)
Imported by 1 file
- def
Erdos358.intervalRepresentationsLet $a$ be an infinite sequence of integers line 38 sourceSource comment
Let $a$ be an infinite sequence of integers. `intervalRepresentations A n` is the set of solutions to $$n=\sum_{u\leq i\leq v}a_i.$$ where `u` and `v` are positive integers.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Set,ProdProof uses:
Set.ofPred,Erdos358.intervalRepresentations.match_1,And,LT.lt,OfNat.ofNat,Eq,Finset.sum,Finset.Icc5 instances, coercions and auxiliary constants left out.
def intervalRepresentations (A : ℕ → ℕ) (n : ℕ) : Set (ℕ × ℕ) := …
- def
Erdos358.fLet $a$ be an infinite sequence of integers line 45 sourceSource comment
Let $a$ be an infinite sequence of integers. Let $f(n)$ count the number of solutions to $$n=\sum_{u\leq i\leq v}a_i.$$standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Nat.card,Prod, Erdos358.intervalRepresentations1 instances, coercions and auxiliary constants left out.
noncomputable def f (A : ℕ → ℕ) (n : ℕ) : ℕ := …
- def
Erdos358.intervalRepresentationsNonTrivialLet $a$ be an infinite sequence of integers line 52 sourceSource comment
Let $a$ be an infinite sequence of integers. `intervalRepresentationsNonTrivial A n` is the set of solutions to $$n=\sum_{u\leq i\leq v}a_i$$ such that the sum has at least two terms.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Set,ProdProof uses:
Set.ofPred,Erdos358.intervalRepresentations.match_1,And,LT.lt,OfNat.ofNat,Eq,Finset.sum,Finset.Icc5 instances, coercions and auxiliary constants left out.
def intervalRepresentationsNonTrivial (A : ℕ → ℕ) (n : ℕ) : Set (ℕ × ℕ) := …
- def
Erdos358.gLet $a$ be an infinite sequence of integers line 59 sourceSource comment
Let $a$ be an infinite sequence of integers. Let $g(n)$ count the number of solutions to $$n=\sum_{u\leq i\leq v}a_i.$$ such that the sum has at least two terms.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Nat.card,Prod, Erdos358.intervalRepresentationsNonTrivial1 instances, coercions and auxiliary constants left out.
noncomputable def g (A : ℕ → ℕ) (n : ℕ) : ℕ := …
- theorem
Erdos358.f_idWhen $A_n = n$, the function $f$ defined above counts the number of odd divisors of $n$ sorry line 66 sourceSource documentation
When $A_n = n$, the function $f$ defined above counts the number of odd divisors of $n$.
depends on sorry what this means
Statement uses:
Eq,Nat, Erdos358.f,id,Finset.card,Finset.filter,Odd,Nat.divisorsProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat5 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem f_id : f id = fun n ↦ #{d ∈ n.divisors | Odd d} := by …Mentions: Erdos358.f
- theorem
Erdos358.erdos_358.parts.iLet $A=\{a_1 < \cdots\}$ be an infinite sequence of integers sorry line 77 sourceSource documentation
Let $A=\{a_1 < \cdots\}$ be an infinite sequence of integers. Let $f(n)$ count the number of solutions to $$n=\sum_{u\leq i\leq v}a_i.$$ Is there such an $A$ for which $f(n)\to \infty$ as $n\to \infty$?
Tao [Ta26] constructed such a sequence with $f(n) \gg \log n$ for all sufficiently large $n$.
depends on sorry what this means
Statement uses:
Iff,True,Exists,Nat,And,StrictMono,Filter.Tendsto, Erdos358.f,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_358.parts.i : answer(True) ↔ ∃ A, StrictMono A ∧ atTop.Tendsto (f A) atTop := by …Mentions: Erdos358.f
- theorem
Erdos358.erdos_358.parts.iiLet $A=\{a_1 < \cdots\}$ be an infinite sequence of integers sorry line 89 sourceSource documentation
Let $A=\{a_1 < \cdots\}$ be an infinite sequence of integers. Let $f(n)$ count the number of solutions to $$n=\sum_{u\leq i\leq v}a_i.$$ Is there an $A$ such that $f(n)\geq 2$ for all large $n$?
This also follows from Tao's construction with $f(n) \gg \log n$ [Ta26].
depends on sorry what this means
Statement uses:
Iff,True,Exists,Nat,And,StrictMono,Filter.Eventually,LE.le,OfNat.ofNat, Erdos358.f,Filter.atTopProof 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 erdos_358.parts.ii : answer(True) ↔ ∃ A, StrictMono A ∧ ∀ᶠ n in atTop, 2 ≤ f A n := by …Mentions: Erdos358.f
- theorem
Erdos358.erdos_358.variants.prime_setWhen $A =\{a_1 < \cdots\}$ corresponds to the set of primes, it is conjectured that the $\limsup$ of the number of representations $$n=\sum_{u\leq i\leq v}a_i$$ is infinite sorry line 98 sourceSource documentation
When $A =\{a_1 < \cdots\}$ corresponds to the set of primes, it is conjectured that the $\limsup$ of the number of representations $$n=\sum_{u\leq i\leq v}a_i$$ is infinite.
depends on sorry what this means
Statement uses:
Eq,ENat,Filter.limsup,Nat, Erdos358.f,Nat.nth,Nat.Prime,Filter.atTop,Top.topProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat17 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_358.variants.prime_set : atTop.limsup (fun n ↦ (f (Nat.nth Nat.Prime) n : ℕ∞)) = ⊤ := by …Mentions: Erdos358.f
- theorem
Erdos358.erdos_358.variants.prime_set_density_representationDocumented declaration: prime_set_density_representation sorry line 107 sourceSource documentation
When $A =\{a_1 < \cdots\}$ corresponds to the set of primes, it is conjectured that the set of numbers $n$ that have representations $$n=\sum_{u\leq i\leq v}a_i$$ has positive upper density.
depends on sorry what this means
Statement uses:
LT.lt,Real,OfNat.ofNat, Set.upperDensity,Nat,Set.ofPred,Set.Nonempty,Prod, Erdos358.intervalRepresentations,Nat.nth,Nat.Prime,Set.univProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_358.variants.prime_set_density_representation : 0 < {n : ℕ | intervalRepresentations (Nat.nth Nat.Prime) n |>.Nonempty}.upperDensity := by …Mentions: Erdos358.intervalRepresentations
- theorem
Erdos358.one_le_g_of_two_le_fDocumented declaration: one_le_g_of_two_le_f line 117 sourceSource documentation
If $A$ is strictly increasing then any $n > 0$ has at most one representation $$n=\sum_{u\leq i\leq v}a_i$$ with a single term, so discarding the single-term representations loses at most one solution.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,StrictMono,LT.lt,OfNat.ofNat,LE.le, Erdos358.f, Erdos358.gProof uses:
Set.Finite,Prod, Erdos358.intervalRepresentations,Set.Infinite,Or,Set.finite_or_infinite,Decidable.byContradiction,Classical.propDecidable,Not,Eq.mp,Nat.card,congrArg,Nat.card_eq_zero_of_infinite,Set.Infinite.to_subtype,Erdos358.f.eq_1,Set, Erdos358.intervalRepresentationsNonTrivial,Membership.mem,Prod.mk,idand 45 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 43 steps
Open to load the checked before-and-after goal states.
theorem one_le_g_of_two_le_f {A : ℕ → ℕ} (hA : StrictMono A) {n : ℕ} (hn : 0 < n) (hf : 2 ≤ f A n) : 1 ≤ g A n := by …Mentions: Erdos358.f, Erdos358.g
- theorem
Erdos358.erdos_358.variants.one_leIn [ErGr80] Erdős and Graham further asked whether there is an $A$ with $f(n)\geq 1$ for all large $n$ line 168 sourceSource documentation
In [ErGr80] Erdős and Graham further asked whether there is an $A$ with $f(n)\geq 1$ for all large $n$. Egami observed that this holds trivially for $a_n=n$, so they may have intended to count only those representations $$n=\sum_{u\leq i\leq v}a_i$$ that use at least two consecutive terms, which is what $g$ counts.
This follows from Tao's construction [Ta26], which gives $f(n)\gg\log n$: see
erdos_358.parts.iiandone_le_g_of_two_le_f.depends on sorry what this means
Statement uses:
Exists,Nat,And,StrictMono,Filter.Eventually,LE.le,OfNat.ofNat, Erdos358.g,Filter.atTopProof uses: Erdos358.f,
Iff.mp,True, Erdos358.erdos_358.parts.ii,trivial,Exists.intro,And.intro,Filter.mp_mem,Set.ofPred,LT.lt,Filter.eventually_gt_atTop,Membership.mem,Set,Filter.univ_mem',id, Erdos358.one_le_g_of_two_le_f12 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
theorem erdos_358.variants.one_le : ∃ A, StrictMono A ∧ ∀ᶠ n in atTop, 1 ≤ g A n := by …Mentions: Erdos358.g