]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1/subst/defs.ma
components: subst csubv
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / 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_1/lift/defs.ma".
18
19 let rec subst (d: nat) (v: T) (t: T) on t: T \def match t with [(TSort n) 
20 \Rightarrow (TSort n) | (TLRef i) \Rightarrow (let TMP_4 \def (blt i d) in 
21 (match TMP_4 with [true \Rightarrow (TLRef i) | false \Rightarrow (let TMP_5 
22 \def (blt d i) in (match TMP_5 with [true \Rightarrow (let TMP_6 \def (pred 
23 i) in (TLRef TMP_6)) | false \Rightarrow (lift d O v)]))])) | (THead k u t0) 
24 \Rightarrow (let TMP_1 \def (subst d v u) in (let TMP_2 \def (s k d) in (let 
25 TMP_3 \def (subst TMP_2 v t0) in (THead k TMP_1 TMP_3))))].
26