Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/test-suite/success/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 1 kB image not shown  

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.9 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.