| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open Constr |
| 12 |
open Names |
| 13 |
|
| 14 |
type pa_constructor = |
| 15 |
{ cnode : int; |
| 16 |
arity : int; |
| 17 |
args : int list} |
| 18 |
|
| 19 |
type constructor = |
| 20 |
| Construct of pconstructor |
| 21 |
| Int of Uint63.t |
| 22 |
| Float of Float64.t |
| 23 |
| String of Pstring.t |
| 24 |
|
| 25 |
type cinfo = |
| 26 |
{ci_constr: constructor; |
| 27 |
ci_arity: int; |
| 28 |
ci_nhyps: int} |
| 29 |
|
| 30 |
type 'a term |
| 31 |
|
| 32 |
module ATerm : |
| 33 |
sig |
| 34 |
type t |
| 35 |
val mkSymb : constr -> t |
| 36 |
val mkProduct : (Sorts.t * Sorts.t) -> t |
| 37 |
val mkAppli : (t * t) -> t |
| 38 |
val mkConstructor : Environ.env -> cinfo -> t |
| 39 |
val constr : t -> constr |
| 40 |
val nth_arg : t -> int -> t |
| 41 |
end |
| 42 |
|
| 43 |
type ccpattern = |
| 44 |
PApp of ATerm.t * ccpattern list |
| 45 |
| PVar of int * ccpattern list |
| 46 |
|
| 47 |
type axiom |
| 48 |
|
| 49 |
val constr_of_axiom : axiom -> constr |
| 50 |
|
| 51 |
type rule= |
| 52 |
Congruence |
| 53 |
| Axiom of axiom * bool |
| 54 |
| Injection of int * pa_constructor * int * pa_constructor * int |
| 55 |
|
| 56 |
type from= |
| 57 |
Goal |
| 58 |
| Hyp of constr |
| 59 |
| HeqG of Id.t |
| 60 |
| HeqnH of Id.t * Id.t |
| 61 |
|
| 62 |
type 'a eq = {lhs:int;rhs:int;rule:'a} |
| 63 |
|
| 64 |
type equality = rule eq |
| 65 |
|
| 66 |
type disequality = from eq |
| 67 |
|
| 68 |
type patt_kind = |
| 69 |
Normal |
| 70 |
| Trivial of types |
| 71 |
| Creates_variables |
| 72 |
|
| 73 |
type forest |
| 74 |
|
| 75 |
type state |
| 76 |
|
| 77 |
type explanation = |
| 78 |
Discrimination of (int*pa_constructor*int*pa_constructor) |
| 79 |
| Contradiction of disequality |
| 80 |
| Incomplete of (EConstr.t * int) list |
| 81 |
|
| 82 |
val debug_congruence : CDebug.t |
| 83 |
|
| 84 |
val forest : state -> forest |
| 85 |
|
| 86 |
val axioms : forest -> axiom -> ATerm.t * ATerm.t |
| 87 |
|
| 88 |
val empty : Environ.env -> Evd.evar_map -> int -> state |
| 89 |
|
| 90 |
val add_aterm : state -> ATerm.t -> int |
| 91 |
|
| 92 |
val add_equality : state -> Id.t -> ATerm.t -> ATerm.t -> unit |
| 93 |
|
| 94 |
val add_disequality : state -> from -> ATerm.t -> ATerm.t -> unit |
| 95 |
|
| 96 |
val add_quant : state -> Id.t -> bool -> |
| 97 |
int * patt_kind * ccpattern * patt_kind * ccpattern -> unit |
| 98 |
|
| 99 |
val tail_pac : pa_constructor -> pa_constructor |
| 100 |
|
| 101 |
val find_oldest_pac : forest -> int -> pa_constructor -> int |
| 102 |
|
| 103 |
val aterm : forest -> int -> ATerm.t |
| 104 |
|
| 105 |
val get_constructor_info : forest -> int -> cinfo |
| 106 |
|
| 107 |
val subterms : forest -> int -> int * int |
| 108 |
|
| 109 |
val join_path : forest -> int -> int -> |
| 110 |
((int * int) * equality) list * ((int * int) * equality) list |
| 111 |
|
| 112 |
val execute : bool -> state -> explanation option |
| 113 |
|
| 114 |
val pr_idx_term : Environ.env -> Evd.evar_map -> forest -> int -> Pp.t |