Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Type casting of a dependent type

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Type casting of a dependent type


Chronological Thread 
  • From: 劉弘毅 <liukoki AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Type casting of a dependent type
  • Date: Tue, 29 Sep 2020 00:09:51 +0900
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=liukoki AT gmail.com; spf=Pass smtp.mailfrom=liukoki AT gmail.com; spf=None smtp.helo=postmaster AT mail-ot1-f50.google.com
  • Ironport-phdr: 9a23:UOmGkRMe5p6UyUJc4Cwl6mtUPXoX/o7sNwtQ0KIMzox0LfX7rarrMEGX3/hxlliBBdydt6sbzbCI+P66EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe/bL9oMhm7rArdu8gIjYB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVRnlgzoFOTEk6mHaksN/jKxZrxyhqRJxwJPabp+JO/dlZKzRYckXSHBdUspNVSFMBJ63YYsVD+oGOOZVt4//pV0IrxCjAgSsAOLvyiJLhn/x3q060v8sEQ7D3AM6HtIOtG7Yo8nyNKcXSO24yrTDwjrfYf1Mwzj99JTIfQ47ofGKRb98b9TcxEYsGg3KklidqZLpMy2b2OkTsGWW7/RtWOOuhmM5pQx/rSajy8YyhoTXmo8Yy0zJ+CtlzYorO9C1SkF1bNi5G5VesCGaMpF5QsIkQ2xwpCk6yrkGuZ+jfCcQzJQo3QTTa/qZfIiU5B/oSeWfIS9giX57ZL6ygwy+/Eugx+HmSMW4zUpGojBFn9XQsH0Gygbd5dKdSvRn+0eswTaP2B7X6uFDOU00kLDUK58lwrIpkZoTrVnPEjb4mEj2kKOabEok+u+v6+ToZrXpuIWQOJNzigH7Kqgum8q/DvokMgUWQWSX5eCx2Kfg8ED5WrlGkOA6nrXDvJ3aOcgXvqu5DBVU0oYn5Ra/FTCm0NEAkHkDLVJFZRGHj4/qO1HPO/34AvK/jE6tkDdv3fzJIrrhApDVInjZjLjhZap961JbyAcr0d9f4ItUBqgdL/L3R0/+r8fVDgQ5Mgyx2+boEs9x1oIYWWKVA6+WKrnesVGS5rFnH+7Zb4gM/T35NvIN5vj0jHZ/l0VOU7Ou2M7vkIjwSvBnPkaeYnvEjdIIEGNMtQ07Gr+5wGaeWCJeMi7hF5k34Ss2Xdr/UdXzA7u1ibnE5x+VW4VMbzkfWF+JGHbsMY6DXqVUMXPAEopaijUBEIOZZcok3BCquhX9zuM+fOXR8ywc85nk0YosvrCBpVQJ7TVxSv+l/SSNQmVzxD5aQjY32OV4vRU4xArbl6d/hPNcGJpY4PYbCgo=

I didn't know that the word "Qed." actually makes the value opaque. Thanks for telling that to me.

On Tue, Sep 29, 2020 at 12:08 AM 劉弘毅 <liukoki AT gmail.com> wrote:
Thanks. Yeah, it seems that I don't have enough understanding of the proofs regarding dependent types yet. I'm gonna get a basic understanding of the field with a textbook, and CPDT seems a good one. Thanks for introducing that to me.


On Mon, Sep 28, 2020 at 11:37 PM Adam Chlipala <adamc AT csail.mit.edu> wrote:
You are headed into complex territory here, and I recommend reading a comprehensive introduction, rather than proceeding one question at a time.  I'm biased, but my suggestion is Chapter 10 of CPDT.

On 9/28/20 10:34 AM, 劉弘毅 wrote:
Could I ask you another question? Now, is there a way to show the equivalence of "omega" and "cast"?
I would like to do something like
  omega a = cast a
Since (T (f a)) and (T (g a)) are the different expressions of the same type, these values should be comparable. However, the equation does not type-check.
Moreover, I cannot unfold the "cast" function since it is defined with "Proof" and made opaque. Is it impossible to make this kind of comparison?




Archive powered by MHonArc 2.6.19+.

Top of Page