FormalConjectures/ErdosProblems/318.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, 6 contain sorry, 0 declared as axioms
Erdős Problem 318
References:
- erdosproblems.com/318
- [ErSt75] Erdős, P. and Straus, E. G., Solution to Problem 387. Nieuw Arch. Wisk. (1975), 183.
- [Sa75] Sattler, R., Solution to Problem 387. Nieuw Arch. Wisk. (1975), 184-189.
- [Sa82b] Sattler, R., On Erdős property P₁ for the arithmetical sequence. Nederl. Akad. Wetensch. Indag. Math. (1982), 347--352.
- [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory. Monographies de L'Enseignement Mathematique (1980).
- [La26] D. Larsen, Erdős problem 318 (2026)
Imports (1)
- def
Erdos318.P₁Documented declaration: P₁ line 43 sourceSource documentation
A set
A : Set ℕis said to have propertyP₁if for any nonconstant sequencef : A → {-1, 1}, one can always select a finite, nonempty subsetS ⊆ A \ {0}such that∑ n ∈ S, fₙ / n = 0. This is defined in [Sa82b].standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Real,Ne,Subtype,Membership.mem,SDiff.sdiff,Singleton.singleton,OfNat.ofNat,Function.comp,Neg.neg,LE.le,Set.range,Insert.insert,Exists,Finset,And,Finset.Nonempty,Eq,Finset.sum,HDiv.hDiv20 instances, coercions and auxiliary constants left out.
def P₁ (A : Set ℕ) : Prop := ∀ (f : ℕ → ℝ), …
- theorem
Erdos318.erdos_318.variants.univsorry line 52 sourcedepends on sorry what this means
Statement uses: Erdos318.P₁,
Set.univ,NatProof 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
Erdos318.erdos_318.variants.oddsorry line 58 sourcedepends on sorry what this means
Statement uses: Erdos318.P₁,
Set.ofPred,Nat,OddProof 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
Erdos318.erdos_318.variants.squaresThe set of squares does not have propertyP₁line 63 sourceSource documentation
The set of squares does not have property
P₁.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not, Erdos318.P₁,Set.ofPred,Nat,IsSquareProof uses:
Eq.mpr,Exists,Real,Ne,Subtype,Membership.mem,Set,SDiff.sdiff,Singleton.singleton,OfNat.ofNat,Function.comp,Neg.neg,LE.le,Set.range,Insert.insert,Finset,Finset.Nonempty,Eq,Finset.sum,HDiv.hDivand 204 more254 instances, coercions and auxiliary constants left out.
Tactic trace: 58 steps
Open to load the checked before-and-after goal states.
theorem erdos_318.variants.squares : ¬ P₁ ({n | IsSquare n}) := by …Mentions: Erdos318.P₁
- theorem
Erdos318.erdos_318.variants.contain_single_evenFor any infinite setAcontaining exactly one positive even number,Adoes not have propertyP₁sorry line 112 sourceSource documentation
For any infinite set
Acontaining exactly one positive even number,Adoes not have propertyP₁. Sattler [Sa82] credits this observation to Erdős, who presumably found this after [ErGr80]. The element0is not counted, sinceP₁ignores it, and the infinitude hypothesis excludes degenerate sets such as{2}, on whichP₁holds vacuously.depends on sorry what this means
Statement uses:
Set,Nat,Set.Infinite,Eq,Set.ncard,Set.ofPred,And,Membership.mem,SDiff.sdiff,Singleton.singleton,OfNat.ofNat,Even,Not, Erdos318.P₁Proof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous10 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_318.variants.contain_single_even {A : Set ℕ} (hA : A.Infinite) (hA' : {n | n ∈ A \ {0} ∧ Even n}.ncard = 1) : ¬ P₁ A := by …Mentions: Erdos318.P₁
- theorem
Erdos318.erdos_318.parts.iThere exists a setAwith positive density that does not have propertyP₁sorry line 125 sourceSource documentation
There exists a set
Awith positive density that does not have propertyP₁. #TODO: prove this lemma by assumingerdos_318.contain_single_even.The density sits in an existential, so
HasPosDensityis the stronger reading here and weakening it to positive lower density would claim less, which is the opposite of the usual situation for Erdős' "positive density". It also costs nothing: byerdos_318.variants.contain_single_evena witness only needs exactly one even element, and the odd numbers together with one even number have density1 / 2on the nose.depends on sorry what this means
Statement uses:
Exists,Set,Nat,And, Set.HasPosDensity,Set.univ,Not, Erdos318.P₁Proof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_318.parts.i : ∃ A : Set ℕ, HasPosDensity A ∧ ¬ P₁ A := by …
Mentions: Erdos318.P₁
- theorem
Erdos318.erdos_318.variants.infinite_APsorry line 131 sourcedepends on sorry what this means
Statement uses:
Set,Nat, Set.IsAPOfLength,Top.top,ENat, Erdos318.P₁Proof 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
Erdos318.erdos_318.parts.iiDoes the set of squares excluding 1 have propertyP₁? sorry line 140 sourceSource documentation
Does the set of squares excluding 1 have property
P₁?Larsen [La26] proved that this set does have property
P₁.depends on sorry what this means
Statement uses:
Iff,True, Erdos318.P₁,SDiff.sdiff,Set,Nat,Set.ofPred,IsSquare,Singleton.singleton,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_318.parts.ii : answer(True) ↔ P₁ ({n | IsSquare n} \ {1}) := by …Mentions: Erdos318.P₁