Triangle and four-clique packings and the calibrated split comparator
DefinitionErdos81_triangle_four_clique_packingchordal-graphsclique-partitiongraph-packinggraph-theory
A mixed packing uses triangles and four-vertex cliques. Fractional weights are nonnegative and have total load at most one on each edge. Integral packings are families of these cliques that share at most one vertex per pair. The gain adds two per triangle and five per four-vertex clique. The module also defines the complete split template with a specified core and the bounds on edit distance and core size used in the near case of the sharp chordal theorem.
Definition code
import Definitions.Def_Erdos81_edgePairPartition
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.Order.Field.Rat
namespace Erdos81
variable {V : Type} [Fintype V] [DecidableEq V]
/-- The triangles and four-vertex cliques of a finite simple graph. -/
noncomputable def mixedCliques (G : SimpleGraph V) : Finset (Finset V) := by
classical
exact Finset.univ.powerset.filter fun K => (K.card = 3 ∨ K.card = 4) ∧ IsClique G K
/-- Nonnegative weights with total load at most one on every edge. Only weights
on triangles and four-vertex cliques enter the load and gain. -/
def IsMixedFractionalPacking (G : SimpleGraph V) (weight : Finset V → ℚ) : Prop :=
(∀ K ∈ mixedCliques G, 0 ≤ weight K) ∧
∀ ⦃u v : V⦄, G.Adj u v →
∑ K ∈ (mixedCliques G).filter (fun K => u ∈ K ∧ v ∈ K), weight K ≤ 1
/-- Replacing the edges of a clique with one part saves two parts for a triangle
and five for a four-vertex clique. -/
noncomputable def mixedFractionalGain (G : SimpleGraph V) (weight : Finset V → ℚ) : ℚ :=
∑ K ∈ mixedCliques G, (((K.card.choose 2 : ℚ) - 1) * weight K)
/-- An integral packing consists of triangles and four-vertex cliques sharing
at most one vertex per pair, so each edge is used at most once. -/
def IsMixedIntegralPacking (G : SimpleGraph V) (P : Finset (Finset V)) : Prop :=
P ⊆ mixedCliques G ∧ ∀ K ∈ P, ∀ L ∈ P, K ≠ L → (K ∩ L).card ≤ 1
def mixedIntegralGain (P : Finset (Finset V)) : ℕ :=
∑ K ∈ P, (K.card.choose 2 - 1)
/-- The positive gap parameter in the near/far split of Paper IV. -/
def mixedPackingSlack : ℚ := 1 / 10 ^ 16
/-- The complete split graph having `core` as its clique side. -/
def completeSplitTemplate (core : Finset V) : SimpleGraph V where
Adj u v := u ≠ v ∧ (u ∈ core ∨ v ∈ core)
symm := ⟨fun _ _ h => ⟨h.1.symm, h.2.symm⟩⟩
loopless := ⟨fun _ h => h.1 rfl⟩
/-- The two bounds on distance and core size used by the near-regime
construction in Paper IV. The comparator core belongs to the template. -/
def IsCalibratedSplitComparator {n : ℕ} (G : SimpleGraph (Fin n))
(core : Finset (Fin n)) : Prop :=
let ε : ℚ := 1 / 10 ^ 12
core.Nonempty ∧
((symmDiff (edgePairPartition G) (edgePairPartition (completeSplitTemplate core))).card : ℚ)
≤ ε * (n : ℚ) ^ 2 ∧
(6 * (core.card : ℚ) - 2 * (n : ℚ) - 1) ^ 2 ≤
24 * ((mixedPackingSlack + 6 * ε) * (n : ℚ) ^ 2 + (n : ℚ) / 6 + 1 / 24)
end Erdos81
Source
Juan Pablo Traverso Gianini, Paper IV, Section 3.1 and the near-regime calibration and localization. https://github.com/jtraverso/erdos81-chordal-quantitative-stability/blob/39104cffdbc26ee96eeb9091d9f75bfecf6d540e/PaperIV/FarRounding.lean#L104-L260 and https://github.com/jtraverso/erdos81-chordal-quantitative-stability/blob/39104cffdbc26ee96eeb9091d9f75bfecf6d540e/PaperIV/NearH1Localization.lean#L32-L45