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


Quelle  ltac2_check_globalize.v   Sprache: Coq

 
Require Import Ltac2.Ltac2.

Unset Ltac2 Typed Notations.

Ltac2 Notation "foo" := ().

Ltac2 Globalize foo.

Ltac2 Check foo.

Ltac2 Check (fun x => x : 'a -> 'a).

Ltac2 Globalize (() ()).

Ltac2 Notation "bar" := (1,2).

(* check that CTacApp nodes don't get merged or that we handle merging them correctly. *)
Ltac2 Globalize bar 3.

Ltac2 Globalize let x := () in x ().

Fail Ltac2 Check let x := () in x ().

Ltac2 Notation "complicated_typing" x(tactic) :=
  let _ := x 1 in
  let _ := x "" in
  ().

Ltac2 Globalize complicated_typing (fun x => x).

Ltac2 Check complicated_typing (fun x => x).

Ltac2 Globalize
  let accu := { contents := [] } in
  complicated_typing (fun x => accu.(contents) := x :: accu.(contents));
  accu.(contents).

Fail Ltac2 Check
  let accu := { contents := [] } in
  complicated_typing (fun x => accu.(contents) := x :: accu.(contents));
  accu.(contents).

Ltac2 Globalize lazy_match! goal with
  | [h: _ |- _] => (* lots of code... *) Std.clear h (* more code... *)
  | [|- _] => (* lots of code... *) ()
  end.

Ltac2 Globalize constr:(ltac2:(foo)).

Messung V0.5
C=94 H=100 G=96

¤ 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