X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fng_assembly%2Ffreescale%2Fbool.ma;fp=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fng_assembly%2Ffreescale%2Fbool.ma;h=0000000000000000000000000000000000000000;hb=ce3886fa05ff0a2fbd4d7b6cf68225d90686eafe;hp=e7ea4dcfa875289aa285af631309dba2fa1fc175;hpb=17c6ac2888a1f30aee059f5cf6b8872bb4f3ab61;p=helm.git diff --git a/helm/software/matita/contribs/ng_assembly/freescale/bool.ma b/helm/software/matita/contribs/ng_assembly/freescale/bool.ma deleted file mode 100755 index e7ea4dcfa..000000000 --- a/helm/software/matita/contribs/ng_assembly/freescale/bool.ma +++ /dev/null @@ -1,78 +0,0 @@ -(**************************************************************************) -(* ___ *) -(* ||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 *) -(* *) -(**************************************************************************) - -(* ********************************************************************** *) -(* Progetto FreeScale *) -(* *) -(* Sviluppato da: Cosimo Oliboni, oliboni@cs.unibo.it *) -(* Cosimo Oliboni, oliboni@cs.unibo.it *) -(* *) -(* ********************************************************************** *) - -include "freescale/pts.ma". - -(* ******** *) -(* BOOLEANI *) -(* ******** *) - -ninductive bool : Type ≝ - true : bool -| false : bool. - -(* operatori booleani *) - -ndefinition eq_bool ≝ -λb1,b2:bool.match b1 with - [ true ⇒ match b2 with [ true ⇒ true | false ⇒ false ] - | false ⇒ match b2 with [ true ⇒ false | false ⇒ true ] - ]. - -ndefinition not_bool ≝ -λb:bool.match b with [ true ⇒ false | false ⇒ true ]. - -ndefinition and_bool ≝ -λb1,b2:bool.match b1 with - [ true ⇒ b2 | false ⇒ false ]. - -ndefinition or_bool ≝ -λb1,b2:bool.match b1 with - [ true ⇒ true | false ⇒ b2 ]. - -ndefinition xor_bool ≝ -λb1,b2:bool.match b1 with - [ true ⇒ not_bool b2 - | false ⇒ b2 ]. - -(* \ominus *) -notation "hvbox(⊖ a)" non associative with precedence 36 - for @{ 'not_bool $a }. -interpretation "not_bool" 'not_bool x = (not_bool x). - -(* \otimes *) -notation "hvbox(a break ⊗ b)" left associative with precedence 35 - for @{ 'and_bool $a $b }. -interpretation "and_bool" 'and_bool x y = (and_bool x y). - -(* \oplus *) -notation "hvbox(a break ⊕ b)" left associative with precedence 34 - for @{ 'or_bool $a $b }. -interpretation "or_bool" 'or_bool x y = (or_bool x y). - -(* \odot *) -notation "hvbox(a break ⊙ b)" left associative with precedence 33 - for @{ 'xor_bool $a $b }. -interpretation "xor_bool" 'xor_bool x y = (xor_bool x y). - -ndefinition boolRelation : Type → Type ≝ -λA:Type.A → A → bool.