X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=components%2Facic_procedural%2FproceduralMode.ml;h=d2ddc6c9847c37d0c25dba76cc9a4dde0c9de096;hb=2a39b3fe15889f379932c642f4775a5f8e756022;hp=2b233a4bf358e4fc18d9f2de8bc6cb265b0b42e8;hpb=4ee45a5645feb616089f64ba8902b3acfc72f728;p=helm.git diff --git a/components/acic_procedural/proceduralMode.ml b/components/acic_procedural/proceduralMode.ml index 2b233a4bf..d2ddc6c98 100644 --- a/components/acic_procedural/proceduralMode.ml +++ b/components/acic_procedural/proceduralMode.ml @@ -23,15 +23,15 @@ * http://cs.unibo.it/helm/. *) -module C = Cic +module C = Cic +module PEH = ProofEngineHelpers -module P = ProceduralPreprocess 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 _ @@ -49,9 +49,9 @@ let rec is_appl b = function let bkd c t = let classes, rc = Cl.classify c t in - let premises, _ = P.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 | _ -> - let ts, _ = P.split c t in - is_appl true (List.hd ts) + let _, conclusion = List.hd premises in + is_appl true conclusion