The explicit infinite sampler for a fixed graphon (issue #51, sources + sampler) #
Reusable i.i.d. product sources via Measure.infinitePi, and the explicit measurable
sampler from those sources to the infinite graph space:
InfiniteGraph.vertexSource— i.i.d. vertex positionsℕ → αwith lawμ;InfiniteGraph.edgeSource— i.i.d. edge uniforms on[0,1], indexed byEdgeIndex;InfiniteGraph.clampedRep W— the everywhere-[0,1]-valued clamped representative of the graphon (a.e. equal to it);InfiniteGraph.sampleInfinite W— one uniform per unordered edge, compared against the clamped graphon value at theQuot.out-representative endpoint positions (matchingsampleIntegrand's orientation): measurable in the sources.InfiniteGraph.map_sampleInfinite_restrictFin— the finite marginal identification: the sampler's level-klaw is exactlysamplePMF W k(upper-event route:F ≤ Gneeds only the edges ofF, so conditional edge integration produces the plainW-product;upperSum_injectivecloses);InfiniteGraph.map_sampleInfinite— the explicit realization theorem: the sampler's law isinfiniteLaw (sampleExchangeableLaw W)(A2 uniqueness), with relabeling invariance (map_sampleInfinite_relabel) and the canonical-class form (map_sampleInfinite_eq_infiniteSampleLaw_mk) as corollaries.
The uniform distribution on [0,1].
Equations
Instances For
The vertex source: i.i.d. positions ℕ → α with law μ.
Equations
- InfiniteGraph.vertexSource μ = MeasureTheory.Measure.infinitePi fun (x : ℕ) => μ
Instances For
The edge source: i.i.d. uniforms on [0,1], one per unordered edge.
Equations
Instances For
The sampler source: independent vertex positions and edge uniforms.
Equations
Instances For
The clamped [0,1]-valued representative of a graphon: an everywhere-valid edge
probability (the graphon is only a.e. [0,1]-valued; clamping isolates the eventual
a.e.-congruence argument).
Equations
- InfiniteGraph.clampedRep W p = min 1 (max 0 (↑W.toAEEqFun p))
Instances For
The clamped representative agrees with the graphon almost everywhere.
The explicit infinite sampler: include the edge e exactly when its uniform
falls below the clamped graphon value at the Quot.out-representative endpoint
positions (matching the orientation convention of sampleIntegrand, which eliminates
the a.e.-symmetry orientation juggling in the marginal identification).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The edge coordinates of a sample, unfolded.
The sampler is measurable in the sources: each edge coordinate is a measurable comparison.
The finite marginal identification (issue #51, brick 2) #
restrictFin k ∘ sampleInfinite W pushes the sampler source forward to exactly the
finite sample law samplePMF W k, and hence sampleInfinite W realizes the infinite
exchangeable law of sampleExchangeableLaw W. Route: reduce singleton masses to upper
events {G | F ≤ G} via Möbius inversion (upperSum_injective); the upper event is a
finite cylinder over the (injectively indexed) edge uniforms, whose vertex-conditional
probability is the clamped edge product; integrating out the positions gives
homDensity F W, which is also the upper transform of sampleMass W.
The joint law of the first k vertex positions is the finite i.i.d. product.
The finite marginal identification (issue #51, brick 2): the law of the first-
k-vertices restriction of the sampled infinite graph is exactly the finite sample law
samplePMF W k.
The sampler realizes the infinite exchangeable law (issue #51): the pushforward
of the sampler source under sampleInfinite W is the (A2-unique) infinite law of the
sample exchangeable law of W.
Exchangeability of the sampler's law: free from map_sampleInfinite, since the
infinite law is invariant under every relabeling of ℕ.
The canonical-class form of the realization theorem: the sampler's law is the
canonical infinite law of the graphon class of W.