package coq-serapi
Serialization library and protocol for machine interaction with the Coq proof assistant
Install
Dune Dependency
Authors
Maintainers
Sources
coq-serapi-8.15.0.0.15.1.tbz
sha256=31d1e4661f5b1b917d7004c749cc05eb73546d3190ac632faddc37348531a0a5
sha512=a9816915f9dc4051e76c5b0e615b27c1bb0a6a5ffd445af94ad2ed1582a0e704a7f49f69b6764fa92dbfa092aa8e41ee3151a1330b394eb0338c796d6460fa20
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 : 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)"
>