coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Safe to download and compile .v from evil source ?
- Date: Sun, 2 Feb 2020 15:30:39 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=adamc AT csail.mit.edu; spf=Pass smtp.mailfrom=adamc AT csail.mit.edu; spf=None smtp.helo=postmaster AT outgoing-stata.csail.mit.edu
- Ironport-phdr: 9a23:nK/y1RaoYft8YqedaT5mKED/LSx+4OfEezUN459isYplN5qZoMu9bnLW6fgltlLVR4KTs6sC17OK9fy9EjVbvN7B6ClELMUXEUddyI0/pE8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUoHdgN6q2O+s5pbdfxtHhCanYbN1MR66sRjdutMZjId/Jas90BTEr3tHd+hLy25lJU+YkxLg6sut5pJu/Dlctvw7+8JcTan2erkzQKBFAjghL207/tDguwPZTQuI6HscU2EWnQRNDgPY8hz0XYr/vzXjuOZl1yaUIcP5TbYvWTS/9KhrUwPniD0GNzEi7m7ajNF7gb9BrxKgoxx/xJPUYJ2QOfFjcK7RYc8WSGxcVctXSidPAJ6zb5EXAuQcI+hYoYnzqVgAoxSwCgajBv/gxDBTi3/q3qA3yfgtHR3I0QEiGd8FrXTarM/yNKcXSe240LTHwi/Gb/hLxzr96IzIchE5of6WWbJ/a9faxE41GAzYlFqQrJDqMiiJ2eQWqWeb7u5gWfiqi24mtwF9uCagydoxioTQgI8e11PK9T1hzYooO9G1S1R3bNC4HJdKqS2WLZV6Tt4+T21wpio21r0LtYSlcCQW1Zgr3QPTZvidf4WG/B7uUvuaLy1ii3J/Yr2/gg6/8Ui+xe34Ucm5yFFKrjdZktnDsXAN1hrT6seeRvtm4keuwyqP2BrJ5u5YOkA7j6vbK5o7zr41l5oTrV7PETHrl0XrlKOWd0Mk9fa06+n/f7nquJyRO5V6hw3iKKgihNazDfolPgQSR2Sb/P6z1Lzn/U33WrVKifg2n7HDv5/HP8sbo7K2DhRJ3YY48Rm/DjOm3M4dnXkGMFJJYgyIgJX0O13WOvD3Ee+/g0iwkDds3/3JIrrhAozUInfflLfhYK1y5lVHyAszyNBf/4hbBqsAIPL1QE/xtcbXAgU3MwyukK7bD4B20ZpbUmaSCIeYNrnTuBmG/LEBOe6JMaYZsTO1APgh5ubniXZxzVYRdKyi9ZAMYXG8WPFnPwOUbWe60YRJKnsDogdrFL+is1aFSzMGPy/vDZJ53SkyDcedNamGRo2ph+fZjiCmApJRZ2ZJT0uQGGvhMY6fUvYILieTPolsniFWDeHwGb9k7gmnsUrB85QiK+PV/iMCspe6iYp+/OTSkVc39CAyAsiAgTjUEzNE21gQTjpz55hR5FRnww7eg6Njiv1cU9lS+7VEXhpobZM=
On 2/2/20 3:20 PM, Emilio Jesús Gallego Arias wrote:
Can we for example guarantee that a .vo file is not going to be able to
exploit a bug in the OCaml's GC / runtime as to have coqchk accept a
file with a wrong proof?
I think this issue is actually relatively easy/cheap to sidestep. Here's my solution, for an age when the world has converged enough on a small set of proof assistants that are blessed for security-critical verification.
Several of the top computer-science universities should offer classes where students are responsible for clean-slate reimplementation of proof checkers for the blessed proof assistants. Students are encouraged to make their implementations as different as possible from what came before, for instance by using different programming languages. Students are encouraged to run with as few dependencies as possible, e.g. in building dedicated embedded systems with no OS layers. Rely mainly on benchmark suites to measure compliance (and offer credit for finding new test cases that reveal lurking backdoors in other implementations!).
With a small number of proof assistants used in many real-world settings, it is suddenly no big deal to spend several million dollars a year on reimplementation of minimal proof checkers (new versions by new people every year, to be safe). However, we can probably take advantage of educational settings to get this high-quality labor for free!
Probably the biggest obstacle here is a good document explaining the .vo format and exactly which typing rules and other conditions should be applied to logical terms, plus the political will to keep the details pretty constant (and cross-platform).
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, (continued)
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Marco Servetto, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Jason Gross, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Timothy Carstens, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, jonikelee AT gmail.com, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Timothy Carstens, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Jason Gross, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, jonikelee AT gmail.com, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Adam Chlipala, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Théo Zimmermann, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Emilio Jesús Gallego Arias, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Adam Chlipala, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Emilio Jesús Gallego Arias, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Timothy Carstens, 02/03/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Emilio Jesús Gallego Arias, 02/03/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Timothy Carstens, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, jonikelee AT gmail.com, 02/02/2020
- Re: [Coq-Club] Safe to download and compile .v from evil source ?, Adam Chlipala, 02/02/2020
Archive powered by MHonArc 2.6.18.