New video: Porting an NES Emulator to #Lean...playing with Subtypes and Dependen...
peterb @peterb@mathstodon.xyz
New video: Porting an NES Emulator to #Lean...playing with Subtypes and Dependent Types
I write my very first subtype, which is the entire reason I wanted to try porting this emulator in the first place. We explore 2 different ways of accomplishing "here is some data and the compiler has proven these invariants about it."
Thumbnail painting: "Two Men Contemplating the Moon" (c. 1825) by Caspar David Friedrich