Debian Codegraph @

test-suite/bugs/bug_5384.v

raw
1 Set Universe Polymorphism.
2 Set Printing Universes.
3 Require Import CMorphisms.
4 Require Setoid.
5
6 Definition Subset@{A P} (A : Type@{A}) := A -> Type@{P}.
7
8 Definition Included@{A P} {A : Type@{A}} :
9 Subset@{A P} A -> Subset@{A P} A -> Type@{max(A,P)} :=
10 fun U V => forall a : A, U a -> V a.
11
12 Definition Intersection@{A P Q PQ} {A} :
13 Subset@{A P} A -> Subset@{A Q} A -> Subset@{A PQ} A :=
14 fun U V a => (U a * V a)%type.
15
16 Theorem Intersection_Included_l : forall A (U V : Subset A),
17 Included (Intersection U V) U.
18 Proof.
19 firstorder.
20 Qed.
21
22 #[export] Instance Included_PreOrder : forall A, PreOrder (@Included A).
23 Proof.
24 firstorder.
25 Qed.
26
27 Lemma Intersection_Prop {A} {U : Subset A} :
28 Included (Intersection U U) U.
29 Proof.
30 rewrite Intersection_Included_l.
31 Abort.