Bandits.ArrayModel.measurable_action'
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 π -
π‘ : Type u_2mπ‘ : MeasurableSpace π‘
-
alg : Learning.Algorithm Unit π π‘A stochastic, sequential algorithm. -
n : β
-
h : Measurable fun x => hist alg x nA functionfbetween measurable spaces is measurable if the preimage of every measurable set is measurable.
Measurable fun x => algFunction alg n (hist alg x n) (x.1 n)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 : Ξ±`.
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.
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.
Measurable : {Ξ± : Type u_1} β {Ξ² : Type u_2} β [MeasurableSpace Ξ±] β [MeasurableSpace Ξ²] β (Ξ± β Ξ²) β PropA function `f` between measurable spaces is measurable if the preimage of every measurable set is measurable.
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.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
Code
lemma measurable_action' [DecidableEq π] {alg : Algorithm Unit π π‘}
(n : β) (h : Measurable (hist alg Β· n)) :
Measurable (fun x β¦ algFunction alg n (hist alg x n) (x.1 n))Proof
by fun_prop
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: 9 project declarations, 60 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.