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


Quelle  DebugRelevances.v   Sprache: Coq

 

Set Universe Polymorphism.
Set Printing Relevance Marks.

Definition foo (A:Type) (a:A) := a.
Definition foo' (A:Prop) (a:A) := a.
Definition bar (A:SProp) (a:A) := a.
Definition baz@{s;u|} (A:Type@{s;u}) (a:A) := a.

Definition hide@{s;u|} {A:Type@{s;u}} := A.
Definition boz@{s s';u|} (A:Type@{s;u}) (B:Type@{s';u}) (a:@hide A) (b:@hide B) := a.

Print foo.
Print foo'.
Print bar.
Print baz.

(* arguments a and b are printed separately because they have different relevances
   even though the types are printed the same (difference hidden by implicit arguments) *)

Print boz.

Inductive sFalse : SProp := .

Goal True.
  Unset Printing Notations. (* arrow notation has no binder so relevance isn't printed *)
  pose (f:=fun A (a:A) => A).
  Show.
  let _ := constr:(f nat) in idtac.
  Show.
Abort.
Set Printing Notations.

(* TODO print relevance of letin *)
Check let x := 0 in x.

(* TODO print relevance of fixpoints (should be fix f (* Relevant *) ...) *)
Check fix f (n:nat) := 0.


(* TODO print case relevance *)
Check match 0 with 0 | _ => 0 end.

(* TODO print primitive projection relevance *)
Set Primitive Projections.
Record R := { p : nat }.
Check fun v => v.(p).

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

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