Reference · Finite types, distributions and Markov chains
rainbow.math.finite.bellman
Exact scaled finite transition rows and fixed-policy Bellman numerators.
markov/row-total
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
markov/rows-normalized-at.{u} :
(A : Type u) (scale : ℕ) (source : Finset A) (transition : A → A → ℕ)
→ PropFinset = finset-data/Finsetℕ = data/Nat
bellman/output-scale
bellman/output-scale : (x₁ : ℕ) → ℕ
ℕ = data/Nat
bellman/fixed-policy-numerator
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
or-example/two-state-space : → Finset ℕ
Finset = finset-data/Finsetℕ = data/Nat
or-example/uniform-mass
or-example/uniform-mass : (x₁ : ℕ) → ℕ
ℕ = data/Nat
or-example/uniform-transition
or-example/uniform-transition : (x₁ x₂ : ℕ) → ℕ
ℕ = data/Nat
or-example/identity-value
or-example/identity-value : (x₁ : ℕ) → ℕ
ℕ = data/Nat
probability/two-state-uniform-normalized
probability/two-state-uniform-normalized : → probability/normalized-at ℕ 2 ahof-d2/grid or-example/uniform-mass
ℕ = data/Nat
probability/two-state-identity-expectation
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
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
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
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
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
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 discountFinset = finset-data/Finsetℕ = data/Nat≤ = nat/at-most