acl2 / acl2/acl2

Bits

Abierto
#123 5 comentarios 0 reacciones 1 asignado Reclamado por @ragerdl Ver en GitHub
Component: STD Difficulty: Medium Priority: Default
Lenguaje dominante
Common Lisp
Estrellas
447
Forks
127
Merge medio
22 h 44 min
PR fusionados (30 d)
18

Descripción

_From [rage...@gmail.com](https://code.google.com/u/102895947197065323718/) on November 20, 2013 16:55:55_

We could use a nice, standard, definition, similar to the version of bits in the rtl library, that comes with a lot of nice lemmas (a linear rule to describe the maximum value returned by bits, what it means to logapp calls of bits, etc.). Furthermore, it should work well with GL/SAT.

Here's one possible definition:

(define gl-bits
((x integerp "Integer from which to select bits")
(i natp "Starting position for selection (inclusive and also the smaller number")
(j natp "Ending position for selection (exclusive and also the larger number"))
:parents (oracle-undocumented)
(logtail i (loghead j x)))

There's another in books/centaur/bitops/part-select, but it's written in terms or rdb and bsp. That might be an issue for those that aren't already using rdb and bsp, but if there was a nice theory around part-select, I'd guess it wouldn't matter what the implementation was.

_Original issue: http://code.google.com/p/acl2-books/issues/detail?id=122_

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.