Documentation

LeanPool.RlTheoryInLean

RL Theory in Lean #

Source: arxiv:2511.03618 Authors: Shangtong Zhang Status: verified Main declarations: StochasticMatrix.stationary_distribution_exists Tags: probability, reinforcement-learning, stochastic-matrices MSC: 62L20, 60J10

Provenance #

Imported from https://github.com/ShangtongZhang/rl-theory-in-lean (MIT-licensed upstream; relicensed into Lean Pool under Apache 2.0 with the upstream author's copyright preserved). Accompanies the paper Towards Formalizing Reinforcement Learning Theory (arXiv:2511.03618). Ported from Lean v4.28.0-rc1 to Lean Pool's v4.30.0-rc2. This Lean Pool import keeps the warning-clean core infrastructure.

Mathematical overview #

The project mirrors Mathlib's directory layout and develops stochastic row-stochastic matrices, Doeblin minorization and geometric mixing for finite chains, finite Markov-chain kernels and trajectory measures, measure/kernel helper lemmas, and discrete Gronwall inequalities used in stochastic approximation.

def Stationary {S : Type u} [Fintype S] (μ : S → ℝ) (P : Matrix S S ℝ) :

Alias of StochasticMatrix.Stationary.

Equations
Instances For
    def cesaroAverage {S : Type u} [Fintype S] [DecidableEq S] (x₀ : S → ℝ) (P : Matrix S S ℝ) (n : ℕ) :
    S → ℝ

    Alias of StochasticMatrix.cesaroAverage.

    Equations
    Instances For
      theorem chapman_kolmogorov_eq_ge {S : Type u} [Fintype S] [DecidableEq S] (P : Matrix S S ℝ) [StochasticMatrix.RowStochastic P] (m n : ℕ) (i j k : S) :
      (P ^ (m + n)) i j ≥ (P ^ m) i k * (P ^ n) k j

      Alias of StochasticMatrix.chapman_kolmogorov_eq_ge.

      def returnTimes {S : Type u} [Fintype S] [DecidableEq S] (P : Matrix S S ℝ) (i : S) :

      Alias of StochasticMatrix.returnTimes.

      Equations
      Instances For
        theorem sum_svec_mul_smat_eq_one {S : Type u} [Fintype S] (μ : S → ℝ) [StochasticMatrix.StochasticVec μ] (P : Matrix S S ℝ) [StochasticMatrix.RowStochastic P] :
        ∑ i : S, ∑ j : S, μ i * P i j = 1

        Alias of StochasticMatrix.sum_svec_mul_smat_eq_one.

        theorem ContinuousLinearMap.condExp_comp {Ω : Type u_1} {α : Type u_2} {β : Type u_3} [MeasurableSpace α] [NormedAddCommGroup α] [NormedSpace ℝ α] [CompleteSpace α] [BorelSpace α] [NormedAddCommGroup β] [NormedSpace ℝ β] [CompleteSpace β] [MeasurableSpace β] [SecondCountableTopology β] [BorelSpace β] {m m₀ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (hm : m ≤ m₀) [MeasureTheory.SigmaFinite (μ.trim hm)] {f : Ω → α} (hf : MeasureTheory.Integrable f μ) (L : α →L[ℝ] β) :
        μ[⇑L ∘ f | m] =ᵐ[μ] ⇑L ∘ μ[f | m]

        Alias of MeasureTheory.ContinuousLinearMap.condExp_comp.

        theorem Integrable.finset_sum {α : Type u_2} {ι : Type u_3} {m : MeasurableSpace α} {μ : MeasureTheory.Measure α} [MeasureTheory.IsFiniteMeasure μ] {s : Finset ι} {f : ι → α → ℝ} (hf : ∀ i ∈ s, MeasureTheory.Integrable (f i) μ) :
        MeasureTheory.Integrable (fun (ω : α) => ∑ i ∈ s, f i ω) μ

        Alias of MeasureTheory.Integrable.finset_sum.

        theorem EventuallyEq.finset_sum {α : Type u_1} {ι : Type u_2} {β : Type u_3} [AddCommGroup β] {l : Filter α} {s : Finset ι} {f g : ι → α → β} (hfg : ∀ i ∈ s, f i =ᶠ[l] g i) :
        ∑ i ∈ s, f i =ᶠ[l] ∑ i ∈ s, g i

        Alias of Filter.EventuallyEq.finset_sum.