Learning.obs_bayesStationaryEnv_succ
Lemma
No docstring.
Types
-
π : Type u_1MeasurableSpace πA measurable space is a space equipped with a Ο-algebra. -
π : Type u_2MeasurableSpace π -
π¨ : Type u_3MeasurableSpace π¨
Given
-
Q : MeasureTheory.Measure πA measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure.MeasureTheory.IsProbabilityMeasure QA measureΞΌis called a probability measure ifΞΌ univ = 1. -
ΞΊ : 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 : β
Then
(bayesStationaryEnv Q ΞΊ).obs (n + 1) = ProbabilityTheory.Kernel.deterministic (fun h => (h 0).obs) β―MeasurableSpace : Type u_6 β Type u_6A measurable space is a space equipped with a Ο-algebra.
MeasureTheory.IsProbabilityMeasure : {Ξ± : Type u_1} β {m0 : MeasurableSpace Ξ±} β MeasureTheory.Measure Ξ± β PropA measure `ΞΌ` is called a probability measure if `ΞΌ univ = 1`.
MeasureTheory.Measure : (Ξ± : Type u_5) β [MeasurableSpace Ξ±] β Type u_5A measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure. The measure of a set `s`, denoted `ΞΌ s`, is an extended nonnegative real. The real-valued version is written `ΞΌ.real s`.
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)`.
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`.
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.bayesStationaryEnv : {π : Type u_1} β
{π : Type u_2} β
{π¨ : Type u_3} β
[inst : MeasurableSpace π] β
[inst_1 : MeasurableSpace π] β
[inst_2 : MeasurableSpace π¨] β
(Q : MeasureTheory.Measure π) β
[MeasureTheory.IsProbabilityMeasure Q] β
(ΞΊ : ProbabilityTheory.Kernel (π Γ π) π¨) β
[ProbabilityTheory.IsMarkovKernel ΞΊ] β Learning.Enviβ¦The environment that draws a parameter `e : π` from `Q` before the first round, announces it as the observation of every round, and returns a feedback drawn from `ΞΊ (e, a)` when the action is `a`. The algorithm is meant to ignore the announced parameter, that is, to run through `Algorithm.comapObs (fun _ β¦ ())`.Go to its page
HAdd.hAdd : {Ξ± : Type u} β {Ξ² : Type v} β {Ξ³ : outParam (Type w)} β [self : HAdd Ξ± Ξ² Ξ³] β Ξ± β Ξ² β Ξ³`a + b` computes the sum of `a` and `b`. The meaning of this notation is type-dependent. Conventions for notations in identifiers: * The recommended spelling of `+` in identifiers is `add`.
ProbabilityTheory.Kernel.deterministic : {Ξ± : Type u_1} β
{Ξ² : Type u_2} β
{mΞ± : MeasurableSpace Ξ±} β {mΞ² : MeasurableSpace Ξ²} β (f : Ξ± β Ξ²) β Measurable f β ProbabilityTheory.Kernel Ξ± Ξ²Kernel which to `a` associates the dirac measure at `f a`. This is a Markov kernel.
Learning.Round.obs : {π : Type u_1} β {π : Type u_2} β {π¨ : Type u_3} β Learning.Round π π π¨ β πThe observation of a round.Go to its page
Code
lemma obs_bayesStationaryEnv_succ (n : β) :
(bayesStationaryEnv Q ΞΊ).obs (n + 1)
= Kernel.deterministic (fun h : Hist π π π¨ (n + 1) β¦ (h 0).obs) (by fun_prop)Proof
rfl
Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10).
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: 6 project declarations, 32 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.