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

Quelle  bug_20092.v   Sprache: Coq

 
Module Record.
  Record foo := {x:nat; y:nat}.

  Existing Class foo.

  Fail Instance baz : foo := _.

  #[refine] Instance bar : foo := {}.
  Proof.
    1,2:exact 0.
  Qed.

  Instance bar' : foo := {x:=0; y:=0}.

  Instance baz : foo := _.

  Instance baz' : foo.
  Proof.
    exact baz.
  Qed.
End Record.

Module Inductive.

  Inductive foo := mkfoo (x:nat) (y:nat).

  Existing Class foo.

  Fail Instance baz : foo := _.

  #[refine] Instance bar : foo := {}.
  Proof.
    constructor.
    1,2:exact 0.
  Qed.

  Fail Instance bar' : foo := {x:=0; y:=0}.

  Instance baz : foo := _.

  Instance baz' : foo.
  Proof.
    exact baz.
  Qed.
End Inductive.

Module EmptyRecord.
  Record foo := {}.

  Existing Class foo.

  Fail Instance baz : foo := _.

  Instance bar : foo := {}.

  Instance baz : foo := _.

  Instance baz' : foo.
  Proof.
    exact baz.
  Qed.
End EmptyRecord.

95%


¤ 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.