Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] why does simpl fail?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] why does simpl fail?


Chronological Thread 
  • From: BEGAY Pierre-leo <pbegay AT ens-cachan.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] why does simpl fail?
  • Date: Sat, 25 Apr 2020 12:58:33 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=pbegay AT ens-cachan.fr; spf=Pass smtp.mailfrom=pbegay AT ens-cachan.fr; spf=Pass smtp.helo=postmaster AT ariane2.ens-cachan.fr
  • Ironport-phdr: 9a23:DS5ErxCuNvMjr+EzN2p+UyQJP3N1i/DPJgcQr6AfoPdwSPv/pcbcNUDSrc9gkEXOFd2Cra4d1qyL7+u4CCQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagYb5+NhW7oAreusUKhYZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9RwgqxFvRyupRJwzJLbb46IO/RzZb/dcNAGSWZdQspcTS5MD4WhZIUPFeoBOuNYopHgqlUBrBWzGQujD/71xD9JmHD2x7c63Po4HQHCwgMgGM8FvXPMrNruKqgSXvq6zanTwDrdafNWwi7x55TSfR89ofGDR7RwfdDfyUk1Dg7IiEibp4/9Pz6Ny+gAvWuW4/B+We+hlmIrsRx9rzquy8s2ioTEiZoZx1PK+Clj3Yo4Id+1RFRmbdOnEpZcrS6XO5dwT8g/WW9nojw6xacDuZOjfCgF1pAnxxnHZvOdaYiI4wjsVOCPLjtmnn5qZrS/hw2r/Ue80OLzSsm030xMriZfnNnMrGgB1x3V6seZVvtw5lqt1DiM2gzJ9O1JL104mbDGJ5Mjw7M8jJoevEvbEi/zgkr2jauWdks++uiv7uTqeq3mqYSCOI97kA7/Mr8jldK5AeQjKwQBQ3KU9vi81LL5+031WrtKjucunqnDrJ/aPdgbprK+AwJNzokj7A+/Ay6639QcgHkIN0lIeAmHjojsI1HBOur0Dfa5g1S2kTdk3erKPrP7AsaFEn+Wm7D4OL159kR0yQwpzNkZ6YgHJKsGJafZd2DYhZTgDxIjKQHxx+vgQIFl3I4RUHOnD6mCdajbul+B4KQhOb/fN8cupD/hJq19tLbVhngjlApFJPj77d4scHm9W89eDQCcaHvojM0GFD5X7Ac4V6nhgVaCWDgVaWzgBvthtAF+M5qvCML4fq7ogLGF233gTJRMZ2lABwrKHHHzMo6NUPcFbmScOJ04y2BWZf2aU4YkkCqWmkri0bM+c7jZ/DZdvpvo1NFzoePJx0k/

Hello,

I've had the same issue recently, the problem was that I used a Fixpoint where a Definition was sufficient. I guess simpl does not perform "terminal computations" on Fixpoints, but only tries to simplify the recursive call, maybe someone else can elaborate on that.

As far as I can tell, you do not need to use a Fixpoint either, so that may be the source of your problem.

Cheers,
Pierre-Léo Bégay


Jeremy Dawson
<Jeremy.Dawson AT anu.edu.au>
a écrit :

Hi,

I have a definition

Fixpoint dersrec_hd X rules prems c cs
(ders : @dersrec X rules prems (c :: cs)) :=
match ders with
| dlCons d ds => d
end.

but when I try do prove the following, I would expect the simpl step to simplify it to d = d

Lemma dersrec_hd_eq X rs ps c cs
(d : @derrec X rs ps c) (ds : @dersrec X rs ps cs) :
dersrec_hd (dlCons d ds) = d.
Proof. simpl. (* does nothing *)

What could be the reason for failure here?

Thanks

Jeremy Dawson






Archive powered by MHonArc 2.6.18.

Top of Page