• 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
        • 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
          • Values
            • Integer-values
            • Boolean-values
              • Bool
                • Boolp
                • Bool-fix
                • Bool-equiv
                • Make-bool
                  • Change-bool
                  • Bool->get
                • Boolean-operations
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Bool

    Make-bool

    Basic constructor macro for bool structures.

    Syntax
    (make-bool [:get <get>]) 
    

    This is the usual way to construct bool structures. It simply conses together a structure with the specified fields.

    This macro generates a new bool structure from scratch. See also change-bool, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-bool

    (defmacro make-bool (&rest args)
      (std::make-aggregate 'bool
                           args '((:get))
                           'make-bool
                           nil))

    Function: bool

    (defun bool (get)
      (declare (xargs :guard (booleanp get)))
      (declare (xargs :guard t))
      (let ((__function__ 'bool))
        (declare (ignorable __function__))
        (b* ((get (mbe :logic (acl2::bool-fix get)
                       :exec get)))
          (cons :bool (list get)))))