Inverse Counting Lemma #
This file proves the inverse counting lemma: if two graphons have similar homomorphism densities for all graphs, then they are close in cut distance.
Main results #
Graphon.cutDistance_zero_of_homDensity_eq- Equal hom densities ⟹ cutDistance = 0Graphon.cutDistance_le_of_homDensity_close- The quantitative inverse counting lemma
Implementation notes #
The counting lemma (in Counting.lean) shows:
small cut distance ⟹ similar homomorphism densities
The inverse counting lemma shows the converse: similar homomorphism densities ⟹ small cut distance
Together, these establish that cut distance convergence is equivalent to convergence of all homomorphism densities.
The proof uses:
- Algebraic determination for step graphons (
MatrixDetermination.lean) - Partition alignment via Rokhlin's theorem (
CutDistance.lean) - Regularity lemma for step approximation
- Compactness of graphon space
References #
- [L. Lovász, Large Networks and Graph Limits][lovasz2012], Section 10.6
Step graphon inverse counting #
The algebraic core: step graphons on the same partition with equal hom densities
for all graphs have cut distance zero. This connects the measure-theoretic
homDensity to the finite weightedHomSum and uses matrix_quotient_of_weightedHomSum_eq
(the algebraic determination axiom) plus partition alignment (Rokhlin).
Main inverse counting lemma #
Algebraic determination: two graphons with equal homomorphism densities for all finite graphs have cut distance zero (are weakly isomorphic).
The proof combines simultaneous_regularity (which gives a cardinality bound
K = 4 ^ (2 * (⌈1/δ²⌉ + 1))) with step_quantitative_icl_bounded K (ε/3)
(uniform compactness over all partitions with ≤ K parts) and the counting lemma.
For any ε > 0:
- Apply
step_quantitative_icl_bounded K (ε/3)to get (δ_step, m) uniform over all partitions with ≤ K parts - Choose δ so that (a) δ ≤ ε/3 and (b) the counting lemma converts cutNormDiff ≤ δ into hom density differences < δ_step for all graphs on ≤ m vertices
- Apply
simultaneous_regularity U W δto get partition P with P.parts.card ≤ K, cutNormDiff U (stepify P U) ≤ δ, cutNormDiff W (stepify P W) ≤ δ - By the counting lemma (step 2b), step graphons on P satisfy the δ_step condition,
so
step_quantitative_icl_boundedgives cutDistance(stepify P U, stepify P W) < ε/3 - Triangle inequality: cutDistance(U, W) ≤ cutNormDiff(U, stepify P U) + cutDistance(stepify P U, stepify P W) + cutNormDiff(W, stepify P W) < ε
The key insight is that step_quantitative_icl_bounded eliminates the circular
dependency: δ_step and m depend only on K and ε, not on the specific partition P.
The cardinality bound K from simultaneous_regularity depends only on the
regularity parameter δ, which is chosen AFTER obtaining (δ_step, m).
Sorry traces to: step_quantitative_icl_bounded (compactness over bounded partitions)
→ step_quantitative_icl → cutDistance_zero_of_step_homDensity_eq
→ matrix_quotient_of_weightedHomSum_eq (algebraic core) +
MeasurePreserving.exists_common_extension (Rokhlin).
The inverse counting lemma: similar homomorphism densities imply small cut distance.
For any ε > 0, there exists δ > 0 and a finite set of graphs F₁,...,Fₖ such that if |t(Fᵢ, U) - t(Fᵢ, W)| < δ for all i, then δ□(U, W) < ε.
Corollary: a sequence converges in cut distance iff all homomorphism densities converge.
This is the fundamental characterization of graph limit convergence.
Uniqueness of limits #
If a sequence converges to two limits, they are weakly isomorphic.
Homomorphism densities determine the graphon up to weak isomorphism.