package coq-serapi
Serialization library and protocol for machine interaction with the Coq proof assistant
Install
Dune Dependency
Authors
Maintainers
Sources
coq-serapi-8.14.0.0.14.0.tbz
sha256=1c16d8e37b0970f97313d99b57456013ff5ec94135dffc7a3d6d15c2f23b5dfe
sha512=e2a2b6f7cba9f31aed022058718efe3b5233b6f67a4a8aa79470697c640986053e19508866cf886318f2cc4f26e067583a908fad8c9655aa309ad359000abf1e
doc/src/coq-serapi.serlib/ser_safe_typing.ml.html
Source file ser_safe_typing.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * INRIA, CNRS and contributors - Copyright 1999-2018 *) (* <O___,, * (see CREDITS file for the list of authors) *) (* \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) *) (************************************************************************) (************************************************************************) (* Coq serialization API/Plugin *) (* Copyright 2016-2019 MINES ParisTech *) (* Written by: Emilio J. Gallego Arias *) (************************************************************************) (* Status: Very Experimental *) (************************************************************************) open Sexplib.Std module ONames = Names module CEphemeron = Ser_cEphemeron module Names = Ser_names module Constr = Ser_constr module Declarations = Ser_declarations module Entries = Ser_entries module Cooking = Ser_cooking module Univ = Ser_univ (* Side_effects *) type certificate = { certif_struc : Declarations.structure_body; certif_univs : Univ.ContextSet.t; } [@@deriving sexp] type side_effect = { from_env : certificate CEphemeron.key; seff_constant : Names.Constant.t; seff_body : Constr.t Declarations.constant_body; } [@@deriving sexp] module SeffOrd = struct type t = side_effect let compare e1 e2 = ONames.Constant.CanOrd.compare e1.seff_constant e2.seff_constant let t_of_sexp = side_effect_of_sexp let sexp_of_t = sexp_of_side_effect end module SeffSet = Set.Make(SeffOrd) module SerSeffSet = Ser_cSet.Make(SeffSet)(SeffOrd) type _t = { seff : side_effect list; elts : SerSeffSet.t } [@@deriving sexp] type _private_constants = _t [@@deriving sexp] type private_constants = Safe_typing.private_constants let sexp_of_private_constants x = sexp_of__private_constants (Obj.magic x) let private_constants_of_sexp x = Obj.magic (_private_constants_of_sexp x) (* type 'a effect_entry = [%import: 'a Safe_typing.effect_entry] [@@deriving sexp_of] (* XXX: Typical GADT Problem *) let _effect_entry_of_sexp (_f : Sexp.t -> 'a) (x : Sexp.t) : 'a effect_entry = let open Sexp in match x with | Atom "PureEntry" -> Obj.magic PureEntry | Atom "EffectEntry" -> Obj.magic EffectEntry | _ -> Sexplib.Conv_error.no_variant_match () *) type global_declaration = [%import: Safe_typing.global_declaration] [@@deriving sexp]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>