X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_refiner%2FnCicUnification.ml;h=325ced5c436e9009c5072993ade330af1f0045fa;hb=76a993b80bb33d1075f84c55637ca1897644b16a;hp=b4bc32fe6035dc7bded70504a0826222ca2d63dc;hpb=bf4eb0f3a5b5ff262ad32271a8ba6f171e68c1f0;p=helm.git diff --git a/matita/components/ng_refiner/nCicUnification.ml b/matita/components/ng_refiner/nCicUnification.ml index b4bc32fe6..325ced5c4 100644 --- a/matita/components/ng_refiner/nCicUnification.ml +++ b/matita/components/ng_refiner/nCicUnification.ml @@ -140,8 +140,10 @@ let rec could_reduce status ~subst context = | C.Appl (C.Const (Ref.Ref (_,Ref.Fix (_,recno,_)))::args) when List.length args > recno -> let t = NCicReduction.whd status ~subst context (List.nth args recno) in - could_reduce status subst context t - | C.Match (_,_,arg,_) -> could_reduce status ~subst context arg + could_reduce status ~subst context t + | C.Match (_,_,he,_) -> + let he = NCicReduction.whd status ~subst context he in + could_reduce status ~subst context he | C.Appl (he::_) -> could_reduce status ~subst context he | C.Sort _ | C.Rel _ | C.Prod _ | C.Lambda _ | C.Const _ -> false | C.Appl [] | C.LetIn _ | C.Implicit _ -> assert false @@ -412,6 +414,8 @@ and unify_for_delift status metasenv subst context t1 t2 = try Some (fo_unif_w_hints true status false true(*test_eq_only*) metasenv subst context (false,t1) (false,t2)) + (*(unify status true(*test_eq_only*) metasenv subst + context t1 t2 false)*) with UnificationFailure _ | Uncertain _ | KeepReducingThis _ -> None in indent := ind; res