X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Fcontribs%2FRELATIONAL%2FZEq%2Fsetoid.ma;fp=matita%2Fcontribs%2FRELATIONAL%2FZEq%2Fsetoid.ma;h=587470bfc70f9af0374199523a390485589f7f4d;hp=0000000000000000000000000000000000000000;hb=f61af501fb4608cc4fb062a0864c774e677f0d76;hpb=58ae1809c352e71e7b5530dc41e2bfc834e1aef1 diff --git a/matita/contribs/RELATIONAL/ZEq/setoid.ma b/matita/contribs/RELATIONAL/ZEq/setoid.ma new file mode 100644 index 000000000..587470bfc --- /dev/null +++ b/matita/contribs/RELATIONAL/ZEq/setoid.ma @@ -0,0 +1,37 @@ +(**************************************************************************) +(* ___ *) +(* ||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 "NPlus/fun.ma". +include "ZEq/defs.ma". + +theorem zeq_refl: \forall z. z = z. + intros. elim z. clear z. + lapply (nplus_total t t1). decompose. + autobatch. +qed. + +theorem zeq_sym: \forall z1,z2. z1 = z2 \to z2 = z1. + intros. elim H. clear H z1 z2. autobatch. +qed. +(* +theorem zeq_trans: \forall z1,z2. z1 = z2 \to + \forall z3. z2 = z3 \to z1 = z3. + intros 3. elim H. clear H z1 z2. + inversion H3. clear H3. intros. destruct. + lapply (nplus_total n5 n6). decompose. + lapply (nplus_total n4 n9). decompose. + apply zeq. +*)