Siddharth Bhat
2018-10-18 14:19:43 UTC
Hello,
I was interested in implementing data structures from Okasaki's "purely
functional data structures", but I'm not sure how to actually *prove* theorems
about the amortized analysis -- in terms of the banker's method /
physicist's method, while still being able to extract such a data structure
out to Haskell code.
So, TL;DR:
How do I define data structures in Coq such that it is:
1. Extractable to code
2. Allows reasoning to prove bounds using Okasaki's methods?
Thanks,
~Siddharth
I was interested in implementing data structures from Okasaki's "purely
functional data structures", but I'm not sure how to actually *prove* theorems
about the amortized analysis -- in terms of the banker's method /
physicist's method, while still being able to extract such a data structure
out to Haskell code.
So, TL;DR:
How do I define data structures in Coq such that it is:
1. Extractable to code
2. Allows reasoning to prove bounds using Okasaki's methods?
Thanks,
~Siddharth
--
Sending this from my phone, please excuse any typos!
Sending this from my phone, please excuse any typos!