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 567 B image not shown  

Quelle  bug_13271.v   Sprache: Coq

 
Require Program.Tactics.

Definition PeanoWithMax (maxValue : nat) : Set := { value : nat | value <= maxValue }.

Polymorphic Definition NonEmptyList (elementType : Type) : Type :=
  { list : list elementType | list <> nil }.

Axiom n : nat.
Axiom ListFromPeano : forall (value : nat), list (PeanoWithMax n).

Polymorphic Program Definition FromPeano (value : nat) : NonEmptyList (PeanoWithMax n) :=
  match value with
  | 0 => exist _ (cons (exist _ 0 _) nil) _
  | S _ => exist _ (ListFromPeano value) _
  end.
Next Obligation.
Admitted.
Next Obligation.
Admitted.

98%


¤ 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 ist noch experimentell.