[Agda] Recursive Sets / refine vs. load

Altenkirch Thorsten psztxa at exmail.nottingham.ac.uk
Sun Mar 25 17:55:36 CEST 2012

To me pattern matching is just a shorthand for using eliminators such as case. In this view it is hard to make sense of your suggestion.


Sent from my iPad

On 24 Mar 2012, at 22:13, "Nils Anders Danielsson" <nad at chalmers.se> wrote:

> On 2012-03-24 18:12, Brandon Moore wrote:
>> The following definition looks reasonable to me,
>> the type of the hole is reported as ℕ → Set,
>> and refine/give accepts what I've written there,
>> but then typechecking the file fails, saying
>> t true !=< ℕ of type Set
> [...]
>> t : Bool → Set
>> t true = ℕ
>> t false = Σ (t true) {!Vec Bool!}
>> Why isn't this definition accepted?
> Because (non-mutual) definitions are not unfolded before they have been
> type-checked. Unfortunately this does not apply to goals: Agda forgets
> that t should not unfold when Vec Bool is type-checked. This is a
> long-standing bug:
>   http://code.google.com/p/agda/issues/detail?id=118
> -- 
> /NAD
> _______________________________________________
> Agda mailing list
> Agda at lists.chalmers.se
> https://lists.chalmers.se/mailman/listinfo/agda

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

More information about the Agda mailing list