Debian Codegraph @

test-suite/ssr/abstract_var2.v

raw
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 Require Import ssreflect.
12
13 Set Implicit Arguments.
14
15 Axiom P : nat -> nat -> Prop.
16
17 Axiom tr :
18 forall x y z, P x y -> P y z -> P x z.
19
20 Lemma test a b c : P a c -> P a b.
21 Proof.
22 intro H.
23 Fail have [: s1 s2] H1 : P a b := @tr _ _ _ s1 s2.
24 have [: w s1 s2] H1 : P a b := @tr _ w _ s1 s2.
25 Abort.