products/Sources/formale Sprachen/Coq/test-suite/bugs/closed image not shown  

Quellcode-Bibliothek

© Kompilation durch diese Firma

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

Datei: bug_4628.v   Sprache: Coq

Original von: Coq©

Module first.
  Polymorphic Record BAR (A:Type) :=
  { foo: A->Prop; bar: forall (x y: A), foo x -> foo y}.

Section A.
Context {A:Type}.

Set Printing Universes.

Hint Resolve bar.
Goal forall (P:BAR A) x y, foo _ P x -> foo _ P y.
intros.
eauto.
Qed.
End A.
End first.

Module firstbest.
  Polymorphic Record BAR (A:Type) :=
  { foo: A->Prop; bar: forall (x y: A), foo x -> foo y}.

Section A.
Context {A:Type}.

Set Printing Universes.

Polymorphic Hint Resolve bar.
Goal forall (P:BAR A) x y, foo _ P x -> foo _ P y.
intros.
eauto.
Qed.
End A.
End firstbest.

Module second.
Axiom foo: Set.
Axiom foo': Set.

Polymorphic Record BAR (A:Type) :=
  { bar: foo' -> foo}.
Set Printing Universes.

Lemma baz@{i}: forall (P:BAR@{Set} nat), foo' -> foo.
  eauto using bar.
Qed.
End second.

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