Debian Codegraph @

test-suite/bugs/bug_12414.v

raw
1 Set Universe Polymorphism.
2 Set Printing Universes.
3 Inductive list {T} : Type := | cons (t : T) : list -> list. (* who needs nil anyway? *)
4 Arguments list : clear implicits.
5
6 Fixpoint map {A B} (f: A -> B) (l : list A) : list B :=
7 let '(cons t l) := l in cons (f t) (map f l).
8 About map@{_ _}.
9 (* Two universes, as expected. *)
10
11 Definition map_Set@{} {A B : Set} := @map A B.
12
13 Definition map_Prop@{} {A B : Prop} := @map A B.