Graphons in Lean 4 #
A formalization of graphons — the theory of limits of dense graph sequences — in Lean 4 using Mathlib.
Stable core #
Graphon.Basic— Graphon definition, symmetry, boundednessGraphon.Pullback— Pullback under measure-preserving mapsGraphon.Step— Measurable partitions, step functionsGraphon.HomDensity— Homomorphism density definitionGraphon.CutNorm— Cut norm, graphon integrabilityGraphon.Approximation— Rectangle averages, cut norm approximationGraphon.CutDistance— Cut distance, pseudometric propertiesGraphon.Regularity— Energy increment, Frieze–Kannan weak regularity lemmaGraphon.Counting— Homomorphism density, counting lemmaGraphon.Compactness— Total boundedness, completenessGraphon.MatrixDetermination— Algebraic determination of step graphonsGraphon.InverseCounting— Inverse counting lemma, convergence equivalenceGraphon.Convergence— Top-level convergence characterization
Experimental #
Graphon.Operations— Pointwise product (direct sum and operator product are future work)Graphon.Operator— Kernel operator pointwise definition (full L² API is future work)Graphon.Sampling— Expected edge density (concentration bounds are future work)