X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Facic_procedural%2FproceduralMode.ml;h=e13846fc85a3ddee2b6dbb4f805be0ab7fac1de6;hb=refs%2Ftags%2F0.4.95;hp=433966d1b68200e0896b8748a7abe200fb5720d8;hpb=474a2de3446753bd9660f185187087d5fa10afd3;p=helm.git diff --git a/components/acic_procedural/proceduralMode.ml b/components/acic_procedural/proceduralMode.ml index 433966d1b..e13846fc8 100644 --- a/components/acic_procedural/proceduralMode.ml +++ b/components/acic_procedural/proceduralMode.ml @@ -23,13 +23,15 @@ * http://cs.unibo.it/helm/. *) -module C = Cic +module C = Cic +module PEH = ProofEngineHelpers + module Cl = ProceduralClassify let is_eliminator = function - | _ :: C.MutInd _ :: _ -> true - | _ :: C.Appl (C.MutInd _ :: _) :: _ -> true - | _ -> false + | _ :: (_, C.MutInd _) :: _ -> true + | _ :: (_, C.Appl (C.MutInd _ :: _)) :: _ -> true + | _ -> false let is_const = function | C.Sort _ @@ -47,9 +49,9 @@ let rec is_appl b = function let bkd c t = let classes, rc = Cl.classify c t in - let premises, _ = Cl.split c t in + let premises, _ = PEH.split_with_whd (c, t) in match rc with - | Some (i, j) when i > 1 && i <= List.length classes && is_eliminator premises -> true + | Some (i, j, _, _) when i > 1 && i <= List.length classes && is_eliminator premises -> true | _ -> - let ts, _ = Cl.split c t in - is_appl true (List.hd ts) + let _, conclusion = List.hd premises in + is_appl true conclusion