Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/doc/plugin_tutorial/tuto4/theories/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 1 kB image not shown  

Quelle  Loader.v   Sprache: Coq

 
From Ltac2 Require Import Ltac2.

Declare ML Module "rocq-plugin-tutorial.tuto4".

(** A simple function taking an integer and returning a boolean.
   Note that the internal name "the_question" does not need to match the exposed name "question". *)

Ltac2 @external question : int -> bool
  := "rocq-plugin-tutorial.tuto4" "the_question".

(** a wrapper around "exact" *)
Ltac2 @external tuto_exact : constr -> unit
  := "rocq-plugin-tutorial.tuto4" "my_exact".

(** Some custom type. *)
Ltac2 Type custom := [ A | B (constr) ].

(** A function returning true if passed [A] or [B] of some inductive type. *)
Ltac2 @external ind_or_a : custom -> bool
  := "rocq-plugin-tutorial.tuto4" "is_ind_or_a".

(** a function returning [A] if the ident is not an hypothesis,
    or [B t] where [t] is its type if it is. *)

Ltac2 @external check_in_goal : ident -> custom
  := "rocq-plugin-tutorial.tuto4" "check_in_goal".

(** Another custom type, this one abstract on the Ltac2 side. *)
Ltac2 Type custom2.

(** Build a custom2 value. *)
Ltac2 @external mk_custom2 : int -> int -> custom2
  := "rocq-plugin-tutorial.tuto4" "mk_custom2".

(** Get something from a custom2 value. *)
Ltac2 @external sum2 : custom2 -> int
  := "rocq-plugin-tutorial.tuto4" "sum2".

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

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.