Exchangeable directed-graph laws: the PMF-based finite API (directed umbrella #84, D2 / #86) #
The directed specialization of the generic exchangeable-law theory (R2, issue #105). Because
digraphSig has finitely many relation symbols, a finite directed law over Fin k is a
genuine probability mass function PMF (Digraph (Fin k)) — the conventional
combinatorial object — rather than a ProbabilityMeasure on the (uncountable) relational
carrier. This file provides that user-facing PMF-based API and bridges it to the measure-side
RelExchangeableLaw digraphSig, then composes with the R2c equivalence to obtain the headline
finite/infinite directed equivalence.
finiteDigraphEquiv_restrict/finiteDigraphEquiv_symm_restrict— the finite carrier equivalence commutes with restriction:Digraph.comapon the combinatorial side matchesRelStructure.restricton the relational side (viadigraphStructureEquiv_comap);ExchangeableDigraphLaw— thePMF-based finite directed law: aPMF (Digraph (Fin k))for eachk, consistent underDigraph.comapalong everyFin k ↪ Fin l;digraphLawEquiv— the finite bridgeExchangeableDigraphLaw ≃ RelExchangeableLaw digraphSig, transporting viafiniteDigraphEquivand thePMF.toMeasure/Measure.toPMFcorrespondence;InfiniteExchangeableDigraphLaw— the infinite directed law (a relabelling-invariant law on the infinite digraph spaceInfiniteDigraph, where the measurable structure lives);exchangeableDigraphLawEquiv— the headline directed equivalenceExchangeableDigraphLaw ≃ InfiniteExchangeableDigraphLaw, the composite of the finite bridge with the R2c relational equivalence.
The measurable / topological structure is used only on the relational carrier
(InfiniteDigraph / FiniteDigraph); Mathlib's Digraph carries no measurable-space instance.
The finite PMF ↔ ProbabilityMeasure conversions are localized to the bridge maps.
The finite carrier equivalence commutes with restriction #
The carrier equivalence commutes with comap: pulling a relational structure back along a
constant sortwise map and then reading it as a digraph is the same as reading it as a digraph and
pulling that back. The directed analogue of SimpleGraph.comap naturality.
Restriction commutes with the finite carrier equivalence (forward form): reading a digraph
off a relational structure and then Digraph.comap-ping is the same as RelStructure.restrict-ing
and then reading it off.
Restriction commutes with the finite carrier equivalence (inverse form): the shape needed
to transport PMF-marginals along finiteDigraphEquiv.symm.
The PMF-based finite directed law #
An exchangeable directed-graph law, presented by its consistent finite marginals: a
PMF (Digraph (Fin k)) for every k, consistent under Digraph.comap along every injection of
labels. The directed analogue of Graphon.ExchangeableGraphLaw; the marginals are PMFs because
digraphSig is a finite signature.
The
k-vertex directed-graph marginal.- consistent {k l : ℕ} (e : Fin k ↪ Fin l) : PMF.map (fun (G : Digraph (Fin l)) => Digraph.comap (⇑e) G) (self.law l) = self.law k
Consistency under
Digraph.comapalong every injection of labels.
Instances For
The measure-side marginals of a PMF-based directed law: transport each PMF (Digraph (Fin k))
across finiteDigraphEquiv.symm and read it as a probability measure on the relational carrier.
Equations
Instances For
The PMF-marginals of a measure-side directed law: read each relational marginal as a PMF
(Measure.toPMF, the carrier is finite) and transport it across finiteDigraphEquiv.
Equations
Instances For
The finite directed bridge: PMF-based exchangeable directed-graph laws are the same data
as measure-side exchangeable relational laws over digraphSig, with finiteDigraphEquiv and the
PMF ↔ ProbabilityMeasure correspondence as inverse transports.
Equations
- digraphLawEquiv = { toFun := ExchangeableDigraphLaw.toRel, invFun := RelSignature.RelExchangeableLaw.toDigraph, left_inv := digraphLawEquiv._proof_1, right_inv := digraphLawEquiv._proof_2 }
Instances For
The infinite directed law and the headline equivalence #
An infinite exchangeable directed-graph law: a probability law on the infinite digraph
space InfiniteDigraph invariant under every relabelling of ℕ. The measurable structure lives
on the relational carrier, so this is the digraphSig specialization of
InfiniteRelExchangeableLaw.
Instances For
The directed finite/infinite exchangeable-law equivalence: PMF-based exchangeable
directed-graph laws are the same data as relabelling-invariant laws on the infinite digraph
space — the finite bridge digraphLawEquiv composed with the R2c relational equivalence
relExchangeableLawEquiv. (This is the projective-law equivalence; the directed representation
theorem — a mixture over digraphons — is later, D3/D4.)
Instances For
The infinite directed law realizes the finite PMF-marginals: restricting the infinite
law to the first k vertices, reading it as a probability mass function (Measure.toPMF, the
finite carrier is countable) and transporting it across finiteDigraphEquiv recovers D.law k —
the genuine PMF (Digraph (Fin k)), with no measurable structure placed on Digraph.