FormalConjectures/ErdosProblems/1192.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
8 declarations, 3 contain sorry, 0 declared as axioms
Erdős Problem 1192
References:
- erdosproblems.com/1192
- [Ru90] Ruzsa, Imre Z., A just basis. Monatsh. Math. (1990), 145--151.
- [Er80] Erdős, Paul, A survey of problems in combinatorial number theory. Ann. Discrete Math. 6 (1980), 89--115.
Imports (1)
- def
Erdos1192.f_rFor $A\subset \mathbb{N}$ let $f_r(n)$ count the number of solutions to $n=a_1+\cdots+a_r$ with $a_i\in A$ line 41 sourceSource documentation
For $A\subset \mathbb{N}$ let $f_r(n)$ count the number of solutions to $n=a_1+\cdots+a_r$ with $a_i\in A$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ncard,Fin,Set.ofPred,And,Membership.mem,Eq,Finset.sum,Finset.univ3 instances, coercions and auxiliary constants left out.
noncomputable def f_r (A : Set ℕ) (r n : ℕ) : ℕ := …
- theorem
Erdos1192.erdos_1192.f_r_zero_zeroThe empty sum ($r = 0$) gives exactly one representation of $0$: the empty tuple line 46 sourceSource documentation
The empty sum ($r = 0$) gives exactly one representation of $0$: the empty tuple.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Eq, Erdos1192.f_r,OfNat.ofNatProof uses:
id,Fin,Set.ofPred,And,Membership.mem,Finset.sum,Finset.univ,Singleton.singleton,Inhabited.default,Set.ext,of_eq_true,Iff,Eq.trans,True,congr,congrArg,Set.univ,congrFun',funext,Finset.sum_congrand 10 more23 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
theorem erdos_1192.f_r_zero_zero (A : Set ℕ) : f_r A 0 0 = 1 := by …
Mentions: Erdos1192.f_r
- theorem
Erdos1192.erdos_1192.f_r_emptyWith an empty set, there are no valid $r$-tuples for $r \geq 1$ line 55 sourceSource documentation
With an empty set, there are no valid $r$-tuples for $r \geq 1$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq, Erdos1192.f_r,EmptyCollection.emptyCollection,Set,HAdd.hAdd,OfNat.ofNatProof uses:
id,Fin,Set.ofPred,And,Membership.mem,Finset.sum,Finset.univ,Set.ext,of_eq_true,Iff,Eq.trans,False,True,congr,congrArg,congrFun',funext,forall_congr,false_and,iff_selfand 4 more17 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
theorem erdos_1192.f_r_empty (r n : ℕ) : f_r ∅ (r + 1) n = 0 := by …
Mentions: Erdos1192.f_r
- theorem
Erdos1192.erdos_1192.f_r_singleton_selfFor $r = 1$, $f_1(\{n\}, n) = 1$: the only $1$-tuple from $\{n\}$ summing to $n$ is $(n)$ line 64 sourceSource documentation
For $r = 1$, $f_1(\{n\}, n) = 1$: the only $1$-tuple from $\{n\}$ summing to $n$ is $(n)$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq, Erdos1192.f_r,Singleton.singleton,Set,OfNat.ofNatProof uses:
id,Fin,Set.ofPred,And,Membership.mem,Finset.sum,Finset.univ,Set.ext,Eq.mpr,Iff,congr,congrArg,congrFun',funext,forall_congr,Iff.intro,And.intro,rfl,of_eq_true,Eq.transand 14 more21 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
theorem erdos_1192.f_r_singleton_self (n : ℕ) : f_r {n} 1 n = 1 := by …Mentions: Erdos1192.f_r
- theorem
Erdos1192.erdos_1192.f_r_no_rep$f_1(\{0\}, 1) = 0$: can't represent $1$ with a single element from $\{0\}$ line 80 sourceSource documentation
$f_1(\{0\}, 1) = 0$: can't represent $1$ with a single element from $\{0\}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, Erdos1192.f_r,Singleton.singleton,Set,OfNat.ofNatProof uses:
id,Fin,Set.ofPred,And,Membership.mem,Finset.sum,Finset.univ,EmptyCollection.emptyCollection,Set.ext,Eq.mpr,Iff,Not,Eq.trans,False,congr,congrArg,congrFun',funext,forall_congr,iff_falseand 11 more26 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
theorem erdos_1192.f_r_no_rep : f_r {0} 1 1 = 0 := by …Mentions: Erdos1192.f_r
- theorem
Erdos1192.erdos_1192Does there exist, for all $r\geq 2$, a basis $A$ of order $r$ (so that $f_r(n)>0$ for all large $n$) such that $$\sum_{n\leq x}f_r(n)^2 \ll x$$ for all $x$? sorry line 97 sourceSource documentation
Does there exist, for all $r\geq 2$, a basis $A$ of order $r$ (so that $f_r(n)>0$ for all large $n$) such that $$\sum_{n\leq x}f_r(n)^2 \ll x$$ for all $x$?
depends on sorry what this means
Statement uses:
Iff,True,Nat,GE.ge,OfNat.ofNat,Exists,Set,And,Filter.Eventually,GT.gt, Erdos1192.f_r,Filter.atTop,Asymptotics.IsBigO,Real,Finset.sum,Finset.range,HAdd.hAdd,HPow.hPowProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous28 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1192 : answer(sorry) ↔ ∀ r ≥ 2, ∃ A : Set ℕ, (∀ᶠ n in atTop, f_r A r n > 0) ∧ (fun (x : ℕ) ↦ ∑ n ∈ range (x + 1), (f_r A r n : ℝ) ^ 2) =O[atTop] (fun (x : ℕ) ↦ (x : ℝ)) := by …Mentions: Erdos1192.f_r
- theorem
Erdos1192.erdos_1192.variants.renyiErdős and Rényi proved by the probabilistic method that there exists a set $A$ such that $$\sum_{n\leq x}f_r(n)^2 \ll x$$ and $$\lvert A\cap [1,x]\rvert\gg x^{1/r}$$ for all $x$ sorry line 111 sourceSource documentation
Erdős and Rényi proved by the probabilistic method that there exists a set $A$ such that $$\sum_{n\leq x}f_r(n)^2 \ll x$$ and $$\lvert A\cap [1,x]\rvert\gg x^{1/r}$$ for all $x$.
depends on sorry what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,Exists,Set,And,Asymptotics.IsBigO,Real,Filter.atTop,Finset.sum,Finset.range,HAdd.hAdd,HPow.hPow, Erdos1192.f_r,HDiv.hDiv,Nat.count,Membership.mem,Classical.propDecidableProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous40 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1192.variants.renyi : ∀ r ≥ 2, ∃ A : Set ℕ, ((fun (x : ℕ) ↦ ∑ n ∈ range (x + 1), (f_r A r n : ℝ) ^ 2) =O[atTop] (fun (x : ℕ) ↦ (x : ℝ))) ∧ ((fun (x : ℕ) ↦ (x : ℝ) ^ (1 / (r : ℝ))) =O[atTop] (fun (x : ℕ) ↦ (count (· ∈ A) x : ℝ))) := by …Mentions: Erdos1192.f_r
- theorem
Erdos1192.erdos_1192.variants.ruzsaRuzsa [Ru90] proved that the answer is yes for $r=2$ sorry line 123 sourceSource documentation
Ruzsa [Ru90] proved that the answer is yes for $r=2$.
depends on sorry what this means
Statement uses:
Exists,Set,Nat,And,Filter.Eventually,GT.gt, Erdos1192.f_r,OfNat.ofNat,Filter.atTop,Asymptotics.IsBigO,Real,Finset.sum,Finset.range,HAdd.hAdd,HPow.hPowProof 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 erdos_1192.variants.ruzsa : ∃ A : Set ℕ, (∀ᶠ n in atTop, f_r A 2 n > 0) ∧ (fun (x : ℕ) ↦ ∑ n ∈ range (x + 1), (f_r A 2 n : ℝ) ^ 2) =O[atTop] (fun (x : ℕ) ↦ (x : ℝ)) := by …Mentions: Erdos1192.f_r