(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
RequireImport ssreflect ssrbool.
SetImplicitArguments.
Inductive wf T : bool -> option T -> Type :=
| wf_f : wf false None
| wf_t : forall x, wf true (Some x).
Derive Inversion wf_inv with (forall T b (o : option T), wf b o) Sort Prop.
Lemma Problem T b (o : option T) :
wf b o -> match b with
| true => exists x, o = Some x
| false => o = None end. Proof. bycase: b; elim/wf_inv=> //; case: o=> // a *; exists a. Qed.
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.