]> matita.cs.unibo.it Git - helm.git/blob - matita/contribs/LOGIC/Insert/defs.ma
matita 0.5.1 tagged
[helm.git] / matita / contribs / LOGIC / Insert / 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
16
17 (* INSERT RELATION FOR CONTEXTS
18 *)
19
20 include "Lift/defs.ma".
21 include "datatypes_defs/Context.ma".
22
23 inductive Insert (p,q:Proof) (S:Sequent): 
24                  Nat \to Context \to Context \to Prop \def
25    | insert_zero: \forall P. Insert p q S zero P (abst P p q S)
26    | insert_succ: \forall P,Q,i. Insert p q S i P Q \to 
27                   \forall p1,p2. Lift i (succ zero) p1 p2 \to 
28                   \forall q1,q2. Lift i (succ zero) q1 q2 \to \forall R. 
29                   Insert p q S (succ i) (abst P p1 q1 R) (abst Q p2 q2 R)
30 .