Documentation

Graphon.Step

Step Graphons #

Step graphons are graphons that are piecewise constant on a finite measurable partition of the probability space. They form a dense subset of the space of graphons (in cut distance) and provide the key bridge between finite graphs and graphons.

Main definitions #

Main results #

Implementation notes #

The graphon ofSimpleGraph G for a simple graph G on n vertices is defined on the unit interval by partitioning [0,1] into n equal parts and setting W(x,y) = 1 if the parts containing x and y are adjacent in G, and 0 otherwise.

References #

Measurable partitions #

structure MeasurablePartition (α : Type u_2) [MeasurableSpace α] (μ : MeasureTheory.Measure α) :
Type u_2

A finite measurable partition of a measure space.

This is a finite collection of pairwise disjoint measurable sets that cover the space almost everywhere. Used to define step graphons.

Instances For

    The number of parts in the partition.

    Equations
    Instances For

      A part of the partition is measurable.

      The sum of measures of partition parts is at most 1.

      Since parts are pairwise disjoint, Σ μ(S) = μ(⋃ S) ≤ μ(univ) = 1.

      Graphon from simple graph #

      The trivial partition with just {univ} as the only part.

      Equations
      Instances For
        def Graphon.adjIndicator {n : } (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (i j : Fin n) :

        The indicator function for adjacency in a simple graph, as a real number.

        Returns 1 if vertices i and j are adjacent, 0 otherwise.

        Equations
        Instances For
          theorem Graphon.adjIndicator_symm {n : } [NeZero n] (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (i j : Fin n) :

          The adjIndicator is symmetric since adjacency is symmetric.

          theorem Graphon.adjIndicator_mem_Icc {n : } [NeZero n] (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (i j : Fin n) :

          The adjIndicator takes values in [0,1].

          theorem Graphon.adjIndicator_eq_zero_or_one {n : } [NeZero n] (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (i j : Fin n) :
          adjIndicator G i j = 0 adjIndicator G i j = 1

          The adjIndicator is 0 or 1.

          noncomputable def Graphon.toVertex (n : ) [NeZero n] (x : unitInterval) :
          Fin n

          Map a point in the unit interval to its corresponding vertex in Fin n.

          For x ∈ [0,1], returns ⌊n * x⌋ clamped to Fin n. This maps the interval [k/n, (k+1)/n) to vertex k.

          Equations
          Instances For
            theorem Graphon.measurable_minFloor_nat {n : } [NeZero n] :
            Measurable fun (x : ) => min (n - 1) n * x⌋₊

            The function x ↦ min (n-1) ⌊n*x⌋₊ as a function ℝ → ℕ is measurable.

            theorem Graphon.measurable_minFloor {n : } [NeZero n] :
            Measurable fun (x : ) => (min (n - 1) n * x⌋₊)

            The function x ↦ min (n-1) ⌊n*x⌋₊ is measurable as a real-valued function.

            The toVertex function is measurable.

            The function mapping pairs to adjacency indicators is measurable.

            The function mapping pairs to adjacency indicators is strongly measurable.

            noncomputable def Graphon.ofSimpleGraph {n : } [NeZero n] (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] :

            The graphon associated to a simple graph on Fin n.

            Given a simple graph G on n vertices, we construct a graphon on [0,1] by:

            1. Partitioning [0,1] into n equal intervals
            2. Setting W(x,y) = 1 if the vertices corresponding to x and y are adjacent
            3. Setting W(x,y) = 0 otherwise

            This is the fundamental bridge between finite graphs and graphons. The homomorphism density t(F, W_G) equals hom(F, G) / n^|V(F)|.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              The graphon of a simple graph at a point equals the adjacency indicator (a.e.).

              The graphon of the empty graph is zero almost everywhere.

              The graphon of the complete graph equals 1 off the diagonal.

              Note: On the diagonal (where toVertex n p.1 = toVertex n p.2), the value is 0 because simple graphs have no self-loops.