Learning.IT.hist_succ_eq_comp_frestrictLe
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 ๐จ
Given
-
n : โ
Then
hist (n + 1) = โ(MeasurableEquiv.finSuccPiIic (fun x => Round ๐ ๐ ๐จ) n).symm โ Preorder.frestrictLe nMeasurableSpace : Type u_6 โ Type u_6A measurable space is a space equipped with a ฯ-algebra.
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.IT.hist : {๐ : Type u_1} โ {๐ : Type u_2} โ {๐จ : Type u_3} โ (n : โ) โ (โ โ Learning.Round ๐ ๐ ๐จ) โ Learning.Hist ๐ ๐ ๐จ n`hist n` is the history before time `n`: the rounds at times `0, ..., n - 1`. This is a random variable on the measurable space `โ โ Round ๐ ๐ ๐จ`.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`.
MeasurableEquiv.finSuccPiIic : (X : โ โ Type u_2) โ
[inst : (n : โ) โ MeasurableSpace (X n)] โ (n : โ) โ ((i : Fin (n + 1)) โ X โi) โแต ((i : โฅ(Finset.Iic n)) โ X โi)Measurable equivalence between `ฮ i : Fin (n + 1), X i` and `ฮ i : Iic n, X i`.Go to its page
Learning.Round : Type u_5 โ Type u_6 โ Type u_7 โ Type (max u_5 u_7 u_6)One round of interaction: an observation, then an action, then a feedback.Go to its page
MeasurableEquiv.symm : {ฮฑ : Type u_1} โ {ฮฒ : Type u_2} โ [inst : MeasurableSpace ฮฑ] โ [inst_1 : MeasurableSpace ฮฒ] โ ฮฑ โแต ฮฒ โ ฮฒ โแต ฮฑThe inverse of an equivalence between measurable spaces.
Function.comp : {ฮฑ : Sort u} โ {ฮฒ : Sort v} โ {ฮด : Sort w} โ (ฮฒ โ ฮด) โ (ฮฑ โ ฮฒ) โ ฮฑ โ ฮดFunction composition, usually written with the infix operator `โ`. A new function is created from two existing functions, where one function's output is used as input to the other. Examples: * `Function.comp List.reverse (List.drop 2) [3, 2, 4, 1] = [1, 4]` * `(List.reverse โ List.drop 2) [3, 2, 4, 1] = [1, 4]` Conventions for notations in identifiers: * The recommended spelling of `โ` in identifiers is `comp`.
Preorder.frestrictLe : {ฮฑ : Type u_1} โ
[inst : Preorder ฮฑ] โ
{ฯ : ฮฑ โ Type u_2} โ [inst_1 : LocallyFiniteOrderBot ฮฑ] โ (a : ฮฑ) โ ((i : ฮฑ) โ ฯ i) โ (i : โฅ(Finset.Iic a)) โ ฯ โiRestrict domain of a function `f` indexed by `ฮฑ` to elements `โค a`, seen as a finite set.
Code
lemma hist_succ_eq_comp_frestrictLe (n : โ) :
hist (๐ := ๐) (๐ := ๐) (๐จ := ๐จ) (n + 1) =
(MeasurableEquiv.finSuccPiIic (fun _ โฆ Round ๐ ๐ ๐จ) n).symm โ Preorder.frestrictLe nProof
rfl
Meaning last changed in v4.34.0-rc2-74-ge05e4f3 (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: 4 project declarations, 35 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.