Learning.Environment.ν0
From the authors
Distribution of the first feedback given the first observation and action: the feedback kernel
at time 0 applied to the empty history.
-
𝓞 : Type u_1m𝓞 : MeasurableSpace 𝓞A measurable space is a space equipped with a σ-algebra. -
𝓐 : Type u_2m𝓐 : MeasurableSpace 𝓐 -
𝓨 : Type u_3m𝓨 : MeasurableSpace 𝓨
-
env : Environment 𝓞 𝓐 𝓨A stochastic environment.
ProbabilityTheory.Kernel (𝓞 × 𝓐) 𝓨A kernel from a measurable space α to another measurable space β is a measurable function κ : α → Measure β.(env.feedback 0).comap (fun p => ((default, p.1), p.2)) ⋯MeasurableSpace : Type u_6 → Type u_6A measurable space is a space equipped with a σ-algebra.
Learning.Environment : (𝓞 : Type u_5) →
(𝓐 : Type u_6) →
(𝓨 : Type u_7) → [MeasurableSpace 𝓞] → [MeasurableSpace 𝓐] → [MeasurableSpace 𝓨] → Type (max (max u_5 u_6) u_7)A stochastic environment. At each round, an observation is drawn prior to the algorithm taking an action. Then the environment provides feedback based on the observation and the action.Go to its page
ProbabilityTheory.Kernel : (α : Type u_1) → (β : Type u_2) → [MeasurableSpace α] → [MeasurableSpace β] → Type (max u_1 u_2)A kernel from a measurable space `α` to another measurable space `β` is a measurable function `κ : α → Measure β`. The measurable space structure on `MeasureTheory.Measure β` is given by `MeasureTheory.Measure.instMeasurableSpace`. A map `κ : α → MeasureTheory.Measure β` is measurable iff `∀ s : Set β, MeasurableSet s → Measurable (fun a ↦ κ a s)`.
Prod : Type u → Type v → Type (max u v)The product type, usually written `α × β`. Product types are also called pair or tuple types. Elements of this type are pairs in which the first element is an `α` and the second element is a `β`. Products nest to the right, so `(x, y, z) : α × β × γ` is equivalent to `(x, (y, z)) : α × (β × γ)`. Conventions for notations in identifiers: * The recommended spelling of `×` in identifiers is `Prod`.
ProbabilityTheory.Kernel.comap : {α : Type u_1} →
{β : Type u_2} →
{mα : MeasurableSpace α} →
{mβ : MeasurableSpace β} →
{γ : Type u_4} →
{mγ : MeasurableSpace γ} →
ProbabilityTheory.Kernel α β → (g : γ → α) → Measurable g → ProbabilityTheory.Kernel γ βPullback of a kernel, such that for each set s `comap κ g hg c s = κ (g c) s`. We include measurability in the assumptions instead of using junk values to make sure that typeclass inference can infer that the `comap` of a Markov kernel is again a Markov kernel.
Prod.mk : {α : Type u} → {β : Type v} → α → β → α × βConstructs a pair. This is usually written `(x, y)` instead of `Prod.mk x y`. Conventions for notations in identifiers: * The recommended spelling of `(a, b)` in identifiers is `mk`.
Inhabited.default : {α : Sort u} → [self : Inhabited α] → α`default` is a function that produces a "default" element of any `Inhabited` type. This element does not have any particular specified properties, but it is often an all-zeroes value.
Code
noncomputable def Environment.ν0 (env : Environment 𝓞 𝓐 𝓨) : Kernel (𝓞 × 𝓐) 𝓨 := (env.feedback 0).comap (fun p ↦ ((default, p.1), p.2)) (by fun_prop) deriving IsMarkovKernel
Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10), the 2th recorded change.
Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file · open it in the Lean web editor.
Dependency graph
Audit surface: 3 project declarations, 17 external constants
✓ Proved: no sorry anywhere in its closure
This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.