[Agda] trouble with with

Nils Anders Danielsson nils.anders.danielsson at gmail.com
Sun May 4 19:43:19 CEST 2008


On Sun, May 4, 2008 at 4:14 PM, Thorsten Altenkirch <txa at cs.nott.ac.uk> wrote:
>
>   plusView {succ m} {n} (fs i) with plusView {m} {n} i
>   plusView {succ m} {n} .(fs (finl {m} {n} j)) | (inl {.m} {.n} j) = ?
>   plusView {succ m} {n} .(fs (finr {m} {n} j)) | (inr {.m} {.n} j) = ?

Agda complains because you have dotted the fs constructor. This code works:

  plusView {succ m} {n} (fs i) with plusView {m} {n} i
  plusView {succ m} {n} (fs .(finl {m} {n} j)) | (inl {.m} {.n} j) = ?
  plusView {succ m} {n} (fs .(finr {m} {n} j)) | (inr {.m} {.n} j) = ?

-- 
/NAD


More information about the Agda mailing list