Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Gradual use of Program

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Gradual use of Program


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Gradual use of Program
  • Date: Sun, 20 Mar 2016 14:34:20 -0400
  • 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-qg0-f54.google.com
  • Ironport-phdr: 9a23:SYSJHB9k/Hsxuf9uRHKM819IXTAuvvDOBiVQ1KB91+scTK2v8tzYMVDF4r011RmSDdWds6MP0rCI+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuSt6U15X8jrrss7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JtLVry/dKAlR5RZCi4nOiY7/p7Frx7GGCmI4HIAUmwQ2j5FAhbI6g2yCpX2tCr5u+5w1QGVOMT3SfY/XjH0vPQjcwPhlCpSb21xy2rQkMEl1K8=



On 03/20/2016 02:10 PM, Ralf Jung wrote:
Hi,

On 20.03.2016 18:03, Jonathan Leivent wrote:
How about inserting a hole where you might want the coercion:
I don't understand... I do *not* want a coercion unless I explicitly add
one.

I guess I misunderstood you then. I thought you had a coercion from tt 7 to tt 5, but obviously not from 7 to 5.


Another example where this comes up in the actual development: We have a
dependent type of expressions (with the index in the type giving the
variables that may be free), and there is a function "wexpr" to weaken
that index. If I forgot to call wexpr e.g. in the definition of
substitution, I don't get an error -- instead, I get an unexpected and
unsolvable obligation. I then have to guess which of the many places
where expressions occur in the term caused is the culprit.

Kind regards,
Ralf

I actually don't use Program for various reasons, different from the ones you listed. I have better control over refine in proof mode.

-- Jonathan




Archive powered by MHonArc 2.6.18.

Top of Page