X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicSubstitution.mli;h=21a1f5d0e579d775c9e1ea2117b56898506f1990;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=1f0705881994baf0262fffc861e5580b714160a8;hpb=3c9c376401844c389d682ba835845443105e4b1a;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicSubstitution.mli b/helm/ocaml/cic_proof_checking/cicSubstitution.mli index 1f0705881..21a1f5d0e 100644 --- a/helm/ocaml/cic_proof_checking/cicSubstitution.mli +++ b/helm/ocaml/cic_proof_checking/cicSubstitution.mli @@ -31,13 +31,10 @@ exception ReferenceToInductiveDefinition;; (* lift n t *) (* lifts [t] of [n] *) +(* NOTE: the opposite function (delift_rels) is defined in CicMetaSubst *) +(* since it needs to restrict the metavariables in case of failure *) val lift : int -> Cic.term -> Cic.term -(** delifts t of n - * @raise Failure s - *) -val delift : int -> Cic.term -> Cic.term - (* lift from n t *) (* as lift but lifts only indexes >= from *) @@ -52,10 +49,8 @@ val subst : Cic.term -> Cic.term -> Cic.term val subst_vars : Cic.term Cic.explicit_named_substitution -> Cic.term -> Cic.term -(* TODO CSC rename to subst_meta *) - -(* lift_meta [t_1 ; ... ; t_n] t *) +(* subst_meta [t_1 ; ... ; t_n] t *) (* returns the term [t] where [Rel i] is substituted with [t_i] *) (* [t_i] is lifted as usual when it crosses an abstraction *) -val lift_meta : (Cic.term option) list -> Cic.term -> Cic.term +val subst_meta : (Cic.term option) list -> Cic.term -> Cic.term