Comment
Comment by thesz
Arithmetic inside the types not necessarily introduces undecidability. One example is telescopes for indices:
To safely access an element in array you have to provide a proof that a telescope can be constructed for given index range.