Skip to content

Dependent Types in Haskell: Binomial Heaps

Photo of Koen De Keyser
Hosted By
Koen De K. and Mark C.
Dependent Types in Haskell: Binomial Heaps

Details

Jasper Van der Jeugt: Dependent Types in Haskell: Binomial Heaps

Most people are familiar with the hello world of dependently-typed Haskell: a vector that is annotated with the Peano number represenation of its size. This talk introduces a similar way to deal with binomial heaps.

Binomial heaps are used to implement, among other things, priority queues. They are a fan favourite among data structures because of their simple elegance and the fascinating way their structure corresponds to binary numbers.

Jasper will use this idea to lift binary numbers to the type level, which is great because you get `log(n)` size and time in places where you would see `n` for Peano numbers -- in addition to being insanely cool.

This talk will be an introductory explanation of a non-trivial example of dependent Haskell programming.

Photo of Ghent Functional Programming Group Meetup group
Ghent Functional Programming Group Meetup
See more events