Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  bug_19411.v   Sprache: Coq

 
Set Universe Polymorphism.

Inductive unit' := tt'.

Inductive eq {A : Type} (x : A) : A -> Prop :=
  eq_refl : eq x x.

Register eq as core.eq.type.
Register eq_refl as core.eq.refl.

Lemma posttest : True.
Proof.
  destruct tt eqn:V.
  Check V : eq tt tt. (* check that we did use the non stdlib eq *)

  destruct tt' eqn:V'.
  exact I.
Qed.
(*
In environment
u := tt : unit
The term "eq_refl u" has type "eq u u" while it is expected to have type "eq tt u".

if we remove the first destruct:
Error: Illegal application:
The term "@eq_refl@{foo.18}" of type "forall (A : Type@{foo.18}) (x : A), @eq@{foo.18} A x x"
cannot be applied to the terms
 "unit'@{foo.16}" : "Type@{foo.16}"
 "u" : "unit'@{foo.16}"
The 1st term has type "Type@{foo.16}" which should be a subtype of "Type@{foo.18}".

(the difference is because unit : Set but unit'@{u} : Type@{u})
*)


Messung V0.5
C=92 H=99 G=95

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© 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 und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge