X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Flibrary%2Flegacy%2Fcoq.ma;h=31a5f35ee289ee6e4bf9ec199b869c327dc388a7;hb=f764844fa35ab0bb9c10707151340b924060f069;hp=76da7d8984134a87d4fa1bfea5a440e4b688746d;hpb=7687de06ca4add15735160a56e508c65f7c31fbc;p=helm.git diff --git a/matita/library/legacy/coq.ma b/matita/library/legacy/coq.ma index 76da7d898..31a5f35ee 100644 --- a/matita/library/legacy/coq.ma +++ b/matita/library/legacy/coq.ma @@ -1,5 +1,5 @@ (**************************************************************************) -(* ___ *) +(* ___ *) (* ||M|| *) (* ||A|| A project by Andrea Asperti *) (* ||T|| *) @@ -14,6 +14,22 @@ set "baseuri" "cic:/matita/legacy/coq/". +default "equality" + cic:/Coq/Init/Logic/eq.ind + cic:/Coq/Init/Logic/sym_eq.con + cic:/Coq/Init/Logic/trans_eq.con + cic:/Coq/Init/Logic/eq_ind.con + cic:/Coq/Init/Logic/eq_ind_r.con + cic:/Coq/Init/Logic/f_equal.con + cic:/Coq/Init/Logic/f_equal1.con. + +default "true" + cic:/Coq/Init/Logic/True.ind. +default "false" + cic:/Coq/Init/Logic/False.ind. +default "absurd" + cic:/Coq/Init/Logic/absurd.con. + (* aritmetic operators *) interpretation "Coq's natural plus" 'plus x y = (cic:/Coq/Init/Peano/plus.con x y). @@ -60,3 +76,16 @@ interpretation "Coq's natural 'not less or equal than'" 'nleq x y = (cic:/Coq/Init/Logic/not.con (cic:/Coq/Init/Peano/le.ind#xpointer(1/1) x y)). +(* aliases *) + +(* FG: This is because "and" is a reserved keyword of the parser *) +alias id "land" = "cic:/Coq/Init/Logic/and.ind#xpointer(1/1)". + +(* theorems *) + +theorem f_equal1 : + \forall A,B:Type. \forall f:A \to B. \forall x,y:A. + x = y \to f y = f x. + intros.elim H.reflexivity. +qed. +