(* 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 {_}.
Definition U := Type. Definition A : U := foo nat.
Fail Definition down : U -> A := fun u => bar nat u nonempty. (* this is the one where it's important that it fails *)
Messung V0.5 in Prozent
¤ 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.0.47Bemerkung:
(vorverarbeitet am 2026-09-29)
¤
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.