LeanMachineLearning

Learning.history_eq_comp_history๐Ÿ”—

Lemma

From the authors

The history before time m is a restriction of the history before time n โ‰ฅ m.

Types
  • ๐“ž : Type u_1
  • ๐“ : Type u_2
  • ๐“จ : Type u_3
  • ฮฉ : Type u_4
Given
  • O : โ„• โ†’ ฮฉ โ†’ ๐“ž
  • A : โ„• โ†’ ฮฉ โ†’ ๐“
  • Y : โ„• โ†’ ฮฉ โ†’ ๐“จ
  • m : โ„•
  • n : โ„•
Assuming
  • hmn : m โ‰ค n
Then
history O A Y m = (fun h i => h (Fin.castLE hmn i)) โˆ˜ history O A Y n
Code
lemma history_eq_comp_history {m n : โ„•} (hmn : m โ‰ค n) :
    history O A Y m = (fun h (i : Fin m) โ†ฆ h (Fin.castLE hmn i)) โˆ˜ history O A Y n
Proof
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: 3 project declarations, 10 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.