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


Quelle  bug_4450.v   Sprache: Coq

 
Polymorphic Axiom inhabited@{u} : Type@{u} -> Prop.

Polymorphic Axiom unit@{u} : Type@{u}.
Polymorphic Axiom tt@{u} : inhabited unit@{u}.

#[export] Polymorphic Hint Resolve tt : the_lemmas.
Set Printing All.
Set Printing Universes.
Goal inhabited unit.
Proof.
  eauto with the_lemmas.
Qed.

Universe u.
Axiom f : Type@{u} -> Prop.
Lemma fapp (X : Type) : f X -> False.
Admitted.
Polymorphic Axiom funi@{i} : f unit@{i}.

Goal (forall U, f U) -> (*(f unit -> False) ->  *)False /\ False.
  pose (H := fapp unit funi).
  eauto using H. (* The two fapp's have different universes *)
Qed.

Definition fapp0 := fapp unit funi.
#[exportHint Resolve fapp0 : mylems.

Goal (forall U, f U) -> (*(f unit -> False) ->  *)False /\ False.
  eauto with mylems. (* Forces the two fapps at the same level *)
Qed.

Goal (forall U, f U) -> (f unit -> False) -> False /\ False.
  eauto. (* Forces the two fapps at the same level *)
Qed.

Polymorphic Definition MyType@{i} := Type@{i}.
Universes l m n.
Constraint l < m.
Polymorphic Axiom maketype@{i} : MyType@{i}.

Goal MyType@{l}.
Proof.
  Fail solve [ pose (mk := maketype@{m}); eauto using mk ].
  eauto using maketype.
  Undo.
  pose (mk := maketype@{n}); eauto using mk.
Qed.

Axiom foo : forall (A : Type), list A.
Polymorphic Axiom foop@{i} : forall (A : Type@{i}), list A.

Universe x y.
Goal list Type@{x}.
Proof.
  pose (H := foo Type); eauto using H. (* Refreshes the term *)
  Undo.
  eauto using foo. Show Universes.
  Undo.
  eauto using foop. Show Proof. Show Universes.
Qed.

Messung V0.5
C=95 H=97 G=95

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