1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
17 (* INSERT RELATION FOR CONTEXTS
20 include "Lift/defs.ma".
21 include "datatypes_defs/Context.ma".
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)