aboutsummaryrefslogtreecommitdiff
path: root/proofs
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-03-26 18:05:46 +0100
committerPierre-Marie Pédrot2014-03-26 18:22:13 +0100
commit0d6fac7744fa5e85852b34ef3d1a11c2f8b0cba5 (patch)
tree847b48e8de8263da221e95dfa13ab5aa84593809 /proofs
parentfd2ab327c8d30f129fac3c882b73f4bd4e31a128 (diff)
Removing Tacmach compatibility layer in Inv.
Diffstat (limited to 'proofs')
-rw-r--r--proofs/tacmach.ml6
-rw-r--r--proofs/tacmach.mli8
2 files changed, 14 insertions, 0 deletions
diff --git a/proofs/tacmach.ml b/proofs/tacmach.ml
index 943974489c..fcba8119d2 100644
--- a/proofs/tacmach.ml
+++ b/proofs/tacmach.ml
@@ -271,4 +271,10 @@ module New = struct
let pf_hnf_type_of gl t =
pf_whd_betadeltaiota gl (pf_get_type_of gl t)
+ let pf_matches gl pat t = pf_apply ConstrMatching.matches_conv gl pat t
+
+ let pf_whd_betadeltaiota gl t = pf_apply whd_betadeltaiota gl t
+
+ let pf_nf_evar gl t = nf_evar (Proofview.Goal.sigma gl) t
+
end
diff --git a/proofs/tacmach.mli b/proofs/tacmach.mli
index bf0ce04a1d..d122b09417 100644
--- a/proofs/tacmach.mli
+++ b/proofs/tacmach.mli
@@ -148,5 +148,13 @@ module New : sig
val pf_nf_concl : [ `LZ ] Proofview.Goal.t -> types
val pf_reduce_to_quantified_ind : 'a Proofview.Goal.t -> types -> inductive * types
+
val pf_hnf_type_of : 'a Proofview.Goal.t -> constr -> types
+
+ val pf_whd_betadeltaiota : 'a Proofview.Goal.t -> constr -> constr
+
+ val pf_matches : 'a Proofview.Goal.t -> constr_pattern -> constr -> patvar_map
+
+ val pf_nf_evar : 'a Proofview.Goal.t -> constr -> constr
+
end