The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.Regularity.Energy
4 declarations. Mathlib docs · Source
Energy of a partition
This file defines the energy of a partition.
The energy is the auxiliary quantity that drives the induction process in the proof of Szemerédi's Regularity Lemma. As long as we do not have a suitable equipartition, we will find a new one that has an energy greater than the previous one plus some fixed constant.
References
[Yaël Dillies, Bhavik Mehta, Formalising Szemerédi’s Regularity Lemma in Lean][srl_itp]
def Finpartition.energy E1 #
{α : Type u_1} →
[inst : DecidableEq α] → {s : Finset α} → Finpartition s → (G : SimpleGraph α) → [DecidableRel G.Adj] → ℚ
The energy of a partition, also known as index. Auxiliary quantity for Szemerédi's regularity lemma.
theorem Finpartition.energy_nonneg E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {s : Finset α} (P : Finpartition s) (G : SimpleGraph α)
[inst_1 : DecidableRel G.Adj], 0 ≤ P.energy G
theorem Finpartition.energy_le_one E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {s : Finset α} (P : Finpartition s) (G : SimpleGraph α)
[inst_1 : DecidableRel G.Adj], P.energy G ≤ 1
theorem Finpartition.coe_energy E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {s : Finset α} (P : Finpartition s) (G : SimpleGraph α)
[inst_1 : DecidableRel G.Adj] {𝕜 : Type u_2} [inst_2 : Field 𝕜] [inst_3 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜],
↑(P.energy G) = (∑ uv ∈ P.parts.offDiag, ↑(G.edgeDensity uv.1 uv.2) ^ 2) / ↑P.parts.card ^ 2