Debian Codegraph @

test-suite/bugs/bug_5706.v

raw
1 From Corelib.ssr Require Import ssreflect.
2 From Corelib Require Import RelationClasses Relation_Definitions Setoid.
3
4 Parameter P : nat -> Prop.
5 Parameter f : nat -> nat.
6 Parameter foo_eq : forall x, P 0 -> P 1 -> x = f x.
7
8 Axiom p0 : P 0.
9 Axiom p1 : P 1.
10
11 Goal 0 = f 0.
12 Proof.
13 rewrite -(foo_eq 0); [ exact: p0 | exact: p1 | reflexivity ].
14 Abort.
15
16
17 Parameter R : relation nat.
18 Parameter R_equivalence : Equivalence R.
19 #[global] Existing Instance R_equivalence.
20
21 Parameter foo_R : forall x, P 0 -> P 1 -> R x (f x).
22
23 Goal R 0 (f 0).
24 Proof.
25 rewrite -(foo_R 0); [ exact: p0 | exact: p1 | apply: Equivalence_Reflexive ].
26 Abort.