coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "jonikelee AT gmail.com" <jonikelee AT gmail.com>
- To: Adam Chlipala <adamc AT csail.mit.edu>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] A fast "eq" predicate for Gallina?
- Date: Wed, 20 Jan 2021 15:17:59 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qv1-f54.google.com
- Ironport-phdr: 9a23:naRlOxQbGmfnmIjtDzlRDCFUM9psv+yvbD5Q0YIujvd0So/mwa6zbRSN2/xhgRfzUJnB7Loc0qyK6vGmADZLuM/Y+DBaKdoQDkBD0Z1X1yUbQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2agMu4zf299IPOaAtUmjW9falyLBKrpgnNq8Uam4RvJrs1xxfTv3dEZetayX51KV6Ogh3w4tu88IN5/ylfpv4s9dRMXbnmc6g9ULdVECkoP2cp6cPxqBLNVxGP5nwSUmUXlhpHHQ3I5wzkU5nyryX3qPNz1DGVMsPqQ780Xy+i77pwRx/zlCgHLT85/3rJhcF2kalWvQiupx17w47TfYGVKP9zdb7TcN8GWWZMWNtaWjdfCY2gcYQAE+sBPf5Zr4bjoVsOsQC+DhSoCO/21zNEmmP60ag83u88Ew/JwRYgEsoAvnrUstv7KaQcXuK7zKfPwjrMc/xY1Czh6IjRaB0tveuBUa5yfMfX1EIhFxnFjlKVqYH9MT+V1OMNs26a7+pjS+2vj3AopB9qrzigw8cjkIjJhoYPxl/Y8iV5xYg5LsC/RU55Zt6kFppQtyKEOItyXMwtXXpluCk/yrIcuJ67eDIGx4ggxx7acvGKdZWD7R3/WuiLOzh4mG5ld6ylhxa06UWt1vPwW8u73VtUrCdIk9fCuHAR2hHT7sWKVPpw81m81DuPywzf9+BJLV4qmKfGNZMszaI8m4Qdv0nfHSL7nEX7gamLfUsn4uil8/rrbqniq5OGNIJ5ihvyProzlsG7G+g1MgcDU3CF9em9yLHv4Ej0TKhOg/Iql6TUv5HXKdgHqqO8HgNZzogj5hOxAjqlzdsVknwKIVNedxKJgYjkPl/OL+7kAvilhlmhkStky+3GM7DnH57DNGLMkK37crZ480NcyBQ8zdRY559MD7EOOvPzWkvouNzBEB81LhW4w+jnBdhyzI8eVmWPAqiWMKPWr1CE/P4gI+6JZIMNuTb9LeYq5+L2gHMnhVMQebOl0JgXZXyiAPhqPkGUbWDsj9oOCWsKuxAxTO3uiF2MSz5TYHOyUro+5jE8DoKmDITDSZ6pgLOfwii2BZJWZmVcBVCNFXfkbZmLW/AJaC6KOM9ujiQEVaS9S48mzRyhqAj6y6N+IuXI/i0YqIns2cNu5+zTkBEy7SZ7A96c02GLVWF0n3kHSyU43KBl8gRBzQKq3aF9y9dYEd1L7vdAGlMzOZfZxMRxENnzXkTEf8vPRVq7FIaIGzY0G5gzxNkPYEt5FtiKgRXK3i7sCLgQ3fTfBpsy86HR23X8D8l4wnfCkqImig91EYN0KWS6i/snpEDoDInTnhDczv7yLPVO7Gv27G6GiFG2kgRdWQ90X7/CWClGNETTpNX9oEjFSu33UOh1Ak560ceHb5ByRJjxl1wfHaXsPd3fZyS6nGLiXU/VlIPJV5LjfiAm5AuYCEUAlFpOr3OPNAx7Hzn45myDUHphElXgZ06q+u57+iu2
On Wed, 20 Jan 2021 14:45:40 -0500
Adam Chlipala <adamc AT csail.mit.edu> wrote:
> I've seen some recent work in Lean along these lines, I believe, but
> I, for one, am glad not to see that kind of feature complicating the
> trusted core of Coq! To start with, taken literally, your proposal
> sounds logically inconsistent, since there could be two
> definitionally equal values that trigger different behavior for the
> "eq" operation.
>
> Also, if you really want good performance, why not verify a program
> in some deeply embedded language? I've found performance
> predictability to be quite treacherous within normalization of
> Gallina terms. I'd much rather generate a C program with a proof
> that it computes the answer I want. Many potential target languages
> allow your proposed optimization to be /proved/ from first principles.
I am working on some Coq reflection procedures and trying to stay
within Gallina as much as possible.
>
> On 1/20/21 2:18 PM, jonikelee AT gmail.com wrote:
> > Is there any fast "eq" predicate in Gallina?
> >
> > By fast, I mean that it tests references only - returning true iff
> > the two arguments refer to the same reference. Hence it is
> > analogous to the Lisp "eq" predicate, whereas the standard equality
> > in Gallina is analogous to Lisp "equal".
> >
> > One would also need the associated lemmas, such as
> > eq x y = true -> x = y.
> >
> > Also, one would need to know about when two references might be eq.
> > For instance, it is possible to create a highly wasteful functional
> > language without any reference sharing (such that eq would be false
> > in all non-reflexive cases), but hopefully Gallina is not that, and
> > that the ways in which Gallina is not that can be described in a
> > useful way.
>
>
- [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Sylvain Boulmé, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Jean-Christophe Léchenet, 01/21/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Adam Chlipala, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Sylvain Boulmé, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Pierre-Marie Pédrot, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Xavier Leroy, 01/21/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/21/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Xavier Leroy, 01/21/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, jonikelee AT gmail.com, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Pierre-Marie Pédrot, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Pierre-Marie Pédrot, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Adam Chlipala, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Mario Carneiro, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Mario Carneiro, 01/20/2021
- Re: [Coq-Club] A fast "eq" predicate for Gallina?, Sylvain Boulmé, 01/20/2021
Archive powered by MHonArc 2.6.19+.