Debian Codegraph @

test-suite/ssr/intro_noop.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 Require Import ssrbool.
15 Axiom daemon : False. Ltac myadmit := case: daemon.
16
17 Lemma v : True -> bool -> bool. Proof. by []. Qed.
18
19 Reserved Notation " a -/ b " (at level 1).
20 Reserved Notation " a -// b " (at level 1).
21 Reserved Notation " a -/= b " (at level 1).
22 Reserved Notation " a -//= b " (at level 1).
23
24 Lemma test : forall a b c, a || b || c.
25 Proof.
26 move=> ---a--- - -/=- -//- -/=- -//=- b [|-].
27 move: {-}a => /v/v-H; have _ := H I I.
28 Fail move: {-}a {H} => /v-/v-H.
29 have - -> : a = (id a) by [].
30 have --> : a = (id a) by [].
31 have - - _ : a = (id a) by [].
32 have -{1}-> : a = (id a) by [].
33 by myadmit.
34 move: a.
35 case: b => -[] //.
36 by myadmit.
37 Qed.