Compactness of Graphon Space #
This file develops compactness of the graphon pseudometric space (total boundedness and completeness), from which compactness of the cut-distance quotient modulo weak isomorphism follows.
Main definitions #
Graphon.WeaklyIsomorphic— Weak isomorphism (cut distance zero)Graphon.mkStepGraphon— Step graphon from partition and coefficientsGraphon.IsCauchy— Cauchy sequence in cut distance
Main results #
Graphon.totallyBounded— Finite ε-net in cut distanceGraphon.complete— Cauchy sequences convergeGraphon.compact— Every sequence has a convergent subsequence
Implementation notes #
The cut-distance quotient modulo weak isomorphism is a compact metric space. Concretely, we prove total boundedness and completeness of the graphon pseudometric space.
The compactness follows from:
- The regularity lemma gives total boundedness
- Completeness follows from a direct limit construction via Radon–Nikodym
References #
- [L. Lovász, Large Networks and Graph Limits][lovasz2012], Section 9.3
Quotient by weak isomorphism #
Two graphons are weakly isomorphic iff their cut distance is zero.
Equations
- U.WeaklyIsomorphic W = (U.cutDistance W = 0)
Instances For
Weak isomorphism is reflexive.
Weak isomorphism is symmetric.
Note: With the two-sided cut distance definition, this no longer requires StandardBorelSpace.
Weak isomorphism is transitive (on standard Borel spaces).
Weak isomorphism is an equivalence relation (on standard Borel spaces).
Note: Only trans still requires StandardBorelSpace and NullSingletonClass (for the triangle
inequality, whose corrected coupling proof needs an atomless space).
Relationship between WeaklyIsomorphic and WeakIso:
WeakIso U W (one-sided pullback relation) implies WeaklyIsomorphic U W (cutDistance = 0).
The converse direction (cutDistance = 0 implies WeakIso in both directions) requires additional structure on the probability space (e.g., standard Borel).
Total boundedness #
Step graphon from explicit coefficients on a partition.
Given a partition P and a symmetric coefficient function c : Set α → Set α → ℝ
valued in [0,1], builds the step graphon constant on each rectangle with value c S T.
Equations
Instances For
(de-privatized 2026-07-07 for the sampling layer)
(de-privatized 2026-07-07 for the sampling layer)
Build a Graphon from explicit coefficients on a partition.
Equations
- Graphon.mkStepGraphon P c hc_symm hc_mem = { toAEEqFun := MeasureTheory.AEEqFun.mk (Graphon.mkStepFun P c) ⋯, symm' := ⋯, ae_mem_Icc := ⋯ }
Instances For
cutNormDiff between step graphons on the same partition with close coefficients is controlled by the coefficient difference.
If two graphons agree a.e. off a "strip" E × univ ∪ univ × E, then their
cut norm difference is at most 2 * (μ E).toReal.
Re-rounding a step graphon to an equipartition. A step graphon on an
arbitrary partition P can be approximated, in cut-norm difference, by a step
graphon on an equal-measure q-cell partition Q, with crude error O(P.card / q).
The q equal cells of Q almost refine P (off a small "bad" set of measure at
most P.card / q), so we reassign each cell of Q the coefficient of its parent
P-cell. The two step graphons then agree off the strip bad × univ ∪ univ × bad,
and cutNormDiff_le_of_ae_agree_off_strip yields the bound 2 * P.card / q.
The space of graphons is totally bounded with respect to cut distance.
For any ε > 0, there exists a finite set of graphons such that every graphon is within ε (in cut distance) of some element of the set.
This follows from the regularity lemma: step graphons with bounded number of parts form an ε-net.
Proof outline:
- Let k = regularityBound(ε/2) be the max number of partition parts
- For any W, regularity gives P_W with ≤ k parts and cutNormDiff ≤ ε/2
- stepify P_W W is a step graphon with coefficients in [0,1]
- Quantize coefficients to grid with spacing δ, giving ε/2 error in cutNormDiff
- Gridpoints on P_W = gridpoints on any other partition up to cutDistance 0 (via measure-preserving map between partitions, needs StandardBorelSpace)
- Triangle: W within ε of nearest gridpoint
Completeness #
A sequence of graphons is Cauchy with respect to cut distance.
Equations
- Graphon.IsCauchy W = ∀ ε > 0, ∃ (N : ℕ), ∀ (m n : ℕ), m ≥ N → n ≥ N → (W m).cutDistance (W n) < ε
Instances For
The space of graphons is complete with respect to cut distance.
Every Cauchy sequence of graphons converges (modulo weak isomorphism).
Proof structure: From the Cauchy sequence, extract a rapidly converging
subsequence (with cutDistance(W_{φ(k+1)}, W_{φ(k)}) ≤ 1/2^k). Apply the
limit construction for rapidly converging sequences. Then show the full Cauchy
sequence converges to the same limit using the triangle inequality.
Depends on: exists_limit_of_rapid_convergence (proved from
exists_aligned_cutNormDiff_limit) and cutDistance_triangle — fully proved.
Compactness #
The space of graphons (modulo weak isomorphism) is compact.
This is the fundamental compactness theorem for graphon theory. It follows from total boundedness (regularity lemma) and completeness.
Structure: This is sequential compactness, equivalent to compactness for metric spaces (which graphon space is, modulo weak isomorphism).
Depends on: totallyBounded, complete, cutDistance_triangle — all fully proved
(Rokhlin campaigns R0–R3).
Step-graphon weight stability (moved from Graphon/InverseCounting.lean) #
Weight stability for step graphons on different partitions with the same
coefficient matrix (moved here from Graphon/InverseCounting.lean, 2026-07-07, and
de-privatized: it is the API boundary for the sampling layer's frequency-term bound).
NOTE: its proof uses MeasurePreserving.exists_controlled_cell_alignment (Rokhlin core,
proved in campaign R2) for partition alignment; fully axiom-clean.