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


Quelle  NotationsAndLtac.v   Sprache: Coq

 
(* Test that adding notations that overlap with the tactic grammar does not
* interfere with Ltac parsing. *)


Module test1.
  Notation "x [ y ]" := (fst (id x, id y)) (at level 11).

  Goal True \/ (exists x : nat, True /\ True) -> True.
  Proof.
  intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]].
  Qed.
End test1.

Module test2.
  Notation "x [ y ]" := (fst (id x, id y)) (at level 100).
  Goal True \/ (exists x : nat, True /\ True) -> True.
  Proof.
  intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]].
  Qed.
End test2.

Module test3.
  Notation "x [ y ]" := (fst (id x, id y)) (at level 1).
  Goal True \/ (exists x : nat, True /\ True) -> True.
  Proof.
  intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]].
  Qed.
End test3.

Module test1'.
  Notation "x [ [ y ] ] " := (fst (id x, id y)) (at level 11).

  Goal True \/ (exists x : nat, True /\ True) -> True.
  Proof.
  intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]].
  Qed.
End test1'.

Module test2'.
  Notation "x [ [ y ] ]" := (fst (id x, id y)) (at level 100).
  Goal True \/ (exists x : nat, True /\ True) -> True.
  Proof.
  intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]].
  Qed.
End test2'.

Module test3'.
  Notation "x [ [ y ] ]" := (fst (id x, id y)) (at level 1).
  Goal True \/ (exists x : nat, True /\ True) -> True.
  Proof.
  intros [|[a [y z]]]; [idtac|idtac]; try solve [eauto | trivial; [trivial]].
  Qed.
End test3'.

Messung V0.5
C=95 H=89 G=91

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