• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
          • Defbyte
          • Defresult
          • Fold
          • Defsubtype
          • Defset
          • Specific-types
          • Defflatsum
          • Deflist-of-len
          • Pos-list
          • Defbytelist
          • Defomap
          • Defbyte-standard-instances
            • Ubyte5
            • Ubyte8
            • Ubyte32
            • Ubyte12
            • Ubyte64
            • Ubyte16
            • Ubyte128
            • Sbyte8
            • Sbyte64
            • Sbyte32
            • Sbyte16
            • Sbyte128
            • Ubyte20
            • Ubyte11
            • Ubyte4
            • Ubyte256
            • Sbyte256
              • Sbyte256p
                • Sbyte256-fix
              • Ubyte7
              • Ubyte6
              • Ubyte3
              • Ubyte2
              • Ubyte1
              • Sbyte4
              • Sbyte3
              • Sbyte2
              • Sbyte1
              • Defbyte-standard-instances-ihs-theorems
              • Defubyte
              • Defsbyte
            • Deffixtype-alias
            • Defbytelist-standard-instances
            • Defunit
            • Byte-list
            • Byte
            • Database
            • Pos-option
            • Nibble
            • Nat-option
            • String-option
            • Byte-list20
            • Byte-list32
            • Byte-list64
            • Pseudo-event-form
            • Natoption/natoptionlist
            • Nati
            • Character-list
            • Nat/natlist
            • Maybe-string
            • Nibble-list
            • Natoption/natoptionlist-result
            • Nat/natlist-result
            • Nat-option-list-result
            • Set
            • String-result
            • String-list-result
            • Nat-result
            • Nat-option-result
            • Nat-list-result
            • Maybe-string-result
            • Integer-result
            • Character-result
            • Character-list-result
            • Boolean-result
            • Map
            • Bag
            • Pos-set
            • Hex-digit-char-list
            • Dec-digit-char-list
            • Pseudo-event-form-list
            • Nat-option-list
            • Symbol-set
            • String-set
            • Nat-set
            • Oct-digit-char-list
            • Bin-digit-char-list
            • Bit-list
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Sbyte256

    Sbyte256p

    Recognizer for sbyte256.

    Signature
    (sbyte256p x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: sbyte256p

    (defun sbyte256p (x)
     (declare (xargs :guard t))
     (mbe
      :logic (signed-byte-p 256 x)
      :exec
      (and
       (integerp x)
       (<=
        -57896044618658097711785492504343953926634992332820282019728792003956564819968
        x)
       (<
        x
        57896044618658097711785492504343953926634992332820282019728792003956564819968))))

    Theorem: booleanp-of-sbyte256p

    (defthm booleanp-of-sbyte256p
      (b* ((yes/no (sbyte256p x)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: sbyte256p-forward-signed-byte-p

    (defthm sbyte256p-forward-signed-byte-p
      (implies (sbyte256p x)
               (signed-byte-p 256 x))
      :rule-classes :forward-chaining)

    Theorem: signed-byte-p-rewrite-sbyte256p

    (defthm signed-byte-p-rewrite-sbyte256p
      (equal (signed-byte-p 256 x)
             (sbyte256p x)))

    Theorem: integerp-when-sbyte256p

    (defthm integerp-when-sbyte256p
      (implies (sbyte256p x) (integerp x))
      :rule-classes :compound-recognizer)