Debian Codegraph @

test-suite/bugs/bug_5369.v

raw
1 Require Import Corelib.Classes.Morphisms Corelib.Setoids.Setoid.
2 Axiom f g : nat -> nat -> nat.
3 Axiom Hfg : forall n m, n = n -> f n m = g n m.
4 Axiom LetIn : forall {A B} (x : A) (f : A -> B), B.
5 Axiom LetIn_Proper : forall A B, Proper (eq ==> pointwise_relation _ eq ==> eq)
6 (@ LetIn A B).
7 #[export] Existing Instance LetIn_Proper.
8
9 Goal forall n, LetIn n (fun n' => f 1 n') = LetIn n (fun n' => g 1 n').
10 Proof.
11 intros.
12 setoid_rewrite Hfg.
13 - reflexivity.
14 - exact (eq_refl 1).
15 Qed.