How to create a list of elements of an indexed data type, whose length depends on the index
I am busy formalising a theorem using a library which introduces an indexed datatype. For simplicity one can think of it to have the form data idx (n : ℕ)
.
Agda: Create a list of elements of an indexed data type, whose length depends on the index
I am busy formalising a theorem using a library which introduces an indexed datatype. For simplicity one can think of it to have the form data idx (n : ℕ)
.