The explicit mean-field map is the mean-field map
ProvedMarkovEntanglement.meanFieldMap_isMeanFieldMapFix local kernels on a finite local state space , a priority index , a system size and a budget .
The explicit mean-field map on the simplex,
taken at the activation fraction , satisfies the characterisation of the mean-field map of the -agent system: for every joint state and every local state ,
where is the configuration of and is the probability with which the index policy activates agent .
The two descriptions therefore agree on every configuration an -agent system can actually occupy. This is what licenses proving the asymptotic theorems about the explicit formula, which is defined on the whole simplex, rather than about the characterisation, which pins the map down only on the -lattice.
The proof is a regrouping of the sum over agents into a sum over local states — the agents in a given state are exchangeable, so only their number matters — together with the observation that truncated natural subtraction in the count of activated agents is exactly the of the continuum formula.
import Mathlib import Definitions.Def_markov_entanglement_meanfield open scoped BigOperators open MarkovEntanglement
namespace MarkovEntanglement
variable {S : Type*} [Fintype S] [DecidableEq S]
/-- The explicit mean-field map on the simplex agrees, on every configuration an `N`-agent
system can actually occupy, with the characterisation `IsMeanFieldMap` of the previous layer,
provided the activated fraction is `α = M / N`. This is what licenses proving the asymptotic
theorems about the explicit formula. -/
theorem meanFieldMap_isMeanFieldMap
(P0 P1 : Matrix S S ℝ) (ν : S → ℝ) (N M : ℕ) (hN : 0 < N) :
IsMeanFieldMap (N := N) P0 P1 ν M
(meanFieldMap P0 P1 ν ((M : ℝ) / (N : ℝ))) := by
sorry
/-! ### M2 — Lemma 7, the mean-field map is piecewise affine -/
end MarkovEntanglementRead-back
What the Lean code literally says, in plain math · claude-opus-5
For every finite type with decidable equality, every pair of matrices (arbitrary real matrices — no nonnegativity, no row sums equal to , no stochasticity of any kind is assumed), every function (arbitrary — ties are permitted), and every pair of natural numbers subject only to the hypothesis (in particular is unconstrained: is allowed, and is allowed), the following identity holds. Write, for a state assignment and ,
- , the number of coordinates in state , and (real division, well defined since );
- , a natural number, the total count of coordinates sitting in states of strictly higher -value than ;
- , where is truncated natural-number subtraction, so whenever ;
- if , and if ;
and, for a real-valued function (not required to be a probability vector) and the specific scalar (real division of the two given naturals; not required to lie in ),
- ;
- ;
- .
The assertion is that for every and every ,
Note that the left-hand side sums over states using the continuum quantities , , applied to the empirical configuration , while the right-hand side sums over the coordinates using the integer-arithmetic quantities , , built from counts and truncated subtraction; the claim is that these two expressions agree exactly, as real numbers, for all such and . No hypothesis constrains to be injective, constrains , or asserts any non-degeneracy; the only hypothesis besides the type-class assumptions on is . Degenerate cases silently included: (then , , and , so when ); (then ); states never visited by , for which and is defined to be by the guard rather than by division; and the case where is empty, in which — since forces the type of maps to be empty — the universally quantified statement is vacuously satisfied.
Confirmed by the mission captain (proposal self-audit).