Debian Codegraph @

test-suite/ssr/wlog_suff.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
16 Lemma test b : b || ~~b.
17 wlog _ : b / b = true.
18 case: b; [ by apply | by rewrite orbC ].
19 wlog suff: b / b || ~~b.
20 by case: b.
21 by case: b.
22 Qed.
23
24 Lemma test2 b c (H : c = b) : b || ~~b.
25 wlog _ : b {c H} / b = true.
26 by case: b H.
27 by case: b.
28 Qed.