products/sources/formale sprachen/Coq/test-suite/success image not shown  

Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei: mutual_record.v   Sprache: Coq

Original von: Coq©

Module M0.

Inductive foo (A : Type) := Foo {
  foo0 : option (bar A);
  foo1 : nat;
  foo2 := foo1 = 0;
  foo3 : foo2;
}

with bar (A : Type) := Bar {
  bar0 : A;
  bar1 := 0;
  bar2 : bar1 = 0;
  bar3 : nat -> foo A;
}.

End M0.

Module M1.

Set Primitive Projections.

Inductive foo (A : Type) := Foo {
  foo0 : option (bar A);
  foo1 : nat;
  foo2 := foo1 = 0;
  foo3 : foo2;
}

with bar (A : Type) := Bar {
  bar0 : A;
  bar1 := 0;
  bar2 : bar1 = 0;
  bar3 : nat -> foo A;
}.

End M1.

Module M2.

Set Primitive Projections.

CoInductive foo (A : Type) := Foo {
  foo0 : option (bar A);
  foo1 : nat;
  foo2 := foo1 = 0;
  foo3 : foo2;
}

with bar (A : Type) := Bar {
  bar0 : A;
  bar1 := 0;
  bar2 : bar1 = 0;
  bar3 : nat -> foo A;
}.

End M2.

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet)  ¤





Download des
Quellennavigators
Download des
sprechenden Kalenders

in der Quellcodebibliothek suchen




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.


Bot Zugriff