]> matita.cs.unibo.it Git - helm.git/commitdiff
added whd to match argument in guarded_by_destructors;
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 7 Jun 2005 15:44:16 +0000 (15:44 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 7 Jun 2005 15:44:16 +0000 (15:44 +0000)
before only verbatim occurrences of safe variables were accepted.

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