Skip to the content.

A Lean 4 formalization of graphons — the theory of limits of dense graph sequences — building on Mathlib.

Main Results

Scope

The formalization covers:

Proof Status

Three remaining sorry declarations, driven by two main missing mathematical inputs: a Rokhlin-style alignment theorem and the positive-weight algebraic determination core. No custom axioms are introduced; these are sorrys that will be replaced with proofs.

Pending result sorry location Used by Progress
Rokhlin’s theorem (isomorphism of standard Borel probability spaces) exists_common_extension Cut distance triangle inequality, partition alignment, compactness Mathlib has PolishSpace.measurableEquiv but not the measure-preserving version; proving this is in progress
Algebraic determination (Lovász Theorem 5.30, k≥2) matrix_quotient_of_weightedHomSum_eq (positive-weight case) Inverse counting lemma core The k=1 case is fully proved; the k≥2 case requires graph algebra separation arguments that are partially built
Determination pending theorem (depends on the above two) cutDistance_zero_of_homDensity_eq Convergence equivalence Proved modulo Rokhlin + algebraic determination

All other declarations contain no additional sorrys.

Components

File Status Contents
Graphon/Basic.lean Core Graphon definition, symmetry, boundedness, AE equivalence
Graphon/Pullback.lean Core Pullback under measure-preserving maps
Graphon/Step.lean Core Measurable partitions, step functions, stepification
Graphon/HomDensity.lean Core Homomorphism density definition and basic properties
Graphon/CutNorm.lean Core Cut norm, graphon integrability
Graphon/Approximation.lean Core Rectangle averages, cut norm approximation, partition splitting
Graphon/CutDistance.lean Core Cut distance, pseudometric properties, Rokhlin interface
Graphon/Regularity.lean Core Energy, energy increment, Frieze–Kannan weak regularity lemma
Graphon/Counting.lean Core Homomorphism density, counting lemma
Graphon/Compactness.lean Core Total boundedness, completeness, limit construction
Graphon/MatrixDetermination.lean Core Algebraic determination of step graphons
Graphon/InverseCounting.lean Core Inverse counting lemma, convergence equivalence
Graphon/Convergence.lean Core Top-level convergence characterization
Graphon/Operations.lean Experimental Pointwise product
Graphon/Operator.lean Experimental Kernel operator (pointwise definition)
Graphon/Sampling.lean Experimental Expected edge density

Resources

References