(* when we require template poly Coq recognizes that it's not allowed *)
Fail #[universes(template)] Inductive foo@{i} (A:Type@{i}) : Type@{i+1} := bar (X:Type@{i}) : foo A.
(* variants with letin *)
Fail #[universes(template)] Inductive foo@{i} (T:=Type@{i}:Type@{i+1}) (A:Type@{i}) : Type@{i+1} := bar (X:T) : foo A.
Fail #[universes(template)]
Record foo@{i} (T:=Type@{i}:Type@{i+1}) (A:Type@{i}) : Type@{i+1} := bar { X:T }.
(* no implicit template poly, no explicit universe annotations *) Inductive foo (A:Type) := bar X : foo X -> foo A | nonempty. Arguments nonempty {_}.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.