Essential Logic for Computer Science by Rex Page;Ruben Gamboa;
Author:Rex Page;Ruben Gamboa;
Language: eng
Format: epub
Publisher: MIT Press
Figure 6.5
Definitions of operators bits and numb.
A theorem about numb concerning the interpretation of binary numerals as numbers and a theorem about numb being the inverse of the bits operator are true, and the proofs are similar to the proofs of the corresponding theorems about decimal numerals presented earlier in this chapter. Constructing those proofs can clarify your understanding of both decimal numerals and binary numerals.
Box 6.6
Representation Trick: Any List Is a Binary Numeral
A difference between the definition of numb (figure 6.5) and the definition of nmb10 (page 130) is that numb treats bits as symbols, whereas nmb10 assumes that digits are numbers. A 1 in our representation of binary numerals stands for a one-bit. Anything else stands for a zero-bit. Thatâs why the definition of numb has two equations ({2numb+1} and {2numb}) for nonempty numerals, whereas the definition of nmb10 has only one equation ({n10.1}).
There are two motivations for this design decision. One is that it makes binary numerals entirely symbolic, with no ephemeral entities like mathematical numbers. Circuits represent bits symbolically by electronic signals, and so the definition of numb is more closely related to a circuit than it would be if it treated bits as numbers.
The other motivation is to reduce the number of constraints in theorems about ACL2 models of circuits. Bits donât have to be lists of zeros and ones. Any list is a numeral. That numeral has one-bits where the elements of the list are ones and zero-bits where its elements are anything other than ones. In fact, numerals are entirely unconstrained. The empty list represents the number zero, but so does any ACL2 entity x such that (consp x) is false. Many picayune details in theorems about binary numerals are avoided by this elimination of constraints.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8296)
Test-Driven Development with Java by Alan Mellor(6706)
Data Augmentation with Python by Duc Haba(6612)
Principles of Data Fabric by Sonia Mezzetta(6367)
Learn Blender Simulations the Right Way by Stephen Pearson(6262)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6127)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5526)
Big Data Analysis with Python by Ivan Marin(5353)
The Infinite Retina by Robert Scoble Irena Cronin(5223)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5144)
Pretrain Vision and Large Language Models in Python by Emily Webber(4313)
Infrastructure as Code for Beginners by Russ McKendrick(4076)
Functional Programming in JavaScript by Mantyla Dan(4038)
The Age of Surveillance Capitalism by Shoshana Zuboff(3946)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3789)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3590)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3567)
