coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Sylvain Boulmé <Sylvain.Boulme AT univ-grenoble-alpes.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs
- Date: Fri, 10 Jun 2022 17:58:44 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=Sylvain.Boulme AT univ-grenoble-alpes.fr; spf=Pass smtp.mailfrom=Sylvain.Boulme AT univ-grenoble-alpes.fr; spf=None smtp.helo=postmaster AT zm-mta-out-3.u-ga.fr
- Ironport-sdr: O4eM4Wz6XtoNxn45ICnDFlsE7hPP9ZzGELglXCuFNC0zW4U9HDmHEnAKmsqXmmsK+YYNCgT2Zf KfG3YBT4COmiItfSCtIKIrod2GJKjYy1NqzwOpclYG2xrWuR4+6t1NfzUlOLeU6UCyQXgb57bx 3cswd+XxicuMU9JK0Obt3HdXl8132VB0NdXcdAQEnF6o+vHEbrio5f45i/phDOSUO2x1td3ycW 3fj62N0jsDVUx3y46/y4XV9c+UpUGSfxW1OvNKEzxWJzzR+jZ9VyH9VoaWWDBA9s5wUUNOp40c mM/jIxhc/nk1IVwuRqWrBOv0
Predicate-transformer semantics can be viewed as some sort of induction principle over state-transformer semantics.
Hence, theorems about predicate-transformers give examples of second-order theorems...
For example, see http://www-verimag.imag.fr/~boulme/HOARE_LOGIC_TUTORIAL/html/HoareTut.partialhoarelogic.html#PartialHoareLogic.wp_sound
Regards,
Sylvain.
Le 10/06/2022 à 16:09, Steve Zdancewic a écrit :
The Interaction Trees Library (https://github.com/DeepSpec/InteractionTrees) has many examples of lemmas that quantify over predicates. We use that feature to define bisimulations and relational reasoning principles over interaction trees (and monadic computations more generally). See the definitions in https://github.com/DeepSpec/InteractionTrees/blob/master/theories/Eq/Eqit.v and uses of such reasoning in the various example directories.
-Steve
On 6/10/22 2:07 AM, kirang wrote:
Hi all,
I've recieved a couple of messages asking for clarification on what exactly I mean by a second order property here.
I don't have a too clear definition of what I mean by an "interesting second order property" in Coq, I have just been going off a know-it-when-I-see it basis up till now.
I guess if you had to push me, I'd say any non-trivial theorem[1] that quantifies over a predicate (i.e something matching the pattern `forall ... (P: _ ... -> Prop) .., ...)`).
Induction principles would trivially fit into this pattern because they're all of the form `forall (P: _ -> .. -> Prop), P .. -> ... -> P _`, the part of interest being the fact that `P: _ -> .. -> Prop` is quantified over.
Thanks,
Kiran.
[1] Thereby excluding properties like excluded middle or proof irrelevance.
On 2022-06-09 05:14, kirang wrote:
Hi Coq Club,
For various reasons, I'm currently doing a light survey of examples of
interesting uses of second order properties/lemmas in Coq proof
scripts.
Currently, the main examples I've found in the wild have mostly been
using various induction principles for custom datatypes and the such
(found through searching Github/using Coq's search mechanism).
I've seemingly exhausted searching through Github for now and so I
thought I might reach out to the magnanimous wisdom and experience of
the Coq club community in this search.
Do you have any interesting examples of other classes of second order
properties (i.e other than induction principles) you have seen/used in
your own proofs?
Thanks,
Kiran.
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, (continued)
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Qinshi Wang, 06/09/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, kirang, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, roux cody, 06/09/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Lawrence Dunn, 06/09/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Castéran Pierre, 06/09/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, kirang, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Ralf Jung, 06/11/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Qinshi Wang, 06/11/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Ralf Jung, 06/11/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, kirang, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Castéran Pierre, 06/09/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Lawrence Dunn, 06/09/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, kirang, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Steve Zdancewic, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Sylvain Boulmé, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Steve Zdancewic, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Ken Kubota, 06/10/2022
- Re: [Coq-Club] Interesting uses of Second order theorems in Coq proofs, Qinshi Wang, 06/09/2022
Archive powered by MHonArc 2.6.19+.