LeanMachineLearning

Learning.Hist.map_comp๐Ÿ”—

Lemma

No docstring.

Types
  • ๐“ž : Type u_1
  • ๐“ž' : Type u_2
  • ๐“ž'' : Type u_3
  • ๐“ : Type u_4
  • ๐“' : Type u_5
  • ๐“'' : Type u_6
  • ๐“จ : Type u_7
  • ๐“จ' : Type u_8
  • ๐“จ'' : Type u_9
Given
  • fo : ๐“ž โ†’ ๐“ž'
  • fa : ๐“ โ†’ ๐“'
  • fy : ๐“จ โ†’ ๐“จ'
  • go : ๐“ž' โ†’ ๐“ž''
  • ga : ๐“' โ†’ ๐“''
  • gy : ๐“จ' โ†’ ๐“จ''
  • n : โ„•
  • h : Hist ๐“ž ๐“ ๐“จ nHistory of n complete rounds; n = 0 is the empty history.
Then
map go ga gy (map fo fa fy h) = map (go โˆ˜ fo) (ga โˆ˜ fa) (gy โˆ˜ fy) h
Code
lemma Hist.map_comp {n : โ„•} (h : Hist ๐“ž ๐“ ๐“จ n) :
    Hist.map go ga gy (Hist.map fo fa fy h) = Hist.map (go โˆ˜ fo) (ga โˆ˜ fa) (gy โˆ˜ fy) h
Proof
rfl

New in v4.34.0-rc2-74-ge05e4f3 (2026-09-10), and its meaning has not changed since.

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: 7 project declarations, 8 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.