Planar scattering definitions and support in FiniteReturn
DefinitionMarkovScatteringPlanar_FiniteReturnmarkov-scattering
Evolves a finite chain killed at a root and defines its surviving mass before first return.
Definition code
import Mathlib.Tactic.Linarith
import Mathlib.Topology.Algebra.InfiniteSum.ENNReal
import Mathlib.Topology.Instances.ENNReal.Lemmas
import Mathlib.Topology.Order.MonotoneConvergence
/-!
# Occupation of a finite Markov excursion
Start at `r` and discard a path when it next enters `r`. At step zero the path is
still alive. Summing the surviving mass at `x` over time counts its expected visits
before return. Stationarity and accessibility of `r` identify this sum exactly,
without a normalization assumption on the stationary weights.
-/
namespace MarkovScattering.FiniteReturn
open Filter Topology
variable {Ω : Type*} [Fintype Ω] [DecidableEq Ω]
noncomputable section
/-- Evolve a row of masses one step, removing the mass that arrives at the root. -/
def killedStep (P : Ω → Ω → ℝ) (r : Ω) (v : Ω → ℝ) (y : Ω) : ℝ :=
if y = r then 0 else ∑ x, v x * P x y
def evolve (P : Ω → Ω → ℝ) (r : Ω) (initial : Ω → ℝ) : ℕ → Ω → ℝ
| 0 => initial
| n + 1 => killedStep P r (evolve P r initial n)
/-- Probability of being at `y` after `n` steps without a positive-time return. -/
def beforeReturn (P : Ω → Ω → ℝ) (r : Ω) :=
evolve P r (fun x => if x = r then 1 else 0)
theorem evolve_nonneg {P : Ω → Ω → ℝ} (hP : ∀ x y, 0 ≤ P x y)
(r : Ω) {u : Ω → ℝ} (hu : ∀ x, 0 ≤ u x) (n : ℕ) (y : Ω) :
0 ≤ evolve P r u n y := by
induction n generalizing y with
| zero => exact hu y
| succ n ih =>
simp only [evolve, killedStep]
split
· exact le_rfl
· exact Finset.sum_nonneg fun x _ => mul_nonneg (ih x) (hP x y)
theorem beforeReturn_nonneg {P : Ω → Ω → ℝ} (hP : ∀ x y, 0 ≤ P x y)
(r : Ω) (n : ℕ) (y : Ω) : 0 ≤ beforeReturn P r n y :=
evolve_nonneg hP r (by intro x; split <;> norm_num) n y
omit [DecidableEq Ω] in
theorem sum_push (P : Ω → Ω → ℝ) (hrow : ∀ x, ∑ y, P x y = 1) (v : Ω → ℝ) :
(∑ y, ∑ x, v x * P x y) = ∑ x, v x := by
rw [Finset.sum_comm]
simp_rw [← Finset.mul_sum, hrow, mul_one]
end
end MarkovScattering.FiniteReturn
Source