Debian Codegraph @

test-suite/bugs/HoTT_coq_059.v

raw
1 (* -*- mode: coq; coq-prog-args: ("-indices-matter") -*- *)
2 Set Universe Polymorphism.
3
4 Inductive eq {A} (x : A) : A -> Type := eq_refl : eq x x.
5 Notation "a = b" := (eq a b) : type_scope.
6
7 Section foo.
8 Class Funext := { path_forall :: forall A P (f g : forall x : A, P x), (forall x, f x = g x) -> f = g }.
9 Context `{Funext, Funext}.
10
11 Set Printing Universes.
12
13 (** Typeclass resolution should pick up the different instances of Funext automatically *)
14 Definition foo := (@path_forall _ _ _ (@path_forall _ Set)).
15 (* Toplevel input, characters 0-60:
16 Error: Universe inconsistency (cannot enforce Top.24 <= Top.23 because Top.23
17 < Top.22 <= Top.24). *)
18 End foo.