Debian Codegraph @

test-suite/ssr/deferclear.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 (* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *)
12
13 Require Import ssreflect.
14
15 Require Import ssrbool TestSuite.ssr_mini_mathcomp.
16
17 Parameter T : Type.
18
19 Lemma test0 : forall a b c d : T, True.
20 Proof. by move=> a b {a} a c; exact I. Qed.
21
22 Parameter P : T -> Prop.
23
24 Lemma test1 : forall a b c : T, P a -> forall d : T, True.
25 Proof. move=> a b {a} a _ d; exact I. Qed.
26
27 Definition Q := forall x y : nat, x = y.
28 Axiom L : 0 = 0 -> Q.
29 Axiom L' : 0 = 0 -> forall x y : nat, x = y.
30 Lemma test3 : Q.
31 by apply/L.
32 Undo.
33 rewrite /Q.
34 by apply/L.
35 Undo 2.
36 by apply/L'.
37 Qed.