coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Siddharth Bhat <siddu.druid AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Proving bounds on data structures in Coq?
- Date: Thu, 18 Oct 2018 23:46:19 +0530
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=siddu.druid AT gmail.com; spf=Pass smtp.mailfrom=siddu.druid AT gmail.com; spf=None smtp.helo=postmaster AT mail-ot1-f52.google.com
- Ironport-phdr: 9a23:PWnkRx9qCTqzH/9uRHKM819IXTAuvvDOBiVQ1KB41eIcTK2v8tzYMVDF4r011RmVBdqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRxDmiCgFNzA3/mLZhNFugq1Hux+uvQBzzpTObY2JKPZzfKXQds4aS2pbWcZRUjRMDJ69b4QSEuUBPfxXr5Php1sOsBCzGAmsC/nzyjRVgXL2xqw63Pk8HgHbxgAvAsgOsGnVrNroL6oSXuW1w7PJzTXHdf9ZxTD96I3Rfx0nvPqCU7Vwcc/LxkkuEQPIlkmQqZHgPz+Py+sCrXCX7+xnVeK1l24nqw9wrSa0xscwlIbJnIQVxkra+ipk3YY4I8CzRk1jYdO8DpdcqyWXO5F1T84iWW1kpjs2xqEctZO7YiQHzoksyQTFZPydaYeI5wruVOaPLjd8g3JoYLe/iAyz8Uik0+H8UdW03EtToipLktTAqGoB1xPU6siARft9+lmu1SyT2ADU7+FIOUE0lazFJJ492rM8iIYfvEDZEiL1mEj6lrGaelg49uSy6+nrfK3qppqGOI91jgH+PL4umsu6AekgKQgOXnWU9vmh1LH54EL5WqhKjvwrnaTCv5DaIN4Upq+9AwNPzokj7BO/Ay+80NsEhXkHME5FeBWfgof1PFHOOen0Auu7g1Sxizhm3OvGP73kApXVNHfPirbhfbBn605d0gU/195f54gHQo0Gdfn0Qwr6sMHSJh4/KQ29hej9W/tn0YZLYmODDq+QKr/S+XWI7/5nd/KNaIMI/jrnNvkpz/HrhH4931QaeP/6jtMsdHmkE6E+cA2ian32j4JZSDZYjk8FVOXvzWa6f3tWbne2Ubg742hiWo2jBIbHAIuqhe7YhXvpLthtfmlDT2u0PzLwbYzdAqUDbSuTJolqlTlWDeH8Gb9k7gmnsUrB85QiLufQ/XdF55fq1dww4PGK0B9vr3p7CMOS12zLRGZxzDsF
Thanks, both of those look like excellent references :)
Cheers,
~Siddharth
On Thu, 18 Oct 2018 at 20:24 Robby Findler <robby AT eecs.northwestern.edu> wrote:
You might also be interested in our paper:
A Coq Library For Internal Verification of Running-Times
McCarthy, Fetscher, New, Feltey, Findler
Science of Computer Programming (SCP) 2018
https://www.eecs.northwestern.edu/~robby/pubs/papers/scp2018-mfnff.pdf
There are some other good papers that are worth checking out described
in the related work section, too.
(It actually was first at FLOPS in 2016; Elsevier took a surprisingly
long time to publish the revised version.)
Robby
On Thu, Oct 18, 2018 at 9:50 AM Xuanrui Qi <xqi01 AT cs.tufts.edu> wrote:
>
> Hello Siddharth,
>
> In general, to prove things about complexity, you would define a cost
> semantics, i.e. a recursive running function that defines time costs.
> Then you'd prove your desired complexity properties against that.
>
> Here's a recent paper about formalizing and proving amortized
> complexity in a theorem prover (but Isabelle, not Coq): "Amortized
> Complexity Verified", by Tobias Nipkow, in ITP '15 (
> http://isabelle.in.tum.de/~nipkow/pubs/itp15.pdf).
>
> Also, for something in Coq, there's Arthur Charguéraud and François
> Pottier's 2017 JAR paper, "Verifying the Correctness and Amortized
> Complexity of a Union-Find Implementation in Separation Logic with Time
> Credits". Those might be helpful.
>
> I'm not an expert in cost semantics, so this is just to get you
> started. I suppose the list knows much more about the specifics of
> functional cost analysis.
>
> -Ray
>
> --
> Xuanrui "Ray" Qi
>
> Department of Computer Science
> Tufts University
> Halligan Hall, 161 College Ave
> Medford, MA 02144, USA
>
> Email: xqi01 AT cs.tufts.edu
>
> On Thu, 2018-10-18 at 19:49 +0530, Siddharth Bhat wrote:
> > 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
> > --
> > Sending this from my phone, please excuse any typos!
>
Sending this from my phone, please excuse any typos!
- [Coq-Club] Proving bounds on data structures in Coq?, Siddharth Bhat, 10/18/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, Xuanrui Qi, 10/18/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, Robby Findler, 10/18/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, Siddharth Bhat, 10/18/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, mukesh tiwari, 10/19/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, Siddharth Bhat, 10/18/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, Robby Findler, 10/18/2018
- Re: [Coq-Club] Proving bounds on data structures in Coq?, Xuanrui Qi, 10/18/2018
Archive powered by MHonArc 2.6.18.