coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Robby Findler <robby AT eecs.northwestern.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Proving bounds on data structures in Coq?
- Date: Thu, 18 Oct 2018 09:54:18 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=robby AT eecs.northwestern.edu; spf=None smtp.mailfrom=robby AT eecs.northwestern.edu; spf=None smtp.helo=postmaster AT mail.ece.northwestern.edu
- Ironport-phdr: 9a23:IqVB6xyBhMqYiC7XCy+O+j09IxM/srCxBDY+r6Qd2+gXIJqq85mqBkHD//Il1AaPAd2Eraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HRbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRDnhicINT43/m/UhMJtkqxUvB2vqgdjw47NeoyZKOZycr/fcN4cWGFPXtxRVytEAo6kc4UPCPEOMv1YroLgp1UOrB2+ChSoBOzx0D9Dm3j73bc90+s6Cg7H3BctEMwQv3vIt9X5LqESUeevzKnUzTXCYe1Z2Szh6IfWaBAhp+uAUqxtfsrM0EQiER7OgFuXqYzgJTyV1+INvnCH7+p9UOKjkXMopB9prjipwccskJXJhoIby1/a7iV53Jg6Jce+SEJhf9GrDYZQuieHPIV1WsMvW3xktDg+x7EcpJK3YCgHxI4kyhLFZPGLa5aE7g7nWeqLIjp1hGhpdKyhixqv60StyuPxW8+p21hQtCVFiMPDtnUV2hzT9MeHTvx981+k2TmV1gDT7vtILl4omqXFMZIhxLkwloAPsUTDEC75hl72jLOIeUU+/Oik8frobaj7ppOENo90jB/xMrg2l8CiH+g1NhICU3WH9em8zrHu/lf1TbpSgv0ziKbZsZTaJcoBpq6+Bg9Yypwj6xGkADi90NUVhmcII0xZdxKclYTpPVbOIOrkDfe/jVWjjixrx+zYMb37BJXBNGbMn6r8fbpl8U5T1BIzzcxD55JTErwOPPXzWlbouNPECh85Lhe7zv38CNR904MeQXiADrWYMKPUq1+I5/ggL/OCZI8P637BLK0u4Oerhnskk3cce7Oo1N0ZciOWBPNjdn+ea3D9yvkAF2sOsxB2GPbtgleTeTNebG30WaUm+jEkBZm6AJ3FAI2hnerSj2+AApRKazUeWRi3GnDyetDcAqZeWGepOsZk1wc8e/2kQo4l2wupsVWhmbdqJfGS/CoCqZL82cNp6vfV0xw+6G4sVpjP4yS2V2hx21gwaXouxqkl+h5wx1yYl65/meBYCtFI+/5TVEE3OYOOl7UnWeC3YRrIe5KycHjjQtiiBmtuHNc4wttIbk1wXdOllAzDwCexH7IPkfqGCIFmqq8=
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!
>
- [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.