<div dir="ltr">The sort is not allowed to depend on an index to prevent you from defining things like<div><br></div><div> data D : (a : Level) -> Set a where</div><div> c0 : D lzero</div><div> c1 : D (lsuc lzero)</div><div> _+_ : (a b : Level) -> D a -> D b -> D (a ⊔ b)</div><div><br></div><div>I don't know that having such definitions would break anything, but I also have no idea</div><div>what they mean.</div><div><br></div><div>In principle the restriction could be relaxed to allow your definition, but that would make</div><div>it more complex to implement and explain, and offer no tangible benefits. We would</div><div>allow exactly those cases where the level could be made a parameter.</div><div><br></div><div>/ Ulf</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 8:41 PM, v0id_NULL <span dir="ltr"><<a href="mailto:igorzsci@gmail.com" target="_blank">igorzsci@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear list,</div><div><br></div><div>Help me please. I can not understand what difference between these definitions.</div><div><br></div><div>data T1 {ℓ} : Set ℓ where</div><div> c1 : T1</div><div><br></div><div>data T2 : {ℓ : _} → Set ℓ where</div><div> c2 : T2</div><div><br></div><div>Why first one is approved but second one is rejected with error</div><div>"The sort of T2 cannot depend on its indices in the type {ℓ : Agda.Primitive.Level} → Set ℓ when checking the definition of T2"?</div></div>
<br>______________________________<wbr>_________________<br>
Agda mailing list<br>
<a href="mailto:Agda@lists.chalmers.se">Agda@lists.chalmers.se</a><br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda" rel="noreferrer" target="_blank">https://lists.chalmers.se/<wbr>mailman/listinfo/agda</a><br>
<br></blockquote></div><br></div>