• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
        • Deftagsum
        • Defprod
        • Defflexsum
        • Defbitstruct
        • Deflist
        • Defalist
        • 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*
          • Deffixequiv
          • Defresult
          • Deffixtype
          • Defoption
          • Fty-discipline
          • Fold
          • Fty-extensions
          • Defsubtype
          • Defset
          • Deftypes
          • Specific-types
          • Defflatsum
          • Deflist-of-len
          • Defbytelist
          • Fty::basetypes
          • Defomap
          • Defvisitors
          • Deffixtype-alias
          • Deffixequiv-sk
          • Defunit
          • Multicase
          • Deffixequiv-mutual
          • Fty::baselists
          • Def-enumcase
          • Defmap
        • Apt
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)))