Eine aufbereitete Darstellung der Quelle

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

Benutzer

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 in Prozent
C=91 H=98 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik