Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/test-suite/success/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 575 B image not shown  

Quelle  refine_definition.v   Sprache: Coq

 

#[refine] Definition test : { x : nat | x < 4 } := exist _ 3 _.
Proof.
  constructor.
Defined.

#[refine] Fixpoint fixtest (n : nat) :=
  match n with
  | 0 => _
  | S k => _
  end.
Proof.
  1: shelve.
  - exact 1.
  - refine (n * _).
    apply fixtest.
    apply k.
Defined.


#[refine] Definition infer_test := 1 + _.
Proof.
  apply fixtest, 1.
Qed.

#[refine] Definition true_infer_test := _.
Proof.
  2: exact (if true as b return if b then _ else _ then 0 else false).
Qed.

(* Cannot use Eval with #[refine]. *)
Fail #[refine] Definition notest := Eval lazy in 0 + 0.

Messung V0.5
C=87 H=95 G=90

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.