Proposition 9.1 -- existence and uniqueness of harmonic extensions
ProvedMarkovMixing.harmonic_extensionLet be an irreducible Markov chain on a finite state space . A function is harmonic at when it satisfies the mean-value property . Fix a nonempty set of states and boundary data , write for the first time the chain visits , and let denote the probability that the chain started at first enters at the state . Define the harmonic extension of as its expected boundary value at the first visit,
The theorem (Proposition 9.1 of Levin–Peres–Wilmer) asserts:
- agrees with on ;
- is harmonic at every state outside ;
- is the unique such function: any that agrees with on and is harmonic off equals everywhere.
This is the discrete Dirichlet problem: boundary data on extends in exactly one way to a function harmonic off , and the extension is probabilistic. Voltages in the electrical dictionary are exactly such extensions.
import Definitions.Def_mm_network
namespace MarkovMixing
/-- **Proposition 9.1** (LPW): for an irreducible chain and a nonempty set
`B` of states with boundary data `f`, the function
`h(x) = E_x f(X_{τ_B}) = ∑_{y ∈ B} f(y) P_x{X_{τ_B} = y}` is the unique
extension of `f` that agrees with `f` on `B` and is harmonic off `B`. -/
theorem harmonic_extension {V : Type*} [Fintype V] [DecidableEq V]
(P : Matrix V V ℝ) (hP : IsStochastic P) (hirr : Irreducible P)
(B : Finset V) (hB : B.Nonempty) (f : V → ℝ) :
(∀ x ∈ B, (∑ y ∈ B, f y * firstHitAtProb P x B y) = f x) ∧
HarmonicOn P (fun x => ∑ y ∈ B, f y * firstHitAtProb P x B y)
{x : V | x ∉ B} ∧
∀ g : V → ℝ, (∀ x ∈ B, g x = f x) → HarmonicOn P g {x : V | x ∉ B} →
g = fun x => ∑ y ∈ B, f y * firstHitAtProb P x B y := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: harmonic_extension
Let be a finite type with decidable equality, and let be a real matrix assumed stochastic ( for all , and for every ) and irreducible in the bundle's sense: for all there exists some (with allowed, in which case is the identity matrix) such that the entry of is strictly positive. Let be a nonempty finite subset of (which forces nonempty), and let be a completely arbitrary function. Define the candidate extension by
where (the bundle's firstHitAtProb) unfolds as follows: it is Lean's tsum over all — equal to the limit when the series is summable and defined as when it is not — of the total weight over paths satisfying , for every index (the constraint covers the start but not the final index), and . Since here ranges over , for this is the summed weight over all lengths of walks that stay outside strictly before their final step and first enter at ; for only the length- path can satisfy the constraints (any longer path violates ), so is if and otherwise, making definitionally forced on . The theorem asserts, for every such , , , the conjunction of three claims:
-
Boundary agreement: for every , — i.e. on (by the degenerate-case analysis above this conjunct's content reduces to the length- path bookkeeping).
-
Harmonicity off : is harmonic on the complement of , meaning for every with ,
the sum running over all of . (If this conjunct is vacuous.)
- Uniqueness: for every function , if for all and is harmonic on in the same sense ( for every ), then equals as a function on all of , i.e. for every .
Note that is quantified over all real-valued functions on (its values off are irrelevant to but unconstrained), and no aperiodicity or reversibility is assumed.
Confirmed by the mission captain (proposal self-audit).