]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1A/subst/defs.ma
update in lambdadelta
[helm.git] / matita / matita / contribs / lambdadelta / basic_1A / subst / defs.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* This file was automatically generated: do not edit *********************)
16
17 include "basic_1A/lift/defs.ma".
18
19 rec definition subst (d: nat) (v: T) (t: T) on t: T \def match t with [(TSort 
20 n) \Rightarrow (TSort n) | (TLRef i) \Rightarrow (match (blt i d) with [true 
21 \Rightarrow (TLRef i) | false \Rightarrow (match (blt d i) with [true 
22 \Rightarrow (TLRef (pred i)) | false \Rightarrow (lift d O v)])]) | (THead k 
23 u t0) \Rightarrow (THead k (subst d v u) (subst (s k d) v t0))].
24