X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fstatic_2%2Fsyntax%2Fext2_tc.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fstatic_2%2Fsyntax%2Fext2_tc.ma;h=d6df0a3de531d2d7a719d30786d7e006c807e5f9;hb=ff612dc35167ec0c145864c9aa8ae5e1ebe20a48;hp=0000000000000000000000000000000000000000;hpb=222044da28742b24584549ba86b1805a87def070;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/static_2/syntax/ext2_tc.ma b/matita/matita/contribs/lambdadelta/static_2/syntax/ext2_tc.ma new file mode 100644 index 000000000..d6df0a3de --- /dev/null +++ b/matita/matita/contribs/lambdadelta/static_2/syntax/ext2_tc.ma @@ -0,0 +1,57 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +include "ground_2/lib/star.ma". +include "static_2/syntax/ext2.ma". + +(* EXTENSION TO BINDERS OF A RELATION FOR TERMS *****************************) + +(* Properties with transitive closure ***************************************) + +lemma ext2_tc_pair: ∀R,I,V1,V2. TC … R V1 V2 → + TC … (ext2 R) (BPair I V1) (BPair I V2). +#R #I #V1 #V2 #H elim H -H -V2 +/3 width=3 by ext2_pair, step, inj/ +qed. + +lemma ext2_tc_inj: ∀R,I1,I2. ext2 R I1 I2 → ext2 (TC … R) I1 I2. +#R #I1 #I2 * -I1 -I2 +/3 width=1 by ext2_unit, ext2_pair, inj/ +qed. + +(* Main properties with transitive closure **********************************) + +theorem ext2_tc_step: ∀R,I1,I. ext2 (TC … R) I1 I → + ∀I2. ext2 R I I2 → ext2 (TC … R) I1 I2. +#R #I1 #I * -I1 -I +[ #I #Z #H >(ext2_inv_unit_sn … H) -Z /2 width=1 by ext2_unit/ +| #I #V1 #V #HV1 #Z #H + elim (ext2_inv_pair_sn … H) -H #V2 #HV2 #H destruct + /3 width=3 by ext2_pair, step/ +] +qed-. + +(* Advanced properties with transitive closure ******************************) + +lemma ext2_tc: ∀R,I1,I2. TC … (ext2 R) I1 I2 → ext2 (TC … R) I1 I2. +#R #I1 #I2 #H elim H -I2 +/2 width=3 by ext2_tc_step, ext2_tc_inj/ +qed. + +(* Advanced inversion lemmas with transitive closure ************************) + +lemma ext2_inv_tc: ∀R,I1,I2. ext2 (TC … R) I1 I2 → TC … (ext2 R) I1 I2. +#R #I1 #I2 * -I1 -I2 +/3 width=1 by ext2_tc_pair, ext2_unit, inj/ +qed-.