[Agda] overlapping patters

Jesper Cockx Jesper at sikanda.be
Wed Mar 13 02:26:27 CET 2019


Hi Sergei,

If you load your file in the Emacs mode, you will notice the second clause
has a (very faint) grey background on the second clause, which means that
it does not hold definitionally. You can also enable the option
--exact-split, which will make Agda raise an error when there are
overlapping patterns.

-- Jesper

On Tue, Mar 12, 2019 at 7:00 PM Sergei Meshveliani <mechvel at botik.ru> wrote:

> Dear Agda developers,
>
> I have a function defined by several patterns, and it is type-checked.
> But the first pattern is a special case of the second one. And after its
> removal the program remains type-checked.
>
> Is Agda (Development, January 1, 2019) supposed to report about such
> overlaps?
>
> Thanks,
>
> ------
> Sergei
>
> _______________________________________________
> Agda mailing list
> Agda at lists.chalmers.se
> https://lists.chalmers.se/mailman/listinfo/agda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chalmers.se/pipermail/agda/attachments/20190313/f7e9b4c9/attachment.html>


More information about the Agda mailing list