Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15795 > unrolled thread

Simplification with custom axioms

Started byVavilen <nvr.disappear@gmail.com>
First post2011-02-05 10:44 +0000
Last post2011-02-05 10:44 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Simplification with custom axioms Vavilen <nvr.disappear@gmail.com> - 2011-02-05 10:44 +0000

#15795 — Simplification with custom axioms

FromVavilen <nvr.disappear@gmail.com>
Date2011-02-05 10:44 +0000
SubjectSimplification with custom axioms
Message-ID<iij9lp$go4$1@smc.vnet.net>
Hi all,

I wonder if it's possible to get Mathematica to understand specified
properties of functions when simplifying.
For example, by default it does not know that BitAnd[x, y] <= x:

In = FullSimplify[BitAnd[x, 10] <= 10]
Out = BitAnd[10, x] <= 10
(expected result is True)

I tried using ForAll, but without success:

In = Assuming[
  ForAll[{x, y}, 0 <= BitAnd[x, y] <= x && 0 <= BitAnd[x, y] <= y],
  FullSimplify[BitAnd[10, x] <= 10]]
Out = BitAnd[10, x] <= 10

Any ideas?

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web