[Agda] `with' to case_of_ example

Andreas Abel andreas.abel at ifi.lmu.de
Fri May 6 14:47:34 CEST 2016


This is not a bug.

As a rule of thumb, functions such as delKey can be implemented using 
"case", but proofs about these functions usually need "with".

On 04.05.2016 12:51, Sergei Meshveliani wrote:
> Hi, all,
>
> I attach a small program for deleting a key from a pair list,
> and for proving  (Preserves _≈_ ⟶ _≡_)  for this operation.
>
> The `with' version is type-checked and the `case' version is not
> (Agda 2.5.1, ghc-7.10.2).
>
> Is this a bug?
> Can it be written as case_of_ ?
>
> (Agda 2.5.1, ghc-7.10.2).
>
> Thanks,
>
> ------
> Sergei
>
>
>
> _______________________________________________
> Agda mailing list
> Agda at lists.chalmers.se
> https://lists.chalmers.se/mailman/listinfo/agda
>


-- 
Andreas Abel  <><      Du bist der geliebte Mensch.

Department of Computer Science and Engineering
Chalmers and Gothenburg University, Sweden

andreas.abel at gu.se
http://www2.tcs.ifi.lmu.de/~abel/


More information about the Agda mailing list