From ae43495dee6e3f4ab407a49050ea2546ab6bd428 Mon Sep 17 00:00:00 2001 From: Matthieu Sozeau Date: Thu, 24 Aug 2017 16:36:52 +0200 Subject: primproj: fix bug 5245, hnf on proj with simpl never flag. --- test-suite/bugs/closed/5245.v | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test-suite/bugs/closed/5245.v (limited to 'test-suite/bugs') diff --git a/test-suite/bugs/closed/5245.v b/test-suite/bugs/closed/5245.v new file mode 100644 index 000000000..77bf169e1 --- /dev/null +++ b/test-suite/bugs/closed/5245.v @@ -0,0 +1,18 @@ +Set Primitive Projections. + +Record foo := Foo { + foo_car : Type; + foo_rel : foo_car -> foo_car -> Prop +}. +Arguments foo_rel : simpl never. + +Definition foo_fun {A B} := Foo (A -> B) (fun f g => forall x, f x = g x). + +Goal @foo_rel foo_fun (fun x : nat => x) (fun x => x). +Proof. +intros x; exact eq_refl. +Undo. +progress hnf; intros; exact eq_refl. +Undo. +unfold foo_rel. intros x. exact eq_refl. +Qed. \ No newline at end of file -- cgit v1.2.3