jrh13 / hol-light

The HOL Light theorem prover
Other
435 stars 79 forks source link

Enhance word automation procedures WORD_ARITH and BITBLAST_RULE #110

Closed jargh closed 2 months ago

jargh commented 2 months ago

This makes the word decision procedures WORD_ARITH/WORD_ARITH_TAC and BITBLAST_RULE more capable in several ways:

Here are some word examples that work now but didn't before:

WORD_ARITH !m n. m < 4096 /\ n <= 511 ==> word_ule (word_add (word_mul (word n) (word 0x00001000)) (word m)) (word 0x0000000001FFFFFF:int64);;

BITBLAST_RULE word_and x (word 256):int64 = word 0 <=> val x MOD 512 < 256;;