Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Safe to download and compile .v from evil source ?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Safe to download and compile .v from evil source ?


Chronological Thread 
  • From: Théo Zimmermann <theo.zimmi AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Safe to download and compile .v from evil source ?
  • Date: Sun, 2 Feb 2020 19:45:11 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=theo.zimmi AT gmail.com; spf=Pass smtp.mailfrom=theo.zimmi AT gmail.com; spf=None smtp.helo=postmaster AT mail-ua1-f52.google.com
  • Ironport-phdr: 9a23:ZgLmRhe4OajfkLqhrsBcgfgmlGMj4u6mDksu8pMizoh2WeGdxcS6YB7h7PlgxGXEQZ/co6odzbaP7+a8BCdZuMrJ8ChbNsAVDFld0YRetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN6k8xgHGr3ZIdOha2H5kKF2OlBr4+su84YRv/itNt/8v7cJMTbn2c6ElRrFEEToqNHw46tf2vhfZVwuP4XUcUmQSkhVWBgXO8Q/3UJTsvCbkr+RxwCaVM9H4QrAyQjSi8rxkSAT0hycdNj4263/Yh8pth69Guh2hphh/w4nJYIGJMfd1Y63Qcc8GSWdHQ81cTDJKDJ+iYIQTDuoBJedYoJf7p1sSthu1GA2gCPryxjNUmnP62Ks32PkjHw7bxgwtB90BsHrWo9v1OqkcUv27wrfUwjvMdP5WxS795ZLUfhw9vf2BX7R9etfRx0k1EAPFi02dp5LlPzSP0eQCq2uU7+tlVeKqlWEnsQRxrSKpxscql4LEgZ4VylDa+iV+2oo0JNy4SEt+Yd6lC5ZQuCSaOJF3QsMmWW1npCE6yrgftJO9YSMEy4wnygbBZ/Cbd4WE+BHuWeaLLTtmmn5pZqizihas/UWm1+byTNO70ExQoSpAitTMtm4C1xjU6sWfT/ty5Eah2TKW2wDO8O5IPFk4laTbJpI/2LIwmZ0TsUPMHi/yhkr6lrOZdkIh+uSw6uTnZKvppoOEOoNqlg3zNr4il8+/DOgiLAQCQXaX9f682bH95UH5Ra9FjvwykqnXqpDaIsEbq7alAw9VzIkj7AyzDjan0NQdmHkHLUlIeB2Cj4fzOlHOJOr0Auu4g1SpiDtr3ezJPqX9ApXRKXjOiKvufbFk60JF1AUzyc1f6IlPB7EaIPPzX1fxu8bCAh84NQy02efnB89n2oMQQ2LcSpOeZYjVqBej4v8la72HY5ZQszLgIdAk4eTvhDk3gwlOU7Ou2M4raPG/KcZnJkCUe3/lhNFJRXsKsw14Xu3vjVyqXjtaZnL0VKU5sGJoQLm6BJvOE9j+yIeK2z22S9gPPjgfWwK8VEzwfoDBYM8iLSebI8tviDsBDOHzRIoo1BXovwj/meM+c7jkvxYAvJem7+Bbou3ekRZoqG5xBsWZlnyEFiR6wzlOSDgx06Ry50d6zwXbiPQqs7ljDdVWoshxfEIiL5eFlr51DtnzXkTKedLbEFs=

Hi all,

I completely agree with Adam: coqchk could be improved as a better
tool for semi-automatic code review. It seems to me that most of what
remains to be done in that aim has to do with defining the workflow,
conventions, etc. but shouldn't be technically too hard.

Also, I agree with what has been said that an important step towards
making vo files the piece that you share around to get reviewed would
be to make these vo files independent of the platform and the OCaml
version (making the format stable across Coq versions would be a great
objective too, but probably not as urgent).

Finally, Emilio, I don't understand what the issue would be with
providing a `-safe` mode that doesn't allow writing to files? Why do
you say a complete redesign and rewrite would be necessary? I seem to
have always heard people be optimistic on this matter (with projects
such as MetaCoq in particular). Your claim seems a bit at odds with
this.

Théo


Le dim. 2 févr. 2020 à 15:52, Adam Chlipala
<adamc AT csail.mit.edu>
a écrit :
>
> On 2/1/20 11:30 PM, Timothy Carstens wrote:
> > Consider the following workflow:[...]
> > 5. User runs coqc foo.v
> >
> > [...]
> >
> > If so, then (5) is inherently an unsafe thing to do, and in that case
> > I don't see how Coq could be used to certify untrusted code. You'd
> > need to first do a code review of the ltac and everything else to
> > convince yourself that it was safe to compile.
>
> I think this might be a case of many people on this mailing list taking
> workflow details for granted and not realizing they should be spelled
> out. No, the clear community recommendation would be to check .vo
> files, not .v files. However, that mode requires additional code-review
> tools that pretty-print crucial parts of .vo files in sufficiently
> readable ways (definitely not involving Ltac, plugins, etc., and in fact
> with no need to display proof terms, just "final" theorem statements and
> their dependencies).
>
> jonikelee AT gmail.com
> wrote:
>
> > I once used an
> > antequated proof system (pvs) that had a tactic language but also had
> > the ability to "macro-expand" the tactics into atomic proof steps and
> > record the resulting fully expanded proofs in a file. Having that
> > eliminates the need to run the tactic language later to verify the
> > proof, and thus the possibility that someone can exploit the tactic
> > language.
> That sure sounds like .vo files and, in general, the trust philosophy at
> the heart of the Coq project since the beginning.
>



Archive powered by MHonArc 2.6.18.

Top of Page