X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2FLAMBDA-TYPES%2FLegacy-2%2Fpreamble.ma;h=00c38151d1826bb28550294d28b98cf11ca1c0b9;hb=b31c093c364e76cc6c4657008f3f259955311911;hp=269e41d6aef9e114e92fd806edcc2ccf105df68f;hpb=78b677a78cbe8f6f71ebdcdff970d0cde8a8c1b8;p=helm.git diff --git a/helm/software/matita/contribs/LAMBDA-TYPES/Legacy-2/preamble.ma b/helm/software/matita/contribs/LAMBDA-TYPES/Legacy-2/preamble.ma index 269e41d6a..00c38151d 100644 --- a/helm/software/matita/contribs/LAMBDA-TYPES/Legacy-2/preamble.ma +++ b/helm/software/matita/contribs/LAMBDA-TYPES/Legacy-2/preamble.ma @@ -12,29 +12,51 @@ (* *) (**************************************************************************) -include "Legacy-1/definitions.ma". -(* +include "Legacy-1/theory.ma". + 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/eq_rec.con - cic:/Coq/Init/Logic/eq_rec_r.con - cic:/Coq/Init/Logic/eq_rect.con - cic:/Coq/Init/Logic/eq_rect_r.con - cic:/Coq/Init/Logic/f_equal.con - cic:/matita/legacy/coq/f_equal1.con. + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/eq.ind + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/sym_eq.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/trans_eq.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/eq_ind.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/eq_ind_r.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/eq_rec.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/eq_rec_r.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/eq_rect.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/eq_rect_r.con + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/f_equal.con + cic:/matita/LAMBDA-TYPES/Legacy-2/preamble/f_equal_sym.con. default "true" - cic:/Coq/Init/Logic/True.ind. + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/True.ind. default "false" - cic:/Coq/Init/Logic/False.ind. + cic:/matita/LAMBDA-TYPES/Legacy-1/preamble/False.ind. default "absurd" - cic:/Coq/Init/Logic/absurd.con. + cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/absurd.con. + +interpretation "Coq 7.3.1 natural plus" 'plus x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/plus.con x y). +interpretation "Coq 7.3.1 natural minus" 'minus x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/minus.con x y). +interpretation "Coq 7.3.1 logical and" 'and x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/land.ind#xpointer(1/1) x y). +interpretation "Coq 7.3.1 logical or" 'or x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/or.ind#xpointer(1/1) x y). +interpretation "Coq 7.3.1 logical not" 'not x = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/not.con x). +interpretation "Coq 7.3.1 exists" 'exists \eta.x = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/ex.ind#xpointer(1/1) ? x). +interpretation "Coq 7.3.1 natural 'less or equal to'" 'leq x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/le.ind#xpointer(1/1) x y). +interpretation "Coq 7.3.1 natural 'less than'" 'lt x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/lt.con x y). +interpretation "Coq 7.3.1 leibnitz's equality" 'eq t x y = (cic:/matita/LAMBDA-TYPES/Legacy-1/coq/defs/eq.ind#xpointer(1/1) t x y). -(* aritmetic operators *) +alias symbol "plus" = "Coq 7.3.1 natural plus". +alias symbol "minus" = "Coq 7.3.1 natural minus". +alias symbol "and" = "Coq 7.3.1 logical and". +alias symbol "or" = "Coq 7.3.1 logical or". +alias symbol "not" = "Coq 7.3.1 logical not". +alias symbol "exists" = "Coq 7.3.1 exists". +alias symbol "leq" = "Coq 7.3.1 natural 'less or equal to'". +alias symbol "lt" = "Coq 7.3.1 natural 'less than'". +alias symbol "eq" = "Coq 7.3.1 leibnitz's equality". -interpretation "Coq's natural plus" 'plus x y = (cic:/Coq/Init/Peano/plus.con x y). -*) +theorem f_equal_sym: \forall A,B:Set.\forall f:A\to B.\forall x,y. + x = y \to (f y) = (f x). + intros; symmetry. + apply cic:/matita/LAMBDA-TYPES/Legacy-1/coq/props/f_equal.con. + assumption. +qed.