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

Quelle  bug_20699.v   Sprache: Coq

 
CoInductive strm := { hd : nat; tl : strm }.

CoFixpoint seq n := {| hd := n; tl := seq (S n) |}.

Definition test_lazy := Eval lazy in
  let x := seq in
  (hd (x 1), hd (x 5)).

Definition test_vm := Eval vm_compute in
  let x := seq in
  (hd (x 1), hd (x 5)).

Definition test_native := Eval native_compute in
  let x := seq in
  (hd (x 1), hd (x 5)).

Check eq_refl : test_lazy = (1, 5).
Check eq_refl : test_lazy = test_vm.
Check eq_refl : test_lazy = test_native.

97%


¤ Dauer der Verarbeitung: 0.3 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 ist noch experimentell.