package coq-lsp

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file ser_ssrast.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
(************************************************************************)
(*         *   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-2018 MINES ParisTech                                  *)
(************************************************************************)
(* Status: Very Experimental                                            *)
(************************************************************************)

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

open Serlib

module Loc        = Ser_loc
module Names      = Ser_names
module Locus      = Ser_locus
module Constrexpr = Ser_constrexpr
module Genintern  = Ser_genintern
module Geninterp  = Ser_geninterp

module Ssrmatching_plugin = struct
  module Ssrmatching = Serlib_ssrmatching.Ser_ssrmatching
end

module Ltac_plugin = struct
  module Tacexpr = Serlib_ltac.Ser_tacexpr
end

type ssrtermkind = Ssrmatching_plugin.Ssrmatching.ssrtermkind
  [@@deriving sexp,yojson,hash,compare]

(* What a hack is ssreflect using... *)
module Proofview = struct
  type 'a tactic = 'a Proofview.tactic
  let tactic_of_sexp _ = Serlib_base.opaque_of_sexp ~typ:"Ssrast.tactic"
  let sexp_of_tactic _ = Serlib_base.sexp_of_opaque ~typ:"Ssrast.tactic"
end

type ssrhyp =
  [%import: Wrap_ssrast.ssrhyp]
  [@@deriving sexp,yojson,hash,compare]

type ssrhyp_or_id =
  [%import: Wrap_ssrast.ssrhyp_or_id]
  [@@deriving sexp,yojson,hash,compare]

type ssrhyps =
  [%import: Wrap_ssrast.ssrhyps]
  [@@deriving sexp,yojson,hash,compare]

type ssrdir =
  [%import: Wrap_ssrast.ssrdir]
  [@@deriving sexp,yojson,hash,compare]

type ssrsimpl =
  [%import: Wrap_ssrast.ssrsimpl]
  [@@deriving sexp,yojson,hash,compare]

type ssrmmod =
  [%import: Wrap_ssrast.ssrmmod]
  [@@deriving sexp,yojson,hash,compare]

type ssrmult =
  [%import: Wrap_ssrast.ssrmult]
  [@@deriving sexp,yojson,hash,compare]

type ssrocc =
  [%import: Wrap_ssrast.ssrocc]
  [@@deriving sexp,yojson,hash,compare]

type ssrindex =
  [%import: Wrap_ssrast.ssrindex]
  [@@deriving sexp,yojson,hash,compare]

type ssrclear =
  [%import: Wrap_ssrast.ssrclear]
  [@@deriving sexp,yojson,hash,compare]

type ssrdocc =
  [%import: Wrap_ssrast.ssrdocc]
  [@@deriving sexp,yojson,hash,compare]

type ssrterm =
  [%import: Wrap_ssrast.ssrterm]
  [@@deriving sexp,yojson,hash,compare]

type ast_glob_env =
  [%import: Wrap_ssrast.ast_glob_env]
  [@@deriving sexp,yojson,hash,compare]

type ast_closure_term =
  [%import: Wrap_ssrast.ast_closure_term]
  [@@deriving sexp,yojson,hash,compare]

type ssrview =
  [%import: Wrap_ssrast.ssrview]
  [@@deriving sexp,yojson,hash,compare]

type anon_kind =
  [%import: Wrap_ssrast.anon_kind]
  [@@deriving sexp,yojson,hash,compare]

(* type anon_iter =
 *   [%import: Wrap_ssrast.anon_iter]
 *   [@@deriving sexp] *)

type id_block =
  [%import: Wrap_ssrast.id_block]
  [@@deriving sexp,yojson,hash,compare]

type ssripat =
  [%import: Wrap_ssrast.ssripat]
  [@@deriving sexp,yojson,hash,compare]
and ssripats =
  [%import: Wrap_ssrast.ssripats]
  [@@deriving sexp,yojson,hash,compare]
and ssripatss =
  [%import: Wrap_ssrast.ssripatss]
  [@@deriving sexp,yojson,hash,compare]
and ssripatss_or_block =
  [%import: Wrap_ssrast.ssripatss_or_block]
  [@@deriving sexp,yojson,hash,compare]

type ssrhpats =
  [%import: Wrap_ssrast.ssrhpats]
  [@@deriving sexp,yojson,hash,compare]

type ssrhpats_wtransp =
  [%import: Wrap_ssrast.ssrhpats_wtransp]
  [@@deriving sexp,yojson,hash,compare]

type ssrintrosarg =
  [%import: Wrap_ssrast.ssrintrosarg]
  [@@deriving sexp,yojson,hash,compare]

type ssrfwdid =
  [%import: Wrap_ssrast.ssrfwdid]
  [@@deriving sexp,yojson,hash,compare]

type 'term ssrbind =
  [%import: 'term Wrap_ssrast.ssrbind]
  [@@deriving sexp,yojson,hash,compare]

type ssrbindfmt =
  [%import: Wrap_ssrast.ssrbindfmt]
  [@@deriving sexp,yojson,hash,compare]

type 'term ssrbindval =
  [%import: 'term Wrap_ssrast.ssrbindval]
  [@@deriving sexp,yojson,hash,compare]

type ssrfwdkind =
  [%import: Wrap_ssrast.ssrfwdkind]
  [@@deriving sexp,yojson,hash,compare]

type ssrfwdfmt =
  [%import: Wrap_ssrast.ssrfwdfmt]
  [@@deriving sexp,yojson,hash,compare]

type ssrclseq =
  [%import: Wrap_ssrast.ssrclseq]
  [@@deriving sexp,yojson,hash,compare]

type 'tac ssrhint =
  [%import: 'tac Wrap_ssrast.ssrhint]
  [@@deriving sexp,yojson,hash,compare]

type 'tac fwdbinders =
  [%import: 'tac Wrap_ssrast.fwdbinders]
  [@@deriving sexp,yojson,hash,compare]

type 'tac ffwbinders =
  [%import: 'tac Wrap_ssrast.ffwbinders]
  [@@deriving sexp,yojson,hash,compare]

type clause =
  [%import: Wrap_ssrast.clause]
  [@@deriving sexp,yojson,hash,compare]

type clauses =
  [%import: Wrap_ssrast.clauses]
  [@@deriving sexp,yojson,hash,compare]

type wgen =
  [%import: Wrap_ssrast.wgen]
  [@@deriving sexp,yojson,hash,compare]

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

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

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

type ssrapplyarg =
  [%import: Wrap_ssrast.ssrapplyarg]
  [@@deriving sexp,yojson,hash,compare]

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

type 'a ssrmovearg =
  [%import: 'a Wrap_ssrast.ssrmovearg]
  [@@deriving sexp,yojson,hash,compare]
OCaml

Innovation. Community. Security.