coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Benjamin C. Pierce" <bcpierce AT cis.upenn.edu>
- To: Guillaume Melquiond <guillaume.melquiond AT inria.fr>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Destruct vs. inversion
- Date: Thu, 7 Apr 2011 09:39:47 -0400
Thanks to everyone for the enlightening comments!
> The downside is that inversion terms are heavyweight, so you
> should not use it for plain inductive types for instance.
So one possible conclusion of the discussion so far could be "inversion is a
fancier version of destruct, so if I don't care so much about the size of
proof terms and I do care a lot about minimizing the number of tactics I have
to explain, I should just use inversion for everything."
I know there are some caveats to this...
- inversion requires an identifier, so you may have to do a "remember"
before it
- inversion sometimes generates lots of equalities that have to be tidied
using subst
... but are there situations where inversion doesn't work and destruct does?
- B
- [Coq-Club] Destruct vs. inversion, Benjamin C. Pierce
- Re: [Coq-Club] Destruct vs. inversion, Daniel Schepler
- Re: [Coq-Club] Destruct vs. inversion, Nathan Collins
- Re: [Coq-Club] Destruct vs. inversion,
Guillaume Melquiond
- Re: [Coq-Club] Destruct vs. inversion, Jean-Francois Monin
- Re: [Coq-Club] Destruct vs. inversion, Benjamin C. Pierce
- Re: [Coq-Club] Destruct vs. inversion, Jacques Garrigue
- Message not available
- Re: [Coq-Club] Destruct vs. inversion, Pierre Boutillier
- Message not available
- Re: [Coq-Club] Destruct vs. inversion, Paolo Herms
- <Possible follow-ups>
- Re: [Coq-Club] Destruct vs. inversion,
Daniel de Rauglaudre
- Re: [Coq-Club] Destruct vs. inversion, Chantal Keller
- Message not available
- Re: [Coq-Club] Destruct vs. inversion, Daniel de Rauglaudre
Archive powered by MhonArc 2.6.16.