FormalConjectures/ErdosProblems/1026.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
7 declarations, 5 contain sorry, 0 declared as axioms
Erdős Problem 1026
References:
- erdosproblems.com/1026
- [Er71] Erdős, P., Some unsolved problems in graph theory and combinatorial analysis. Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.
- [Ha57] Hanani, Haim, On the number of monotonic subsequences. Bull. Res. Council Israel Sect. F (1957/58), 11-13.
- [St95] Steele, J. Michael, Variations on the monotone subsequence theme of Erdős and Szekeres. (1995), 111-131.
- [TWY16] Tidor, J. and Wang, V. and Yang, B., $1$-color avoiding paths, special tournaments, and incidence geometry. arXiv:1608.04153 (2016).
- [Wa17] Wagner, Adam Zsolt, Large subgraphs in rainbow-triangle free colorings. J. Graph Theory (2017), 141-148.
Imports (1)
- def
Erdos1026.monotonicSubsequenceSumsThe set of sums $\sum x_{i_r}$, where $x_{i_1},\ldots,x_{i_r}$ ranges over the monotonic subsequences of the sequence $x_1,\ldots,x_n$ line 47 sourceSource documentation
The set of sums $\sum x_{i_r}$, where $x_{i_1},\ldots,x_{i_r}$ ranges over the monotonic subsequences of the sequence $x_1,\ldots,x_n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Real,SetProof uses:
Set.ofPred,Exists,Finset,And,Or,MonotoneOn,AntitoneOn,Eq,Finset.sum6 instances, coercions and auxiliary constants left out.
def monotonicSubsequenceSums {n : ℕ} (x : Fin n → ℝ) : Set ℝ := … - def
Erdos1026.admissibleConstantsThe set of constants line 62 sourceSource documentation
The set of constants $c$ such that, for all sequences of $n$ distinct positive real numbers $x_1,\ldots,x_n$, $$ \max\left(\sum x_{i_r}\right) > (c-o(1))\frac{1}{\sqrt{n}}\sum x_i $$ (where the maximum is taken over all monotonic subsequences).
The source reduces to positive sequences. With signed sequences the condition is not a vanishing error term: for $\varepsilon > |c|$ and $x_i = -i$ the right-hand side is positive while every subsequence sum is nonpositive, so no constant would be admissible.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,RealProof uses:
Set.ofPred,LT.lt,OfNat.ofNat,Filter.Eventually,Nat,Fin,Function.Injective,Exists,And,Membership.mem, Erdos1026.monotonicSubsequenceSums,LE.le,HMul.hMul,HDiv.hDiv,HSub.hSub,Real.sqrt,Finset.sum,Finset.univ,Filter.atTop17 instances, coercions and auxiliary constants left out.
def admissibleConstants : Set ℝ := …
- theorem
Erdos1026.erdos_1026Let $x_1,\ldots,x_n$ be a sequence of distinct real numbers sorry line 94 sourceSource documentation
Let $x_1,\ldots,x_n$ be a sequence of distinct real numbers. Determine $$ \max\left(\sum x_{i_r}\right), $$ where the maximum is taken over all monotonic subsequences.
This is as Erdős posed the problem in [Er71], which is rather ambiguous. Discussion between several users in the comments section has led to the following precise possible question, as posed by van Doorn:
What is the largest constant $c$ such that, for all sequences of $n$ real numbers $x_1,\ldots,x_n$, $$ \max\left(\sum x_{i_r}\right) > (c-o(1))\frac{1}{\sqrt{n}}\sum x_i $$ (where again the maximum is taken over all monotonic subsequences)?
Cambie makes the stronger conjecture that if $x_1,\ldots,x_{k^2}$ are distinct positive real numbers with $\sum x_i=1$ then there is always a monotonic subsequence with sum at least $1/k$.
This stronger conjecture appears to have been first proved by Tidor, Wang, and Yang [TWY16], and is also implicit in work of Wagner [Wa17]. A proof was given and formalised by Aristotle (see the comments), with an alternative proof provided by Chan. In particular, this shows that $c=1$.
depends on sorry what this means
Statement uses:
IsGreatest,Real, Erdos1026.admissibleConstants,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,Nat7 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1026 : IsGreatest admissibleConstants 1 := by …
Mentions: Erdos1026.admissibleConstants
- theorem
Erdos1026.erdos_1026.variants.upper_boundA construction of Cambie in the comments shows that $c\leq 1$ sorry line 101 sourceSource documentation
A construction of Cambie in the comments shows that $c\leq 1$.
depends on sorry what this means
Statement uses:
Membership.mem,Real,Set,upperBounds, Erdos1026.admissibleConstants,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,Nat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1026.variants.upper_bound : 1 ∈ upperBounds admissibleConstants := by …
Mentions: Erdos1026.admissibleConstants
- theorem
Erdos1026.erdos_1026.variants.lower_boundHanani [Ha57] showed that every sequence is the disjoint union of at most $(\sqrt{2}+o(1))\sqrt{n}$ many monotonic subsequences, whence $c\geq 1/\sqrt{2}$ sorry line 109 sourceSource documentation
Hanani [Ha57] showed that every sequence is the disjoint union of at most $(\sqrt{2}+o(1))\sqrt{n}$ many monotonic subsequences, whence $c\geq 1/\sqrt{2}$.
depends on sorry what this means
Statement uses:
Membership.mem,Real,Set, Erdos1026.admissibleConstants,HDiv.hDiv,OfNat.ofNat,Real.sqrt,NatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous22 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1026.variants.lower_bound : 1 / Real.sqrt 2 ∈ admissibleConstants := by …
Mentions: Erdos1026.admissibleConstants
- theorem
Erdos1026.erdos_1026.variants.hananiHanani [Ha57] showed that every sequence is the disjoint union of at most $(\sqrt{2}+o(1))\sqrt{n}$ many monotonic subsequences sorry line 117 sourceSource documentation
Hanani [Ha57] showed that every sequence is the disjoint union of at most $(\sqrt{2}+o(1))\sqrt{n}$ many monotonic subsequences.
depends on sorry what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,Filter.Eventually,Nat,Fin,Function.Injective,Exists,Finset,And,Or,MonotoneOn,AntitoneOn,Pairwise,Disjoint,Eq,Finset.biUnion,Finset.univ,LE.le,HMul.hMuland 3 moreProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous48 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_1026.variants.hanani (ε : ℝ) (hε : 0 < ε) : ∀ᶠ n : ℕ in atTop, ∀ x : Fin n → ℝ, Function.Injective x → ∃ (m : ℕ) (I : Fin m → Finset (Fin n)), (∀ j, MonotoneOn x ↑(I j) ∨ AntitoneOn x ↑(I j)) ∧ (Pairwise fun j k => Disjoint (I j) (I k)) ∧ (Finset.univ : Finset (Fin m)).biUnion I = Finset.univ ∧ (m : ℝ) ≤ (Real.sqrt 2 + ε) * Real.sqrt (n : ℝ) := by … - theorem
Erdos1026.erdos_1026.variants.weighted_erdos_szekeresDocumented declaration: weighted_erdos_szekeres sorry line 137 sourceSource documentation
Cambie makes the stronger conjecture that if $x_1,\ldots,x_{k^2}$ are distinct positive real numbers with $\sum x_i=1$ then there is always a monotonic subsequence with sum at least $1/k$. This is a weighted-form of the Erdős-Szekeres theorem, and is also mentioned (as an open question) in a survey on the latter by Steele [St95].
This stronger conjecture appears to have been first proved by Tidor, Wang, and Yang [TWY16], and is also implicit in work of Wagner [Wa17]. A proof was given and formalised by Aristotle (see the comments), with an alternative proof provided by Chan.
depends on sorry what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Fin,HPow.hPow,Real,Function.Injective,Eq,Finset.sum,Finset.univ,Exists,And,Membership.mem,Set, Erdos1026.monotonicSubsequenceSums,LE.le,HDiv.hDivProof 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_1026.variants.weighted_erdos_szekeres (k : ℕ) (hk : 0 < k) (x : Fin (k ^ 2) → ℝ) (hx : Function.Injective x) (hx' : ∀ i, 0 < x i) (hsum : (∑ i, x i) = 1) : ∃ S ∈ monotonicSubsequenceSums x, 1 / (k : ℝ) ≤ S := by …Mentions: Erdos1026.monotonicSubsequenceSums