X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Ftactics%2FproofEngineHelpers.mli;h=71486050195dcd55b95961c3c2545e1d304d971f;hb=281f0c7b4fc0d5b97025625af2ecff85edebbb5c;hp=39fb69b0d1067370a408c62be07cc495331516c1;hpb=58c0db9bcf83591115445a538bee028d3260fdf7;p=helm.git diff --git a/helm/software/components/tactics/proofEngineHelpers.mli b/helm/software/components/tactics/proofEngineHelpers.mli index 39fb69b0d..714860501 100644 --- a/helm/software/components/tactics/proofEngineHelpers.mli +++ b/helm/software/components/tactics/proofEngineHelpers.mli @@ -79,7 +79,7 @@ val select: pattern:ProofEngineTypes.lazy_pattern -> Cic.substitution * Cic.metasenv * CicUniv.universe_graph * [ `Decl of (Cic.context * Cic.term) list - | `Def of (Cic.context * Cic.term) list * (Cic.context * Cic.term) list option + | `Def of (Cic.context * Cic.term) list * (Cic.context * Cic.term) list ] option list * (Cic.context * Cic.term) list @@ -109,6 +109,13 @@ val lookup_type: Cic.metasenv -> Cic.context -> string -> int * Cic.term (* orders a metasenv w.r.t. dependency among metas *) val sort_metasenv: Cic.metasenv -> Cic.metasenv +(* finds an hypothesis by name in the context *) +val find_hyp: string -> Cic.context -> Cic.term * Cic.term + +(* sort pattern hypotheses from the smallest to the highest Rel *) +val sort_pattern_hyps: + Cic.context -> ProofEngineTypes.lazy_pattern -> ProofEngineTypes.lazy_pattern + (* FG: some helper functions ************************************************)