blob: 950135cd8ee50833b2aeba262a8eb7a046319f95 (
plain)
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
|
(**************************************************************************)
(* *)
(* SMTCoq *)
(* Copyright (C) 2011 - 2019 *)
(* *)
(* See file "AUTHORS" for the list of authors *)
(* *)
(* This file is distributed under the terms of the CeCILL-C licence *)
(* *)
(**************************************************************************)
(* WARNING: currently, we map all the econstr into constr: we suppose
that the goal does not contain existencial variables *)
(* Constr generation and manipulation *)
type id = Names.variable
val mkId : string -> id
type name
val name_of_id : id -> name
val mkName : string -> name
val string_of_name : name -> string
type constr = Constr.t
type types = constr
val eq_constr : constr -> constr -> bool
val hash_constr : constr -> int
val mkProp : types
val mkConst : Names.Constant.t -> constr
val mkVar : id -> constr
val mkRel : int -> constr
val isRel : constr -> bool
val destRel : constr -> int
val lift : int -> constr -> constr
val mkApp : constr * constr array -> constr
val decompose_app : constr -> constr * constr list
val mkLambda : name * types * constr -> constr
val mkProd : name * types * types -> types
val mkLetIn : name * constr * types * constr -> constr
val mkArrow : types -> types -> constr
val pr_constr_env : Environ.env -> constr -> Pp.t
val pr_constr : constr -> Pp.t
val mkUConst : constr -> Safe_typing.private_constants Entries.definition_entry
val mkTConst : constr -> constr -> types -> Safe_typing.private_constants Entries.definition_entry
val declare_new_type : id -> types
val declare_new_variable : id -> types -> constr
val declare_constant : id -> Safe_typing.private_constants Entries.definition_entry -> Names.Constant.t
type cast_kind
val vmcast : cast_kind
val mkCast : constr * cast_kind * constr -> constr
(* EConstr *)
type econstr = EConstr.t
val econstr_of_constr : constr -> econstr
(* Modules *)
val gen_constant : string list list -> string -> constr lazy_t
val init_modules : string list list
(* Int63 *)
val int63_modules : string list list
val mkInt : int -> constr
val cint : constr lazy_t
(* PArray *)
val parray_modules : string list list
val max_array_size : int
val mkArray : types * constr array -> constr
(* Traces *)
val mkTrace :
('a -> constr) ->
('a -> 'a) ->
'b ->
constr Lazy.t ->
constr Lazy.t ->
constr Lazy.t ->
constr Lazy.t ->
int -> constr -> constr -> 'a ref -> constr
(* Micromega *)
module Micromega_plugin_Micromega = Micromega_plugin.Micromega
module Micromega_plugin_Mutils = Micromega_plugin.Mutils
module Micromega_plugin_Certificate = Micromega_plugin.Certificate
module Micromega_plugin_Coq_micromega = Micromega_plugin.Coq_micromega
module Micromega_plugin_Persistent_cache = Micromega_plugin.Persistent_cache
val micromega_coq_proofTerm : constr lazy_t
val micromega_dump_proof_term : Micromega_plugin_Micromega.zArithProof -> constr
(* Tactics *)
type tactic = unit Proofview.tactic
val tclTHEN : tactic -> tactic -> tactic
val tclTHENLAST : tactic -> tactic -> tactic
val assert_before : name -> types -> tactic
val vm_cast_no_check : constr -> tactic
val mk_tactic : (Environ.env -> Evd.evar_map -> constr -> tactic) -> tactic
val set_evars_tac : constr -> tactic
(* Other differences between the two versions of Coq *)
type constr_expr = Constrexpr.constr_expr
val error : string -> 'a
val warning : string -> string -> unit
val extern_constr : constr -> constr_expr
val destruct_rel_decl : (constr, types) Context.Rel.Declaration.pt -> name * types
val interp_constr : Environ.env -> Evd.evar_map -> constr_expr -> constr
val ppconstr_lsimpleconstr : Notation_gram.tolerability
val constrextern_extern_constr : constr -> constr_expr
val get_rel_dec_name : (constr, types) Context.Rel.Declaration.pt -> name
val retyping_get_type_of : Environ.env -> Evd.evar_map -> constr -> constr
val vm_conv : Reduction.conv_pb -> types Reduction.kernel_conversion_function
val cbv_vm : Environ.env -> constr -> types -> constr
|