• 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
            • Defbytelist
            • Defbyte-standard-instances
            • Defbyte-ihs-theorems
            • Defbyte-implementation
              • Defbyte-fn
              • Defbyte-infop
                • Defbyte-info
                  • Make-defbyte-info
                  • Change-defbyte-info
                  • Make-honsed-defbyte-info
                  • Honsed-defbyte-info
                  • Defbyte-info->size
                  • Defbyte-info->signed
                • Defbyte-check-size
                • Defbyte-fix-support-lemma
                • Defbyte-table
                • Defbyte-macro-definition
                • *defbyte-table-name*
            • Defresult
            • Fold
            • Defsubtype
            • Defset
            • Specific-types
            • Defflatsum
            • Deflist-of-len
            • Pos-list
            • Defbytelist
            • Defomap
            • Defbyte-standard-instances
            • 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
    • Defbyte-infop

    Defbyte-info

    Raw constructor for defbyte-infop structures.

    Syntax:

    (defbyte-info size signed)

    This is the lowest-level constructor for defbyte-infop structures. It simply conses together a structure with the specified fields.

    Note: It's generally better to use macros like make-defbyte-info or change-defbyte-info instead. These macros lead to more readable and robust code, because you don't have to remember the order of the fields.

    The defbyte-infop structures we create here are just constructed with ordinary cons. If you want to create honsed structures, see honsed-defbyte-info instead.

    Definition

    This is an ordinary constructor function introduced by std::defaggregate.

    Function: defbyte-info

    (defun defbyte-info (size signed)
      (declare (xargs :guard (and (or (posp size)
                                      (symbolp size)
                                      (and (acl2::tuplep 1 size)
                                           (symbolp (car size))))
                                  (booleanp signed))))
      (cons (cons 'size size)
            (cons (cons 'signed signed) nil)))