Debian Codegraph @

test-suite/bugs/bug_21601.v

raw
1 Require Import TestSuite.jmeq.
2
3 (* in stdlib this is a consequence of axiom in Eqdep *)
4 Axiom JMeq_eq : forall (A:Type) (x y:A), JMeq x y -> x = y.
5
6 Abbreviation JMeq' := (fun A x => @JMeq A x A).
7
8 Polymorphic Lemma JMeq_ind_r@{s;+} : forall (A:Type) (x:A) (P:A -> Type@{s;_}),
9 P x -> forall y, JMeq' A y x -> P y.
10 Proof.
11 intros A x P H y H'. destruct (JMeq_eq _ _ _ H'). assumption.
12 Qed.
13
14 Polymorphic Definition JMeq_leibniz_r@{s;u v w} : Has_Leibniz_r@{Type Prop s;u v w} JMeq' := JMeq_ind_r.
15
16 Hint Resolve JMeq_leibniz_r : rewrite_instances.
17
18 Goal forall A (x y : A), JMeq x y -> x = y.
19 intros A x y H.
20 rewrite H.
21 Abort.