Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] Using Coq as prover
- Subject: [Frama-c-discuss] Using Coq as prover
- From: loic.correnson at cea.fr (Loïc Correnson)
- Date: Mon, 24 Aug 2020 09:28:15 +0200
- In-reply-to: <CAGkX0vdmYis8UXhmaR_WL=49-xjkX75tjnHuh8Nz=0Z55JXMaw@mail.gmail.com>
- References: <CAGkX0vfzkaCJK5UHhQjUzd5VjqkNHeq53CObeg00ib5ZOWPT6w@mail.gmail.com> <fbe018c6-655d-1278-d623-7568c7046a2c@cea.fr> <81945846-995D-44EF-9E5D-8171B22C7AF9@fokus.fraunhofer.de> <CAGkX0vd71f6TbwGZ5N1PcJzzrd=LRj3NB5PDg5ckNs0Mzk9gzQ@mail.gmail.com> <50DBCAB0-C15C-43BD-AF71-4918E33C9E07@fokus.fraunhofer.de> <CAGkX0vdmYis8UXhmaR_WL=49-xjkX75tjnHuh8Nz=0Z55JXMaw@mail.gmail.com>
Hi Matthias, >> In other words, just start working with native:coq and hope for the best! We will do our best to ease the transition :-) Just to complete previous answers, we actually plan to make the why3 coq backend also working from WP, as a replacement for the current "native:coq" one. Since the why3 translation to Coq is a bit different than our native backend, your scripts will need some refactoring, but the proof skeletons shall be preserved. However, I would just mention that Coq proof obligations generated by weakest precondition calculus are intrinsically difficult to master, especially when the memory model is involved. Interestingly, it is often the case where you only need the power of Coq to solve a problem that is *not* related to C-code, but that is related to some arithmetic or mathematical problem (and that remains out-of-reach from SMT solvers). In such a case, I would recommend the following alternative : 1. Write a Why3 theory where the necessary types, symbols and their properties are stated 2. Prove the necessary lemmas in Why3, perhaps using Coq on the most tricky parts 3. Use a WP driver to bind your Why3 theory to abstract ACSL symbols, that you can now use within your code annotations. The additional benefit of this strategy is that you can you use all the Why3 structuring facilities (theory, module, cloning) and all its libraries, without rewriting them at the ACSL level. Notice also that we are working on making point 3 fully automated in a near future :-) Regards, L.
- References:
- [Frama-c-discuss] Using Coq as prover
- From: matthias.gudemann at gmail.com (Matthias Güdemann)
- [Frama-c-discuss] Using Coq as prover
- From: Patrick.Baudin at cea.fr (BAUDIN Patrick)
- [Frama-c-discuss] Using Coq as prover
- From: jens.gerlach at fokus.fraunhofer.de (Gerlach, Jens)
- [Frama-c-discuss] Using Coq as prover
- From: matthias.gudemann at gmail.com (Matthias Güdemann)
- [Frama-c-discuss] Using Coq as prover
- From: jens.gerlach at fokus.fraunhofer.de (Gerlach, Jens)
- [Frama-c-discuss] Using Coq as prover
- From: matthias.gudemann at gmail.com (Matthias Güdemann)
- [Frama-c-discuss] Using Coq as prover
- Prev by Date: [Frama-c-discuss] Using Coq as prover
- Next by Date: [Frama-c-discuss] preprocessing a file for E-ACSL
- Previous by thread: [Frama-c-discuss] Using Coq as prover
- Next by thread: [Frama-c-discuss] Using Coq as prover
- Index(es):