Learning.stepKernel_stationaryEnv
No docstring.
-
š : Type u_2mš : MeasurableSpace šA measurable space is a space equipped with a Ļ-algebra. -
šØ : Type u_3mšØ : MeasurableSpace šØ
-
alg : Algorithm Unit š šØA stochastic, sequential algorithm. -
Ī· : ProbabilityTheory.Kernel š šØA kernel from a measurable spaceαto another measurable spaceβis a measurable functionĪŗ : α ā Measure β.ProbabilityTheory.IsMarkovKernel Ī·A kernel is a Markov kernel if every measure in its image is a probability measure. -
n : ā
stepKernel alg (stationaryEnv Ī·) n =
(ProbabilityTheory.Kernel.const (Hist Unit š šØ n) (MeasureTheory.Measure.dirac ())).compProd
((alg.policy n).compProd (ProbabilityTheory.Kernel.prodMkLeft (Hist Unit š šØ n Ć Unit) Ī·))MeasurableSpace : Type u_6 ā Type u_6A measurable space is a space equipped with a Ļ-algebra.
Learning.Algorithm : (š : Type u_5) ā
(š : Type u_6) ā
(šØ : Type u_7) ā [MeasurableSpace š] ā [MeasurableSpace š] ā [MeasurableSpace šØ] ā Type (max (max u_5 u_6) u_7)A stochastic, sequential algorithm. At each round, it sees an observation in `š`, then takes an action in `š`, and finally receives feedback in `šØ`. The action is a random function of the past rounds and the current observation.Go to its page
Unit : TypeThe canonical type with one element. This element is written `()`. `Unit` has a number of uses: * It can be used to model control flow that returns from a function call without providing other information. * Monadic actions that return `Unit` have side effects without computing values. * In polymorphic types, it can be used to indicate that no data is to be stored in a particular field.
ProbabilityTheory.IsMarkovKernel : {α : Type u_1} ā
{β : Type u_2} ā {mα : MeasurableSpace α} ā {mβ : MeasurableSpace β} ā ProbabilityTheory.Kernel α β ā PropA kernel is a Markov kernel if every measure in its image is a probability measure.
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)`.
Nat : TypeThe natural numbers, starting at zero. This type is special-cased by both the kernel and the compiler, and overridden with an efficient implementation. Both use a fast arbitrary-precision arithmetic library (usually [GMP](https://gmplib.org/)); at runtime, `Nat` values that are sufficiently small are unboxed.
Eq : {α : Sort u_1} ā α ā α ā PropThe equality relation. It has one introduction rule, `Eq.refl`.
We use `a = b` as notation for `Eq a b`.
A fundamental property of equality is that it is an equivalence relation.
```
variable (α : Type) (a b c d : α)
variable (hab : a = b) (hcb : c = b) (hcd : c = d)
example : a = d :=
Eq.trans (Eq.trans hab (Eq.symm hcb)) hcd
```
Equality is much more than an equivalence relation, however. It has the important property that every assertion
respects the equivalence, in the sense that we can substitute equal expressions without changing the truth value.
That is, given `h1 : a = b` and `h2 : p a`, we can construct a proof for `p b` using substitution: `Eq.subst h1 h2`.
Example:
```
example (α : Type) (a b : α) (p : α ā Prop)
(h1 : a = b) (h2 : p a) : p b :=
Eq.subst h1 h2
example (α : Type) (a b : α) (p : α ā Prop)
(h1 : a = b) (h2 : p a) : p b :=
h1 āø h2
```
The triangle in the second presentation is a macro built on top of `Eq.subst` and `Eq.symm`, and you can enter it by typing `\t`.
For more information: [Equality](https://lean-lang.org/theorem_proving_in_lean4/quantifiers_and_equality.html#equality)
Conventions for notations in identifiers:
* The recommended spelling of `=` in identifiers is `eq`.Learning.stepKernel : {š : Type u_1} ā
{š : Type u_2} ā
{šØ : Type u_3} ā
{mš : MeasurableSpace š} ā
{mš : MeasurableSpace š} ā
{mšØ : MeasurableSpace šØ} ā
Learning.Algorithm š š šØ ā
Learning.Environment š š šØ ā
(n : ā) ā ProbabilityTheory.Kernel (Learning.Hist š š šØ n) (Learning.Round š š šØ)Kernel describing the distribution of the round at time `n` given the history before `n`.Go to its page
Learning.stationaryEnv : {š : Type u_2} ā
{šØ : Type u_3} ā
{mš : MeasurableSpace š} ā
{mšØ : MeasurableSpace šØ} ā
(ν : ProbabilityTheory.Kernel š šØ) ā [ProbabilityTheory.IsMarkovKernel ν] ā Learning.Environment Unit š šØA stationary environment without observations, in which the distribution of the next feedback depends only on the last action.Go to its page
ProbabilityTheory.Kernel.const : (α : Type u_4) ā
{β : Type u_5} ā
[inst : MeasurableSpace α] ā {x : MeasurableSpace β} ā MeasureTheory.Measure β ā ProbabilityTheory.Kernel α βConstant kernel, which always returns the same measure.
Learning.Hist : Type u_5 ā Type u_6 ā Type u_7 ā ā ā Type (max (max u_7 u_6) u_5)History of `n` complete rounds; `n = 0` is the empty history.Go to its page
MeasureTheory.Measure.dirac : {α : Type u_1} ā [inst : MeasurableSpace α] ā α ā MeasureTheory.Measure αThe dirac measure.
Unit.unit : UnitThe only element of the unit type. It can be written as an empty tuple: `()`.
ProbabilityTheory.Kernel.compProd : {α : Type u_4} ā
{β : Type u_5} ā
{γ : Type u_6} ā
{mα : MeasurableSpace α} ā
{mβ : MeasurableSpace β} ā
{mγ : MeasurableSpace γ} ā
ProbabilityTheory.Kernel α β ā ProbabilityTheory.Kernel (α à β) γ ā ProbabilityTheory.Kernel α (β à γ)Composition-Product of kernels. For s-finite kernels, it satisfies `ā«ā» bc, f bc ā(compProd Īŗ Ī· a) = ā«ā» b, ā«ā» c, f (b, c) ā(Ī· (a, b)) ā(Īŗ a)` (see `ProbabilityTheory.Kernel.lintegral_compProd`). If either of the kernels is not s-finite, `compProd` is given the junk value 0.
ProbabilityTheory.Kernel.prodMkLeft : {α : Type u_1} ā
{β : Type u_2} ā
{mα : MeasurableSpace α} ā
{mβ : MeasurableSpace β} ā
(γ : Type u_5) ā [inst : MeasurableSpace γ] ā ProbabilityTheory.Kernel α β ā ProbabilityTheory.Kernel (γ à α) βDefine a `Kernel (γ à α) β` from a `Kernel α β` by taking the comap of the projection.
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`.
Code
lemma stepKernel_stationaryEnv (alg : Algorithm Unit š šØ) (Ī· : Kernel š šØ) [IsMarkovKernel Ī·]
(n : ā) :
stepKernel alg (stationaryEnv Ī·) n
= Kernel.const _ (Measure.dirac ()) āā (alg.policy n āā Ī·.prodMkLeft _)Proof
by rw [stepKernel_def, obs_stationaryEnv, feedback_stationaryEnv]
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: 7 project declarations, 16 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.