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

Quelle  InductiveVsImplicitsVsTC.v   Sprache: Coq

 
Module NoConv.
  Class C := {}.

  Definition useC {c:C} := nat.

  Inductive foo {a b : C} := CC : useC -> foo.
  (* If TC search runs before parameter unification it will pick the
     wrong instance for the first parameter.

     useC makes sure we don't completely skip TC search.
   *)

End NoConv.

Module ForConv.

  Class Bla := { bla : Type }.

  #[exportInstance bli : Bla := { bla := nat }.

  Inductive vs := C : forall x : bla, x = 2 -> vs.
  (* here we need to resolve TC to pass the conversion problem if we
     combined with the previous example it would fail as TC resolution
     for conversion is unrestricted and so would resolve the
     conclusion too early. *)


End ForConv.

99%


¤ Dauer der Verarbeitung: 0.7 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.