The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.Triangle.Removal
10 declarations. Mathlib docs · Source
Triangle removal lemma
In this file, we prove the triangle removal lemma.
References
[Yaël Dillies, Bhavik Mehta, Formalising Szemerédi’s Regularity Lemma in Lean][srl_itp]
theorem SimpleGraph.FarFromTriangleFree.congr_simp E1 #
∀ {α : Type u_1} {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] (G G_1 : SimpleGraph α),
G = G_1 →
∀ (ε ε_1 : 𝕜),
ε = ε_1 →
∀ [inst_2 : Fintype α] {inst_3 : DecidableRel G.Adj} [inst_4 : DecidableRel G_1.Adj],
G.FarFromTriangleFree ε = G_1.FarFromTriangleFree ε_1
def SimpleGraph.triangleRemovalBound E1 #
ℝ → ℝ
An explicit form for the constant in the triangle removal lemma.
Note that this depends on SzemerediRegularity.bound, which is a tower-type exponential. This means
triangleRemovalBound is in practice absolutely tiny.
This definition is meant to be used for small values of ε, and in particular is junk for values
of ε greater than or equal to 1. The junk value is chosen to be positive, so that
0 < ε → 0 < triangleRemovalBound ε regardless of whether ε < 1 or not.
theorem SimpleGraph.triangleRemovalBound_pos E1 #
∀ {ε : ℝ}, 0 < ε → 0 < SimpleGraph.triangleRemovalBound ε
theorem SimpleGraph.triangleRemovalBound_nonpos E1 #
∀ {ε : ℝ}, ε ≤ 0 → SimpleGraph.triangleRemovalBound ε ≤ 0
theorem SimpleGraph.triangleRemovalBound_mul_cube_lt E1 #
∀ {ε : ℝ}, 0 < ε → SimpleGraph.triangleRemovalBound ε * ↑⌈4 / ε⌉₊ ^ 3 < 1
theorem SimpleGraph.triangleRemovalBound_le E1 #
∀ {ε : ℝ},
ε ≤ 1 →
SimpleGraph.triangleRemovalBound ε ≤ (1 - ε / 4) * (ε / (16 * ↑(SzemerediRegularity.bound (ε / 8) ⌈4 / ε⌉₊))) ^ 3
theorem SimpleGraph.regularityReduced_edges_card_aux E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] {G : SimpleGraph α} [inst_2 : DecidableRel G.Adj]
{P : Finpartition Finset.univ} {ε : ℝ} [Nonempty α],
0 < ε →
P.IsEquipartition →
P.IsUniform G (ε / 8) →
4 / ε ≤ ↑P.parts.card →
2 * (↑G.edgeFinset.card - ↑(SimpleGraph.regularityReduced P G (ε / 8) (ε / 4)).edgeFinset.card) <
2 * ε * ↑(Fintype.card α ^ 2)
theorem SimpleGraph.FarFromTriangleFree.le_card_cliqueFinset E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] {G : SimpleGraph α} [inst_2 : DecidableRel G.Adj] {ε : ℝ},
G.FarFromTriangleFree ε → SimpleGraph.triangleRemovalBound ε * ↑(Fintype.card α) ^ 3 ≤ ↑(G.cliqueFinset 3).card
Triangle Removal Lemma. If not all triangles can be removed by removing few edges (on the
order of (card α)^2), then there were many triangles to start with (on the order of
(card α)^3).
theorem SimpleGraph.triangle_removal E3 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] {G : SimpleGraph α} [inst_2 : DecidableRel G.Adj] {ε : ℝ},
↑(G.cliqueFinset 3).card < SimpleGraph.triangleRemovalBound ε * ↑(Fintype.card α) ^ 3 →
∃ G' ≤ G, ∃ x, ↑G.edgeFinset.card - ↑G'.edgeFinset.card < ε * ↑(Fintype.card α ^ 2) ∧ G'.CliqueFree 3
Triangle Removal Lemma. If there are not too many triangles (on the order of (card α)^3)
then they can all be removed by removing a few edges (on the order of (card α)^2).
def Mathlib.Meta.Positivity.evalTriangleRemovalBound E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: SimpleGraph.triangleRemovalBound ε is positive
if ε is.
This exploits the positivity of the junk value of triangleRemovalBound ε for ε ≥ 1.