Debian Codegraph @

test-suite/success/abstract_poly.v

raw
1 Set Universe Polymorphism.
2
3 Inductive path@{i} {A : Type@{i}} (x : A) : A -> Type@{i} := refl : path x x.
4 Inductive unit@{i} : Type@{i} := tt.
5
6 Scheme Rewriting for path.
7
8 Lemma foo@{i j} : forall (m n : unit@{i}) (P : unit -> Type@{j}), path m n -> P m -> P n.
9 Proof.
10 intros m n P e p.
11 abstract (rewrite e in p; exact p).
12 Defined.
13
14 Check foo_subproof@{Set Set}.
15
16 Lemma bar : forall (m n : unit) (P : unit -> Type), path m n -> P m -> P n.
17 Proof.
18 intros m n P e p.
19 abstract (rewrite e in p; exact p).
20 Defined.
21
22 Check bar_subproof@{Set Set}.