Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] representing functions' domains and ranges

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] representing functions' domains and ranges


Chronological Thread 
  • From: Robbert Krebbers <mailinglists AT robbertkrebbers.nl>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] representing functions' domains and ranges
  • Date: Tue, 18 Aug 2015 22:54:51 +0200

On 08/18/2015 10:50 PM, Vadim Zaliva wrote:
Are there are other, alternative representations for such functions? My
current one works but
proofs look a big messy as expressions end up littered with projection
function applications.
For exactly that reason I tend to prefer total (non-dependently typed) functions most of the time. In that case, you could just return a dummy value if the input is outside of the domain. Separately from that, you could prove that the result of the function is within its range, provided the input is within the domain.



Archive powered by MHonArc 2.6.18.

Top of Page