X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fground%2Frelocation%2Fgr_id_eq.ma;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fground%2Frelocation%2Fgr_id_eq.ma;h=00a4d36919c53efde37a0d60d597964fcf45457f;hb=55c768d7e45babb300b5010463ba3196a68f1bbe;hp=0000000000000000000000000000000000000000;hpb=15212e44902f25536f6e2de4bec4cedcd9a9804d;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/ground/relocation/gr_id_eq.ma b/matita/matita/contribs/lambdadelta/ground/relocation/gr_id_eq.ma new file mode 100644 index 000000000..00a4d3691 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/ground/relocation/gr_id_eq.ma @@ -0,0 +1,39 @@ +(**************************************************************************) +(* ___ *) +(* ||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/relocation/gr_tl_eq.ma". +include "ground/relocation/gr_id.ma". + +(* IDENTITY ELEMENT FOR GENERIC RELOCATION MAPS ******************************************************) + +(* Properties with gr_eq *) + +corec lemma gr_id_eq (f): ⫯f ≡ f → 𝐢 ≡ f. +cases gr_id_unfold #Hf +cases (gr_eq_inv_push_sn … Hf) [|*: // ] #_ #H +cases H in Hf; -H #Hf +@gr_eq_push [3:|*: // ] +/3 width=5 by gr_eq_inv_push_bi/ +qed. + +(* Inversions with gr_eq *) + +(* Note: this has the same proof of the previous *) +corec lemma gr_id_inv_eq (f): 𝐢 ≡ f → ⫯f ≡ f. +cases gr_id_unfold #Hf +cases (gr_eq_inv_push_sn … Hf) [|*: // ] #_ #H +cases H in Hf; -H #Hf +@gr_eq_push [3:|*: // ] +/3 width=5 by gr_eq_inv_push_bi/ +qed-.