package coq-serapi

  1. Overview
  2. Docs
Serialization library and protocol for machine interaction with the Coq proof assistant

Install

Dune Dependency

Authors

Maintainers

Sources

coq-serapi-8.18.0.0.18.3.tbz
sha256=d9a32c0033d720032011e9bf5e8d30d4b205ce276b6a81ab359fc461809e9b63
sha512=742d2b92b986e45044c19cd2bbfd5dd5346cfb4b0ec20f40811d8b0096c6e25192528359f98d2eed2a74ae67790d1f8cea382cb01fd7cf8903a5a917cca79a84

doc/src/coq-serapi.serlib/ser_glob_term.ml.html

Source file ser_glob_term.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(************************************************************************)
(* Coq serialization API/Plugin                                         *)
(* Copyright 2016 MINES ParisTech                                       *)
(************************************************************************)
(* Status: Very Experimental                                            *)
(************************************************************************)

open Ppx_hash_lib.Std.Hash.Builtin
open Ppx_compare_lib.Builtin
open Sexplib.Std

let hash_fold_array = hash_fold_array_frozen

module Loc        = Ser_loc
module CAst       = Ser_cAst
module DAst       = Ser_dAst
module Names      = Ser_names
module Univ       = Ser_univ
module Uint63     = Ser_uint63
module Float64    = Ser_float64
module Constr     = Ser_constr
module Libnames   = Ser_libnames
module Genarg     = Ser_genarg
module Evar_kinds = Ser_evar_kinds
module Namegen    = Ser_namegen
module Sorts      = Ser_sorts

(**********************************************************************)
(* Glob_term                                                          *)
(**********************************************************************)

type binding_kind =
  [%import: Glob_term.binding_kind]
  [@@deriving sexp,yojson,hash,compare]

(* type 'a universe_kind =
 *   [%import: 'a Glob_term.universe_kind]
 *   [@@deriving sexp,yojson] *)

(* type level_info =
 *   [%import: Glob_term.level_info]
 *   [@@deriving sexp,yojson] *)

type glob_sort_name =
  [%import: Glob_term.glob_sort_name]
  [@@deriving sexp,yojson,hash,compare]

type 'a glob_sort_gen =
  [%import: 'a Glob_term.glob_sort_gen]
  [@@deriving sexp,yojson,hash,compare]

(* type 'a glob_sort_expr =
 *   [%import: 'a Glob_term.glob_sort_expr]
 *   [@@deriving sexp,yojson] *)

type glob_level =
  [%import: Glob_term.glob_level]
  [@@deriving sexp,yojson,hash,compare]

type glob_constraint =
  [%import: Glob_term.glob_constraint]
  [@@deriving sexp,yojson,hash,compare]

(* type sort_info =
 *   [%import: Glob_term.sort_info]
 *   [@@deriving sexp,yojson] *)

type glob_sort =
  [%import: Glob_term.glob_sort]
  [@@deriving sexp,yojson,hash,compare]

(* type 'a cast_type =
 *   [%import: 'a Glob_term.cast_type]
 *   [@@deriving sexp,yojson] *)

type existential_name =
  [%import: Glob_term.existential_name]
  [@@deriving sexp,yojson,hash,compare]

type 'a cases_pattern_r = [%import: 'a Glob_term.cases_pattern_r]
and 'a cases_pattern_g  = [%import: 'a Glob_term.cases_pattern_g]
  [@@deriving sexp,yojson,hash,compare]

type cases_pattern =
  [%import: Glob_term.cases_pattern]
  [@@deriving sexp,yojson,hash,compare]

type glob_recarg =
  [%import: Glob_term.glob_recarg]
  [@@deriving sexp,yojson,hash,compare]

type glob_fix_kind =
  [%import: Glob_term.glob_fix_kind]
  [@@deriving sexp,yojson,hash,compare]

[@@@ocaml.warning "-27"]
type 'a glob_constr_r        = [%import: 'a Glob_term.glob_constr_r]
and 'a glob_constr_g         = [%import: 'a Glob_term.glob_constr_g]
and 'a glob_decl_g           = [%import: 'a Glob_term.glob_decl_g]
and 'a predicate_pattern_g   = [%import: 'a Glob_term.predicate_pattern_g]
and 'a tomatch_tuple_g       = [%import: 'a Glob_term.tomatch_tuple_g]
and 'a tomatch_tuples_g      = [%import: 'a Glob_term.tomatch_tuples_g]
and 'a cases_clause_g        = [%import: 'a Glob_term.cases_clause_g]
and 'a cases_clauses_g       = [%import: 'a Glob_term.cases_clauses_g]
  [@@deriving sexp,yojson,hash,compare]
[@@@ocaml.warning "+27"]

type glob_constr =
  [%import: Glob_term.glob_constr]
  [@@deriving sexp,yojson,hash,compare]

type glob_decl =
  [%import: Glob_term.glob_decl]
  [@@deriving sexp,yojson,hash,compare]

type predicate_pattern   = [%import: Glob_term.predicate_pattern]
  [@@deriving sexp,yojson,hash,compare]

type tomatch_tuple       = [%import: Glob_term.tomatch_tuple]
  [@@deriving sexp,yojson,hash,compare]

type tomatch_tuples      = [%import: Glob_term.tomatch_tuples]
  [@@deriving sexp,yojson,hash,compare]

type cases_clause        = [%import: Glob_term.cases_clause]
  [@@deriving sexp,yojson,hash,compare]

type cases_clauses       = [%import: Glob_term.cases_clauses]
  [@@deriving sexp,yojson,hash,compare]

OCaml

Innovation. Community. Security.