From 7cfc4e5146be5666419451bdd516f1f3f264d24a Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Sun, 25 Jan 2015 14:42:51 +0100 Subject: Imported Upstream version 8.5~beta1+dfsg --- proofs/proof_type.ml | 91 ++++++++++++---------------------------------------- 1 file changed, 20 insertions(+), 71 deletions(-) (limited to 'proofs/proof_type.ml') diff --git a/proofs/proof_type.ml b/proofs/proof_type.ml index c56f8a24..26bb78df 100644 --- a/proofs/proof_type.ml +++ b/proofs/proof_type.ml @@ -1,104 +1,53 @@ (************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) -(* goal list sigma type prim_rule = - | Intro of identifier - | Cut of bool * bool * identifier * types - | FixRule of identifier * int * (identifier * int * constr) list * int - | Cofix of identifier * (identifier * constr) list * int + | Cut of bool * bool * Id.t * types + | FixRule of Id.t * int * (Id.t * int * constr) list * int + | Cofix of Id.t * (Id.t * constr) list * int | Refine of constr - | Convert_concl of types * cast_kind - | Convert_hyp of named_declaration - | Thin of identifier list - | ThinBody of identifier list - | Move of bool * identifier * identifier move_location - | Order of identifier list - | Rename of identifier * identifier - | Change_evars - -type proof_tree = { - goal : goal; - ref : (rule * proof_tree list) option } - -and rule = - | Prim of prim_rule - | Nested of compound_rule * proof_tree - | Decl_proof of bool - | Daimon + | Thin of Id.t list + | Move of Id.t * Id.t move_location -and compound_rule= - | Tactic of tactic_expr * bool +(** Nowadays, the only rules we'll consider are the primitive rules *) -and tactic_expr = - (constr, - constr_pattern, - evaluable_global_reference, - inductive, - ltac_constant, - identifier, - glob_tactic_expr, - tlevel) - Tacexpr.gen_tactic_expr +type rule = prim_rule -and atomic_tactic_expr = - (constr, - constr_pattern, - evaluable_global_reference, - inductive, - ltac_constant, - identifier, - glob_tactic_expr, - tlevel) - Tacexpr.gen_atomic_tactic_expr - -and tactic_arg = - (constr, - constr_pattern, - evaluable_global_reference, - inductive, - ltac_constant, - identifier, - glob_tactic_expr, - tlevel) - Tacexpr.gen_tactic_arg +(** Ltac traces *) type ltac_call_kind = - | LtacNotationCall of string + | LtacMLCall of glob_tactic_expr + | LtacNotationCall of KerName.t | LtacNameCall of ltac_constant - | LtacAtomCall of glob_atomic_tactic_expr * atomic_tactic_expr option ref - | LtacVarCall of identifier * glob_tactic_expr - | LtacConstrInterp of glob_constr * - (extended_patvar_map * (identifier * identifier option) list) - -type ltac_trace = (int * loc * ltac_call_kind) list + | LtacAtomCall of glob_atomic_tactic_expr + | LtacVarCall of Id.t * glob_tactic_expr + | LtacConstrInterp of glob_constr * Pretyping.ltac_var_map -exception LtacLocated of (int * ltac_call_kind * ltac_trace * loc) * exn +type ltac_trace = (Loc.t * ltac_call_kind) list -let abstract_tactic_box = ref (ref None) +let (ltac_trace_info : ltac_trace Exninfo.t) = Exninfo.make () -- cgit v1.2.3