]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicTypeChecker.ml
added whd to match argument in guarded_by_destructors;
[helm.git] / helm / ocaml / cic_proof_checking / cicTypeChecker.ml
index 9f5b280af307a74a7b1b2a4801897ec11ec11e04..fbcf25f91450a4beb8ace412ba213dcfc0fa0d6c 100644 (file)
@@ -903,7 +903,7 @@ and guarded_by_destructors ?(subst = []) context n nn kl x safes =
        (fun (_,t) i -> i && guarded_by_destructors context n nn kl x safes t)
        exp_named_subst true
    | C.MutCase (uri,i,outtype,term,pl) ->
-      (match term with
+      (match CicReduction.whd context term with
           C.Rel m when List.mem m safes || m = x ->
            let (tys,len,isinductive,paramsno,cl) =
            let o,_ = CicEnvironment.get_obj CicUniv.empty_ugraph uri in