Bandits.ArrayModel.algFunction_zero_map
From the authors
The initial action is the image of a uniform random variable by algFunction alg 0 default.
-
π : 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. -
π‘ : Type u_2mπ‘ : MeasurableSpace π‘
-
alg : Learning.Algorithm Unit π π‘A stochastic, sequential algorithm.
MeasureTheory.Measure.map (algFunction alg 0 default) MeasureTheory.volume = alg.p0 ()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.
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.
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`.MeasureTheory.Measure.map : {Ξ± : Type u_4} β
{Ξ² : Type u_5} β
[inst : MeasurableSpace Ξ±] β
[inst_1 : MeasurableSpace Ξ²] β (Ξ± β Ξ²) β MeasureTheory.Measure Ξ± β MeasureTheory.Measure Ξ²The pushforward of a measure. If `f` is not an almost everywhere measurable function, we define it to be `0` if `ΞΌ = 0`, and to be an arbitrary Dirac mass otherwise. That way we always have `map f 0 = 0`, and the push-forward of a probability measure is always a probability measure.
Bandits.ArrayModel.algFunction : {π : Type u_1} β
{π‘ : Type u_2} β
{mπ : MeasurableSpace π} β
{mπ‘ : MeasurableSpace π‘} β
[Nonempty π] β
[StandardBorelSpace π] β Learning.Algorithm Unit π π‘ β (n : β) β Learning.Hist Unit π π‘ n β βunitInterval β πThe next action is the image of the history and a uniform random variable by this function.Go to its page
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.
MeasureTheory.MeasureSpace.volume : {Ξ± : Type u_5} β [self : MeasureTheory.MeasureSpace Ξ±] β MeasureTheory.Measure Ξ±`volume` is the canonical measure on `Ξ±`.
Learning.Algorithm.p0 : {π : Type u_1} β
{π : Type u_2} β
{π¨ : Type u_3} β
{mπ : MeasurableSpace π} β
{mπ : MeasurableSpace π} β {mπ¨ : MeasurableSpace π¨} β Learning.Algorithm π π π¨ β ProbabilityTheory.Kernel π πDistribution of the first action given the first observation: the policy at time `0` applied to the empty history.Go to its page
Unit.unit : UnitThe only element of the unit type. It can be written as an empty tuple: `()`.
Code
lemma algFunction_zero_map (alg : Algorithm Unit π π‘) :
volume.map (algFunction alg 0 default) = alg.p0 ()Proof
algFunction_map alg 0 default
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: 6 project declarations, 44 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.