[Agda] Inductive indexing

Wouter Swierstra wss at cs.nott.ac.uk
Thu Apr 3 21:02:33 CEST 2008


Hi Dan,

>  data Env : Nat -> ...
>
> But, we're stuck there, because the vector depends on the value of the
> natural. I eventually worked out the following encoding:

I think you are allowed to write:

   data Env : (n : Nat) -> Vec n -> Set where
     ...

which avoids having to work with sigma types.

Hope this helps,

   Wouter


More information about the Agda mailing list