• Top
    • Documentation
    • Books
    • Recursion-and-induction
      • R-and-i-annotated-bibliography
      • R-and-i-definitions-revisited
      • R-and-i-terms
      • R-and-i-structural-induction
      • R-and-i-relations-between-recursion-and-induction
      • R-and-i-ordinals
      • R-and-i-inadequacies-of-structural-recursion
      • R-and-i-axioms
      • R-and-i-abbreviations-for-terms
      • R-and-i-terms-as-formulas
      • R-and-i-more-problems
      • R-and-i-still-more-problems
      • R-and-i-definitional-principle
      • R-and-i-function-definitions
      • R-and-i-introduction
      • R-and-i-table-of-contents
      • R-and-i-substitutions
      • R-and-i-arithmetic
      • R-and-i-induction-principle
      • R-and-i-data-types
        • R-and-i-pairs
        • R-and-i-data-types-exercises
        • R-and-i-symbols
        • R-and-i-identity
        • R-and-i-numbers
          • R-and-i-characters
          • R-and-i-strings
        • R-and-i-more-inadequacies-of-the-definitional-principle
      • Boolean-reasoning
      • Debugging
      • Projects
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • R-and-i-data-types

    R-and-i-numbers

    Recursion and Induction: Numbers

    The only numbers we will use are the integers, written in the usual way, e.g., -3, 0, and 123. ACL2 allows integers to be written in other ways, e.g., 00123, +123, 246/2, #b1111011, #o173 and #x7B are all ways to write 123. However, we will always write them in conventional decimal notation.

    ACL2 also supports rationals, e.g., 1/3 and 22/7, and complex rationals, e.g., #c(5 2), which is more commonly written 5 + 2i. Lisp, but not ACL2, supports floating point numbers, e.g., 3.1415 and 31415E-4.

    (Maybe explore <<numbers>>?)

    Next: Characters (or Table of Contents)