FormalConjectures/ErdosProblems/361.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
6 declarations, 1 contain sorry, 0 declared as axioms
Erdős Problem 361
Reference: erdosproblems.com/361
Imports (1)
- def
Erdos361.AvoidsSubsetSumAvoidsSubsetSum n Ameans that no subset $B \subseteq A$ has sum equal to $n$ line 33 sourceSource documentation
AvoidsSubsetSum n Ameans that no subset $B \subseteq A$ has sum equal to $n$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,FinsetProof uses:
Membership.mem,Finset.powerset,Ne,Finset.sum3 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
def AvoidsSubsetSum (n : ℕ) (A : Finset ℕ) : Prop := …
- instance
Erdos361.(instance at line 36)line 36 source - def
Erdos361.maxSubsetSumAvoidingCardThe largest cardinality of a set $A \subseteq \{1, \ldots, N\}$ such that no subset of $A$ sums to $n$ line 44 sourceSource documentation
The largest cardinality of a set $A \subseteq \{1, \ldots, N\}$ such that no subset of $A$ sums to $n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset.sup,Finset,Finset.filter, Erdos361.AvoidsSubsetSum,Finset.powerset,Finset.Icc,OfNat.ofNat,Finset.card7 instances, coercions and auxiliary constants left out.
def maxSubsetSumAvoidingCard (N n : ℕ) : ℕ := …
- def
Erdos361.subsetSumAvoidanceNumberFor fixed $c$ and $n$, this is the size of the largest set $A \subseteq \{1, \ldots, \lfloor cn \rfloor\}$ such that no subset of $A$ sums to $n$ line 51 sourceSource documentation
For fixed $c$ and $n$, this is the size of the largest set $A \subseteq \{1, \ldots, \lfloor cn \rfloor\}$ such that no subset of $A$ sums to $n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real,NatProof uses: Erdos361.maxSubsetSumAvoidingCard,
Nat.floor,HMul.hMul10 instances, coercions and auxiliary constants left out.
noncomputable def subsetSumAvoidanceNumber (c : ℝ) (n : ℕ) : ℕ := …
Mentions: c
- theorem
Erdos361.maxSubsetSumAvoidingCard_three_fourFor target $4$ and universe $\{1, 2, 3\}$, the maximum is $2$: the full set is invalid because its subset $\{1, 3\}$ sums to $4$ line 59 sourceSource documentation
For target $4$ and universe $\{1, 2, 3\}$, the maximum is $2$: the full set is invalid because its subset $\{1, 3\}$ sums to $4$.
extra axioms: _private.0.Erdos361.maxSubsetSumAvoidingCard_three_four._native.native_decide.ax_1 what this means
Statement uses:
Eq,Nat, Erdos361.maxSubsetSumAvoidingCard,OfNat.ofNatProof uses:
of_decide_eq_true4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem maxSubsetSumAvoidingCard_three_four : maxSubsetSumAvoidingCard 3 4 = 2 := by …
Mentions: Erdos361.maxSubsetSumAvoidingCard
- theorem
Erdos361.erdos_361Let $c > 0$ and $n$ be some large integer sorry line 68 sourceSource documentation
Let $c > 0$ and $n$ be some large integer. What is the size of the largest set $A \subseteq \{1, \ldots, \lfloor c n \rfloor\}$ such that $n$ is not a sum of a subset of $A$? Does this depend on $n$ in an irregular way?
depends on sorry what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,Eq,Nat, Erdos361.subsetSumAvoidanceNumber,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_361 (c : ℝ) (hc : 0 < c) : subsetSumAvoidanceNumber c = answer(sorry) := by …Mentions: c, Erdos361.subsetSumAvoidanceNumber