Learning.Algorithm.congr_congr
Lemma
No docstring.
Types
-
๐ : Type u_1m๐ : MeasurableSpace ๐A measurable space is a space equipped with a ฯ-algebra. -
๐' : Type u_2m๐' : MeasurableSpace ๐' -
๐'' : Type u_3m๐'' : MeasurableSpace ๐'' -
๐ : Type u_4m๐ : MeasurableSpace ๐ -
๐' : Type u_5m๐' : MeasurableSpace ๐' -
๐'' : Type u_6m๐'' : MeasurableSpace ๐'' -
๐จ : Type u_7m๐จ : MeasurableSpace ๐จ -
๐จ' : Type u_8m๐จ' : MeasurableSpace ๐จ' -
๐จ'' : Type u_9m๐จ'' : MeasurableSpace ๐จ''
Given
-
alg : Algorithm ๐ ๐ ๐จA stochastic, sequential algorithm. -
e๐ : ๐ โแต ๐'Equivalences between measurable spaces. -
e๐ : ๐ โแต ๐' -
e๐จ : ๐จ โแต ๐จ' -
f๐ : ๐' โแต ๐'' -
f๐ : ๐' โแต ๐'' -
f๐จ : ๐จ' โแต ๐จ''
Then
(alg.congr e๐ e๐ e๐จ).congr f๐ f๐ f๐จ = alg.congr (e๐.trans f๐) (e๐.trans f๐) (e๐จ.trans f๐จ)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
MeasurableEquiv : (ฮฑ : Type u_6) โ (ฮฒ : Type u_7) โ [MeasurableSpace ฮฑ] โ [MeasurableSpace ฮฒ] โ Type (max u_6 u_7)Equivalences between measurable spaces. Main application is the simplification of measurability statements along measurable equivalences.
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.Algorithm.congr : {๐ : Type u_1} โ
{๐' : Type u_2} โ
{๐ : Type u_4} โ
{๐' : Type u_5} โ
{๐จ : Type u_7} โ
{๐จ' : Type u_8} โ
{m๐ : MeasurableSpace ๐} โ
{m๐' : MeasurableSpace ๐'} โ
{m๐ : MeasurableSpace ๐} โ
{m๐' : MeasurableSpace ๐'} โ
{m๐จ : MeasurableSpace ๐จ} โ
{m๐จ' : MeasurableSpace ๐จโฆRelabelling of the observations, the actions and the feedbacks of an algorithm along measurable equivalences.Go to its page
MeasurableEquiv.trans : {ฮฑ : Type u_1} โ
{ฮฒ : Type u_2} โ
{ฮณ : Type u_3} โ
[inst : MeasurableSpace ฮฑ] โ
[inst_1 : MeasurableSpace ฮฒ] โ [inst_2 : MeasurableSpace ฮณ] โ ฮฑ โแต ฮฒ โ ฮฒ โแต ฮณ โ ฮฑ โแต ฮณThe composition of equivalences between measurable spaces.
Code
lemma Algorithm.congr_congr (alg : Algorithm ๐ ๐ ๐จ) (e๐ : ๐ โแต ๐') (e๐ : ๐ โแต ๐')
(e๐จ : ๐จ โแต ๐จ') (f๐ : ๐' โแต ๐'') (f๐ : ๐' โแต ๐'') (f๐จ : ๐จ' โแต ๐จ'') :
(alg.congr e๐ e๐ e๐จ).congr f๐ f๐ f๐จ
= alg.congr (e๐.trans f๐) (e๐.trans f๐) (e๐จ.trans f๐จ)Proof
by
ext n : 2
ext p : 1
rw [policy_congr, Kernel.comap_apply, Kernel.map_apply _ f๐.measurable, policy_congr,
Kernel.comap_apply, Kernel.map_apply _ e๐.measurable,
Measure.map_map f๐.measurable e๐.measurable, policy_congr, Kernel.comap_apply,
Kernel.map_apply _ (e๐.trans f๐).measurable]
rflMeaning 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: 9 project declarations, 20 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.