For a specific indexed coinductive type, what would be the easiest way to define its functor and terminal object with regards to its coalgebra?
For a non-indexed, it is pretty easy, but not for the indexed case.
For example, how would you define the functor for this :
"
record Stream (n : ℕ) : 𝓤₀ ̇ where
coinductive
field
k : ℕ
cond : succ n ≤ k
next : Stream k
"