• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
      • 100-theorems
      • Arithmetic
      • Bit-vectors
        • Sparseint
        • Bitops
        • Bv
        • Ihs
          • Logops-definitions
            • Logops-byte-functions
            • Defword
            • Defbytetype
            • Logext
            • Loghead
            • Logrev
            • Logops-bit-functions
            • Logapp
            • Logtail
            • Logsat
            • Binary--
              • Binary-minus-for-gl
              • Logcdr
              • Logcar
              • Logbit
              • Logextu
              • Logcons
              • Lshu
              • Logrpl
              • Ashu
              • Logmaskp
              • Lognotu
              • Logmask
              • Imod
              • Ifloor
              • Bfix
              • Bitmaskp
              • Logite
              • Expt2
              • Zbp
              • *logops-functions*
              • Word/bit-macros
              • Logops-definitions-theory
              • Logops-functions
              • Lbfix
              • Logextu-guard
              • Lshu-guard
              • Logtail-guard
              • Logrpl-guard
              • Logrev-guard
              • Lognotu-guard
              • Logmask-guard
              • Loghead-guard
              • Logext-guard
              • Logbit-guard
              • Logapp-guard
              • Ashu-guard
            • Math-lemmas
            • Ihs-theories
            • Ihs-init
            • Logops
          • Rtl
        • Algebra
      • Testing-utilities
    • Binary--

    Binary-minus-for-gl

    Hack for implementing binary--. Don't use this.

    Signature
    (binary-minus-for-gl x y) → *
    Arguments
    x — Guard (acl2-numberp x).
    y — Guard (acl2-numberp y).

    You should never need to use this, call binary-- instead.

    This is the logical definition for binary--. It has a custom GL symbolic counterpart. The only reason to make this a separate function, instead of directly putting a symbolic counterpart on binary-- itself, is to avoid infinite inlining problems when we define custom symbolic counterparts for inlined functions on Lisps like SBCL.

    Definitions and Theorems

    Function: binary-minus-for-gl

    (defun binary-minus-for-gl (x y)
      (declare (xargs :guard (and (acl2-numberp x)
                                  (acl2-numberp y))))
      (let ((__function__ 'binary-minus-for-gl))
        (declare (ignorable __function__))
        (- x y)))