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: if104a.cob   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.15 Sekunden  (vorverarbeitet)  ¤





Druckansicht
unsichere Verbindung
Druckansicht
sprechenden Kalenders

Eigene Datei ansehen




schauen Sie vor die Tür

Fenster


Die Firma ist wie angegeben erreichbar.

Die farbliche Syntaxdarstellung ist noch experimentell.


Bot Zugriff