X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicSubstitution.mli;h=38408fe13203b10bda43ae7b46c2cde058348fdb;hb=2d3d1750a0012ebc45f97d0000c01141623fc634;hp=30a6c74516676b03790748bd4e75fe6313ffab0f;hpb=cf3c2f9d76c0483afc91ad89c0ae2517081ce912;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicSubstitution.mli b/helm/software/components/ng_kernel/nCicSubstitution.mli index 30a6c7451..38408fe13 100644 --- a/helm/software/components/ng_kernel/nCicSubstitution.mli +++ b/helm/software/components/ng_kernel/nCicSubstitution.mli @@ -1,27 +1,21 @@ -(* Copyright (C) 2000, HELM Team. - * - * This file is part of HELM, an Hypertextual, Electronic - * Library of Mathematics, developed at the Computer Science - * Department, University of Bologna, Italy. - * - * HELM is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * HELM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with HELM; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. - * - * For details, see the HELM World-Wide-Web page, - * http://cs.unibo.it/helm/. - *) +(* + ||M|| This file is part of HELM, an Hypertextual, Electronic + ||A|| Library of Mathematics, developed at the Computer Science + ||T|| Department, University of Bologna, Italy. + ||I|| + ||T|| HELM is free software; you can redistribute it and/or + ||A|| modify it under the terms of the GNU General Public License + \ / version 2 or (at your option) any later version. + \ / This software is distributed as is, NO WARRANTY. + V_______________________________________________________________ *) + +(* $Id$ *) + +val set_ppterm : (context:NCic.context -> + subst:NCic.substitution -> + metasenv:NCic.metasenv -> + ?inside_fix:bool -> + NCic.term -> string) -> unit (* lift n t *) (* lifts [t] of [n] *) @@ -37,6 +31,18 @@ val lift : ?from:int -> int -> NCic.term -> NCic.term (* well typed and avoid_beta_redexes is true. *) val subst : ?avoid_beta_redexes:bool -> NCic.term -> NCic.term -> NCic.term +(* psubst [avoid] [map_arg] [args] [t] + * [avoid] : do not leave newly created beta-redexes, default false + * [t] : term to fill in + * [args] : stuff to substitute + * [map_arg] : map the argument to obtain a term + * the function is ReductionStrategy.from_env_for_unwind when psubst is + * used to implement nCicReduction.unwind' *) +val psubst : + ?avoid_beta_redexes:bool -> + ('a -> NCic.term) -> 'a list -> NCic.term -> + NCic.term + (* subst_meta (n, Ctx [t_1 ; ... ; t_n]) t *) (* returns the term [t] where [Rel i] is substituted with [t_i] lifted by n *) (* [t_i] is lifted as usual when it crosses an abstraction *)