coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Andrew Appel <appel AT CS.Princeton.EDU>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] VST question about Redblack.elements_relate
- Date: Fri, 26 Aug 2016 13:35:00 -0400 (EDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=appel AT CS.Princeton.EDU; spf=Pass smtp.mailfrom=appel AT cs.princeton.edu; spf=None smtp.helo=postmaster AT greenlight.cs.princeton.edu
- Ironport-phdr: 9a23:EcMTzRH4CuhatfisLoIXrZ1GYnF86YWxBRYc798ds5kLTJ75osSwAkXT6L1XgUPTWs2DsrQf2rOQ7/irADReqdbZ6TZZIcQKD0dEwewt3CUYSPafDkP6KPO4JwcbJ+9lEGFfwnegLEJOE9z/bVCB6le77DoVBwmtfVEtfre9JIfegoyN2vyo/NWLOkMT1WP7Pes5dU3o5UWJ749N0NMkcv5wgjLy4VJwM9xMwm1pIV/B1z3d3eyXuKBZziJLpvg6/NRBW6ipN44xTLhfESh0ezttvJ6j5lH/Sl6E4WJZWWELmDJJBRLE5Vf0RMTfqCz/48N71DOXIoXfVag5XXz25r9zRRvAoxxBDyQ49mralst2yo93nUTy9FRE34fIbdTNZ7JFdaTHcIZCSA==
From: "Andrew Appel" <appel AT CS.Princeton.EDU>
I agree, an injectivity axiom for int2Z is necessary.
No, that's not true after all! Injectivity of int2Z is not necessary!
I was right the first time. But, in our community, being right without
a proof is almost like being wrong. I have now filled in the proof
of elements_relate, in the Redblack chapter of Verified Function Algorithms.
I have just uploaded to the VFA site,
http://www.cs.princeton.edu/~appel/vfa/
version 0.4, which is the second beta release.
The only difference from version 0.3 is that "elements_relate" exercise
in the Redblack chapter is (1) explained more, and (2) guaranteed provable.
(You won't see the proof in the public distribution, but it is available
in the instructor's solution manual.)
Here's the start of the new explanation:
(** **** Exercise: 4 stars, optional (elements) *) (** Prove [elements_relate], that is, the correctness of the [elements] function. Because [elements] does not pay attention to colors, and does not rebalance the tree, then its proof is closely related to the [elements_relate] proof in SearchTree.v. But that proof uses a different [key] type, it needs to be adapted, lemma by lemma. Although this proof is only 4 stars of difficulty, it is plenty of work to do.*)
Sincerely,
Andrew Appel
P.S. At this point, there are only three exercises in all of VFA for which
I have not done the Coq proofs. All three are in the Binom chapter:
delete_max_Some_priq, delete_max_None_relate, delete_max_Some_relate.
- [Coq-Club] VST question about Redblack.elements_relate, Lars Rasmusson, 08/25/2016
- <Possible follow-up(s)>
- [Coq-Club] VST question about Redblack.elements_relate, Lars Rasmusson, 08/25/2016
- Re: [Coq-Club] VST question about Redblack.elements_relate, Gaetan Gilbert, 08/25/2016
- Re: [Coq-Club] VST question about Redblack.elements_relate, Andrew Appel, 08/25/2016
- Re: [Coq-Club] VST question about Redblack.elements_relate, Andrew Appel, 08/26/2016
- Re: [Coq-Club] VST question about Redblack.elements_relate, Lars Rasmusson, 08/26/2016
- Re: [Coq-Club] VST question about Redblack.elements_relate, Andrew Appel, 08/25/2016
- Re: [Coq-Club] VST question about Redblack.elements_relate, Gaetan Gilbert, 08/25/2016
Archive powered by MHonArc 2.6.18.