aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tactics/contradiction.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tactics/contradiction.ml b/tactics/contradiction.ml
index dd1c68af9a..d504773160 100644
--- a/tactics/contradiction.ml
+++ b/tactics/contradiction.ml
@@ -22,6 +22,10 @@ open Rawterm
(* Absurd *)
let absurd c gls =
+ let env = pf_env gls and sigma = project gls in
+ let _,j = Coercion.Default.inh_coerce_to_sort dummy_loc env
+ (Evd.create_evar_defs sigma) (Retyping.get_judgment_of env sigma c) in
+ let c = j.Environ.utj_val in
(tclTHENS
(tclTHEN (elim_type (build_coq_False ())) (cut c))
([(tclTHENS