FormalConjectures/ErdosProblems/162.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 162
References:
- erdosproblems.com/162
- [Er90b] Erdős, Paul, Problems and results on graphs and hypergraphs: similarities and differences. Mathematics of Ramsey theory (1990), 12-28.
Imports (1)
- def
Erdos162.colourEdgeCountThe number of edges of $K_n$ insideHthat get colourbunder the colouringcline 36 sourceSource documentation
The number of edges of $K_n$ inside
Hthat get colourbunder the colouringc.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Sym2,Fin,Bool,FinsetProof uses:
Finset.card,Finset.filter,And,Not,Sym2.IsDiag,Eq,Finset.sym25 instances, coercions and auxiliary constants left out.
def colourEdgeCount {n : ℕ} (c : Sym2 (Fin n) → Bool) (H : Finset (Fin n)) (b : Bool) : ℕ := …Mentions: c
- def
Erdos162.IsBalancedAboveEvery setHof at leastkvertices contains more than $\alpha\binom{|H|}{2}$ edges of each colour undercline 41 sourceSource documentation
Every set
Hof at leastkvertices contains more than $\alpha\binom{|H|}{2}$ edges of each colour underc.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Sym2,Fin,BoolProof uses:
Finset,LE.le,Finset.card,LT.lt,HMul.hMul,Nat.choose,OfNat.ofNat, Erdos162.colourEdgeCount7 instances, coercions and auxiliary constants left out.
def IsBalancedAbove (n : ℕ) (α : ℝ) (c : Sym2 (Fin n) → Bool) (k : ℕ) : Prop := …
Mentions: c
- def
Erdos162.F$F(n, \alpha)$: the smallestksuch that some 2-colouring of $K_n$ satisfiesIsBalancedAbove n α c kline 50 sourceSource documentation
$F(n, \alpha)$: the smallest
ksuch that some 2-colouring of $K_n$ satisfiesIsBalancedAbove n α c k.The source says "largest
k". Read literally, everyk > nworks vacuously, so no largestkexists. The smallestkis the reading consistent with the stated $\Theta(\log n)$ growth.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
InfSet.sInf,Set.ofPred,Exists,Sym2,Fin,Bool, Erdos162.IsBalancedAbove1 instances, coercions and auxiliary constants left out.
noncomputable def F (n : ℕ) (α : ℝ) : ℕ := …
- theorem
Erdos162.erdos_162Let $\alpha > 0$ and $n \geq 1$ sorry line 65 sourceSource documentation
Let $\alpha > 0$ and $n \geq 1$. Let $F(n,\alpha)$ be the largest $k$ such that there exists some 2-colouring of the edges of $K_n$ in which any induced subgraph $H$ on at least $k$ vertices contains more than $\alpha\binom{|H|}{2}$ many edges of each colour.
Prove that for every fixed $0 \leq \alpha \leq 1/2$, as $n \to \infty$, $F(n,\alpha) \sim c_\alpha \log n$ for some constant $c_\alpha$.
We require $\alpha < 1/2$: at $\alpha = 1/2$ no colouring works for any
k ≤ n(seeerdos_162.variants.half).depends on sorry what this means
Statement uses:
Real,LE.le,OfNat.ofNat,LT.lt,HDiv.hDiv,Nat,Exists,Asymptotics.IsEquivalent,Filter.atTop, Erdos162.F,HMul.hMul,Real.logProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous46 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_162 (α : ℝ) (h0 : 0 ≤ α) (h1 : α < 1 / 2) : ∃ c : ℝ, (fun n : ℕ ↦ (F n α : ℝ)) ~[atTop] (fun n : ℕ ↦ c * Real.log n) := by …Mentions: c, Erdos162.F
- theorem
Erdos162.erdos_162.variants.boundsIt is easy to show with the probabilistic method that there exist $c_1(\alpha), c_2(\alpha)$ such that $c_1(\alpha)\log n < F(n,\alpha) < c_2(\alpha)\log n$ sorry line 74 sourceSource documentation
It is easy to show with the probabilistic method that there exist $c_1(\alpha), c_2(\alpha)$ such that $c_1(\alpha)\log n < F(n,\alpha) < c_2(\alpha)\log n$.
depends on sorry what this means
Statement uses:
Real,LE.le,OfNat.ofNat,LT.lt,HDiv.hDiv,Nat,Exists,And,Filter.Eventually,HMul.hMul,Real.log, Erdos162.F,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous36 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_162.variants.bounds (α : ℝ) (h0 : 0 ≤ α) (h1 : α < 1 / 2) : ∃ c₁ c₂ : ℝ, 0 < c₁ ∧ c₁ < c₂ ∧ ∀ᶠ n : ℕ in atTop, c₁ * Real.log n < F n α ∧ (F n α : ℝ) < c₂ * Real.log n := by …Mentions: Erdos162.F
- theorem
Erdos162.erdos_162.variants.halfAt $\alpha = 1/2$ the two colour counts in $H$ add up to $\binom{|H|}{2}$, so both cannot exceed half of it sorry line 84 sourceSource documentation
At $\alpha = 1/2$ the two colour counts in $H$ add up to $\binom{|H|}{2}$, so both cannot exceed half of it. Hence $F(n, 1/2) = n + 1$, and the claim fails at $\alpha = 1/2$.
depends on sorry what this means
Statement uses:
Nat,Eq, Erdos162.F,HDiv.hDiv,Real,OfNat.ofNat,HAdd.hAddProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous24 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_162.variants.half (n : ℕ) : F n (1 / 2) = n + 1 := by …
Mentions: Erdos162.F
- theorem
Erdos162.isBalancedAbove_succk = n + 1always works, since no vertex set has more thannelements line 89 sourceSource documentation
k = n + 1always works, since no vertex set has more thannelements.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Sym2,Fin,Bool, Erdos162.IsBalancedAbove,HAdd.hAdd,OfNat.ofNatProof uses:
Finset,LE.le,Finset.card,Fintype.card,Finset.card_le_univ,Decidable.byContradiction,LT.lt,HMul.hMul,Nat.choose, Erdos162.colourEdgeCount,Not,Eq.mp,congrArg,Fintype.card_fin15 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
theorem isBalancedAbove_succ (n : ℕ) (α : ℝ) (c : Sym2 (Fin n) → Bool) : IsBalancedAbove n α c (n + 1) := by …Mentions: c, Erdos162.IsBalancedAbove
- theorem
Erdos162.F_le_succ$F(n, \alpha)$ is at mostn + 1line 98 sourceSource documentation
$F(n, \alpha)$ is at most
n + 1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,LE.le, Erdos162.F,HAdd.hAdd,OfNat.ofNatProof uses:
Nat.sInf_le,Set.ofPred,Exists,Sym2,Fin,Bool, Erdos162.IsBalancedAbove,Exists.intro,Bool.true, Erdos162.isBalancedAbove_succ7 instances, coercions and auxiliary constants left out.
theorem F_le_succ (n : ℕ) (α : ℝ) : F n α ≤ n + 1 := …
Mentions: Erdos162.F