From 092b80668ed9b56b54906f362ae6fae8155e94b0 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Mon, 3 Oct 2016 16:20:41 -0400 Subject: Work around bug 5107 (broken return inference) This is https://coq.inria.fr/bugs/show_bug.cgi?id=5107, Unification got weaker in the past week or so. We work around this by making [dlet] non-dependent. --- src/Util/LetIn.v | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Util/LetIn.v') diff --git a/src/Util/LetIn.v b/src/Util/LetIn.v index 366ae5dff..db09baf9c 100644 --- a/src/Util/LetIn.v +++ b/src/Util/LetIn.v @@ -8,6 +8,10 @@ Definition Let_In_pf {A P} (x : A) (f : forall a : A, a = x -> P a) : P x := let Notation "'dlet' x := y 'in' f" := (Let_In y (fun x => f)). Notation "'pflet' x , pf := y 'in' f" := (Let_In_pf y (fun x pf => f)). +Module Bug5107WorkAround. + Notation "'dlet' x := y 'in' f" := (Let_In (P:=fun _ => _) y (fun x => f)). +End Bug5107WorkAround. + Global Instance Proper_Let_In_nd_changebody {A P R} {Reflexive_R:@Reflexive P R} : Proper (eq ==> pointwise_relation _ R ==> R) (@Let_In A (fun _ => P)). Proof. lazy; intros; subst; auto; congruence. Qed. -- cgit v1.2.3