Skip to content
Rainbow docs menu

Reference · Finite types, distributions and Markov chains

rainbow.math.finite.bellman

Finite types, distributions and Markov chainssrc/rainbow/math/finite/bellman.clj8 definitions, 7 theorems

Exact scaled finite transition rows and fixed-policy Bellman numerators.

markov/row-total

DefinitionSource, line 56

markov/row-total.{u} :
  (A : Type u) (source : Finset A) (transition : A → A → ℕ) (state : A)
  → ℕ

Finset = finset-data/Finsetℕ = data/Nat

markov/rows-normalized-at

DefinitionSource, line 74

markov/rows-normalized-at.{u} :
  (A : Type u) (scale : ℕ) (source : Finset A) (transition : A → A → ℕ)
  → Prop

Finset = finset-data/Finsetℕ = data/Nat

bellman/output-scale

DefinitionSource, line 92

bellman/output-scale :
  (x₁ : ℕ)
  → ℕ

ℕ = data/Nat

bellman/fixed-policy-numerator

DefinitionSource, line 103

bellman/fixed-policy-numerator.{u} :
  (A : Type u) (scale : ℕ) (source : Finset A) (transition : A → A → ℕ) (reward : A → ℕ)
  (discount : ℕ) (value : A → ℕ) (x₁ : A)
  → ℕ

Finset = finset-data/Finsetℕ = data/Nat

or-example/two-state-space

DefinitionSource, line 129

or-example/two-state-space :
  → Finset ℕ

Finset = finset-data/Finsetℕ = data/Nat

or-example/uniform-mass

DefinitionSource, line 137

or-example/uniform-mass :
  (x₁ : ℕ)
  → ℕ

ℕ = data/Nat

or-example/uniform-transition

DefinitionSource, line 145

or-example/uniform-transition :
  (x₁ x₂ : ℕ)
  → ℕ

ℕ = data/Nat

or-example/identity-value

DefinitionSource, line 153

or-example/identity-value :
  (x₁ : ℕ)
  → ℕ

ℕ = data/Nat

probability/two-state-uniform-normalized

TheoremWorked exampleNo axiomsSource, line 161

probability/two-state-uniform-normalized :
  → probability/normalized-at ℕ 2 ahof-d2/grid or-example/uniform-mass

ℕ = data/Nat

probability/two-state-identity-expectation

TheoremWorked exampleNo axiomsSource, line 177

probability/two-state-identity-expectation :
  → probability/expectation-numerator ℕ ahof-d2/grid or-example/uniform-mass audit-ex/outcomes = 1

= = equality/Eqℕ = data/Nat

markov/two-state-rows-normalized

TheoremWorked exampleNo axiomsSource, line 185

markov/two-state-rows-normalized :
  → markov/rows-normalized-at ℕ 2 ahof-d2/grid or-example/uniform-transition

ℕ = data/Nat

bellman/two-state-state-one-result

TheoremWorked exampleNo axiomsSource, line 204

bellman/two-state-state-one-result :
  → bellman/fixed-policy-numerator ℕ 2 ahof-d2/grid or-example/uniform-transition audit-ex/outcomes 1 audit-ex/outcomes 1 = 5

= = equality/Eqℕ = data/Nat

bellman/zero-data

TheoremFor all inputsNo axiomsSource, line 219

bellman/zero-data.{u} :
  (A : Type u) (scale : ℕ) (source : Finset A) (transition : A → A → ℕ) (discount : ℕ)
  (state : A)
  → bellman/fixed-policy-numerator A scale source transition (fun x₇ => 0) discount (fun x₈ => 0) state = 0

= = equality/EqFinset = finset-data/Finsetℕ = data/Nat

bellman/zero-discount

TheoremFor all inputsNo axiomsSource, line 256

bellman/zero-discount.{u} :
  (A : Type u) (scale : ℕ) (source : Finset A) (transition : A → A → ℕ)
  (reward value : A → ℕ) (state : A)
  → bellman/fixed-policy-numerator A scale source transition reward 0 value state = nat/multiply (reward state) (nat/multiply scale scale)

= = equality/EqFinset = finset-data/Finsetℕ = data/Nat

bellman/fixed-policy-monotone

TheoremFor all inputsNo axiomsSource, line 286

bellman/fixed-policy-monotone.{u} :
  (A : Type u) (scale : ℕ) (source : Finset A) (transition : A → A → ℕ) (reward : A → ℕ)
  (discount : ℕ) (left right : A → ℕ)
  (ordered : ∀ (state : A), left state ≤ right state)
  (state : A)
  → numerator left state ≤ numerator right state
  where numerator := bellman/fixed-policy-numerator A scale source transition reward discount

Finset = finset-data/Finsetℕ = data/Nat≤ = nat/at-most