X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2Fng_assembly%2Fnum%2Fword24.ma;h=4aabde7710cf2124ca4eb7be29a96344acff3a4c;hb=3cf6181bded05eb63140d1b2ba4f2f5791a73b48;hp=c0e0d935cabb191aab51689c6ee73a9ab58838b0;hpb=2c38e6a237e6a0e263abccf8d8ef3e7a31272443;p=helm.git diff --git a/helm/software/matita/contribs/ng_assembly/num/word24.ma b/helm/software/matita/contribs/ng_assembly/num/word24.ma index c0e0d935c..4aabde771 100755 --- a/helm/software/matita/contribs/ng_assembly/num/word24.ma +++ b/helm/software/matita/contribs/ng_assembly/num/word24.ma @@ -192,6 +192,11 @@ ndefinition compl_w24 ≝ [ true ⇒ succ_w24 (not_w24 w) | false ⇒ not_w24 (pred_w24 w) ]. +(* operatore abs *) +ndefinition abs_w24 ≝ +λw:word24.match getMSB_w24 w with + [ true ⇒ compl_w24 w | false ⇒ w ]. + (* operatore x in [inf,sup] o in sup],[inf *) ndefinition inrange_w24 ≝ λx,inf,sup:word24.