Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/sophus/tst/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 9.7.2022 mit Größe 1 kB image not shown  

Quelle  tac2intern.mli   Sprache: unbekannt

 
(************************************************************************)
(*         *      The Rocq Prover / The Rocq Development Team           *)
(*  v      *         Copyright INRIA, CNRS and contributors             *)
(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)

open Names
open Mod_subst
open Tac2expr

type context = (Id.t * type_scheme) list

val intern : strict:bool -> context -> raw_tacexpr -> glb_tacexpr * type_scheme
val intern_typedef : (KerName.t * int) Id.Map.t -> raw_quant_typedef -> glb_quant_typedef
val intern_open_type : raw_typexpr -> type_scheme
val intern_notation_data : Id.Set.t -> raw_tacexpr -> Tac2env.notation_data

(** [check_unused] is default true *)
val genintern_warn_not_unit : ?check_unused:bool ->
  Genintern.glob_sign ->
  (Name.t * Tac2typing_env.mix_type_scheme) list ->
  raw_tacexpr ->
  glb_tacexpr

val genintern : ?check_unused:bool ->
  Genintern.glob_sign ->
  (Name.t * Tac2typing_env.mix_type_scheme) list ->
  Tac2typing_env.TVar.t glb_typexpr ->
  raw_tacexpr ->
  glb_tacexpr

type not_value_reason =
  | MutString
  | Application
  | MutDef of ltac_constant
  | MutCtor of type_constant
  | MutProj of type_constant
  | MaybeValButNotSupported

(** Check that a term is a value. Only values are safe to marshall between
    processes. *)

val check_value : glb_tacexpr -> not_value_reason option

val is_pure_constructor : type_constant -> bool

val check_unit : ?loc:Loc.t -> type_scheme -> unit

val check_subtype : type_scheme -> type_scheme -> bool
(** [check_subtype t1 t2] returns [true] iff all values of instances of type [t1]
    also have type [t2]. *)


val subst_type : substitution -> 'a glb_typexpr -> 'a glb_typexpr
val subst_expr : substitution -> glb_tacexpr -> glb_tacexpr
val subst_quant_typedef : substitution -> glb_quant_typedef -> glb_quant_typedef
val subst_type_scheme : substitution -> type_scheme -> type_scheme

val subst_rawexpr : substitution -> raw_tacexpr -> raw_tacexpr

(** {5 Notations} *)

val globalize : Id.Set.t -> raw_tacexpr -> raw_tacexpr
(** Replaces all qualified identifiers by their corresponding kernel name. The
    set represents bound variables in the context. *)


val debug_globalize_allow_ext : Id.Set.t -> raw_tacexpr -> raw_tacexpr
(** Variant of globalize which can accept CTacExt using the provided function.
    Intended for debugging. *)


(** Errors *)

val error_nargs_mismatch : ?loc:Loc.t -> ltac_constructor -> int -> int -> 'a
val error_nparams_mismatch : ?loc:Loc.t -> int -> int -> 'a

(** Misc *)

val drop_ltac2_env : Genintern.Store.t -> Genintern.Store.t

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

[ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet)  ]