]> matita.cs.unibo.it Git - helm.git/blobdiff - components/tactics/primitiveTactics.ml
Elim now performs whd to find the inductive type.
[helm.git] / components / tactics / primitiveTactics.ml
index 7a732a57257304dd89835b7e31aac819f047bea2..63c51d9efad86cfd359a1cd4dbc444a9d14bf9c7 100644 (file)
@@ -472,6 +472,7 @@ let elim_tac ~term =
    let (curi,metasenv,proofbo,proofty) = proof in
    let metano,context,ty = CicUtil.lookup_meta goal metasenv in
     let termty,_ = T.type_of_aux' metasenv context term CicUniv.empty_ugraph in
+    let termty = CicReduction.whd context termty in
     let (termty,metasenv',arguments,fresh_meta) =
      ProofEngineHelpers.saturate_term
       (ProofEngineHelpers.new_meta_of_proof proof) metasenv context termty 0 in