Bandits.ArrayModel.indepFun_fst_hist
No docstring.
-
๐ : Type u_1m๐ : MeasurableSpace ๐A measurable space is a space equipped with a ฯ-algebra.Nonempty ๐StandardBorelSpace ๐A standard Borel space is a measurable space arising as the Borel sets of some Polish topology.DecidableEq ๐Countable ๐A typeฮฑis countable if there exists an injective mapฮฑ โ โ. -
๐ก : Type u_2m๐ก : MeasurableSpace ๐กStandardBorelSpace ๐กNonempty ๐ก
-
alg : Learning.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 : โ
ProbabilityTheory.IndepFun (fun ฯ => ฯ.1 n) (fun x => hist alg x n) (arrayMeasure ฮฝ)Two functions are independent if the two measurable space structures they generate are independent.MeasurableSpace : Type u_6 โ Type u_6A measurable space is a space equipped with a ฯ-algebra.
Nonempty : Sort u โ Prop`Nonempty ฮฑ` is a typeclass that says that `ฮฑ` is not an empty type, that is, there exists an element in the type. It differs from `Inhabited ฮฑ` in that `Nonempty ฮฑ` is a `Prop`, which means that it does not actually carry an element of `ฮฑ`, only a proof that *there exists* such an element. Given `Nonempty ฮฑ`, you can construct an element of `ฮฑ` *nonconstructively* using `Classical.choice`.
StandardBorelSpace : (ฮฑ : Type u_1) โ [MeasurableSpace ฮฑ] โ PropA standard Borel space is a measurable space arising as the Borel sets of some Polish topology. This is useful in situations where a space has no natural topology or the natural topology in a space is non-Polish. To endow a standard Borel space `ฮฑ` with a compatible Polish topology, use `letI := upgradeStandardBorel ฮฑ`. One can then use `eq_borel_upgradeStandardBorel ฮฑ` to rewrite the `MeasurableSpace ฮฑ` instance to `borel ฮฑ t`, where `t` is the new topology.
DecidableEq : Sort u โ Sort (max 1 u)Propositional equality is `Decidable` for all elements of a type. In other words, an instance of `DecidableEq ฮฑ` is a means of deciding the proposition `a = b` is for all `a b : ฮฑ`.
Countable : Sort u โ PropA type `ฮฑ` is countable if there exists an injective map `ฮฑ โ โ`.
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.
ProbabilityTheory.IndepFun : {ฮฉ : Type u_1} โ
{ฮฒ : Type u_6} โ
{ฮณ : Type u_7} โ
{_mฮฉ : MeasurableSpace ฮฉ} โ
[MeasurableSpace ฮฒ] โ
[MeasurableSpace ฮณ] โ
(ฮฉ โ ฮฒ) โ (ฮฉ โ ฮณ) โ autoParam (MeasureTheory.Measure ฮฉ) ProbabilityTheory.IndepFun._auto_1 โ PropTwo functions are independent if the two measurable space structures they generate are independent. For a function `f` with codomain having measurable space structure `m`, the generated measurable space structure is `MeasurableSpace.comap f m`. We use the notation `f โแตข[ฮผ] g` for `IndepFun f g ฮผ` (scoped in `ProbabilityTheory`).
Bandits.ArrayModel.hist : {๐ : Type u_1} โ
{๐ก : Type u_2} โ
{m๐ : MeasurableSpace ๐} โ
{m๐ก : MeasurableSpace ๐ก} โ
[Nonempty ๐] โ
[StandardBorelSpace ๐] โ
[DecidableEq ๐] โ
Learning.Algorithm Unit ๐ ๐ก โ Bandits.ArrayModel.probSpace ๐ ๐ก โ (n : โ) โ Learning.Hist Unit ๐ ๐ก nHistory of actions and rewards before time `n` in the array model.Go to its page
Bandits.ArrayModel.arrayMeasure : {๐ : Type u_1} โ
{๐ก : Type u_2} โ
{m๐ : MeasurableSpace ๐} โ
{m๐ก : MeasurableSpace ๐ก} โ ProbabilityTheory.Kernel ๐ ๐ก โ MeasureTheory.Measure (Bandits.ArrayModel.probSpace ๐ ๐ก)Probability measure for the array model of stochastic bandits.Go to its page
Code
lemma indepFun_fst_hist [Countable ๐] (alg : Algorithm Unit ๐ ๐ก)
(ฮฝ : Kernel ๐ ๐ก) [IsMarkovKernel ฮฝ] (n : โ) :
IndepFun (fun ฯ โฆ ฯ.1 n) (hist alg ยท n) (arrayMeasure ฮฝ)Proof
(indepFun_fst_aux ฮฝ n).of_measurable_right (measurable_hist_comap alg n)
Meaning last changed in v4.35.0-rc2-1-g61e506b (2026-09-22), the 4th 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: 11 project declarations, 64 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.