• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
          • Atj
          • Aij
          • Language
            • Syntax
            • Semantics
              • Primitive-function-macros
              • Primitive-values
                • Floating-pointx-value
                • Doublex-value-fns
                • Primitivex-value
                • Floatx-value-fns
                • Primitive-value
                • Numericx-value
                • Numeric-value
                • Integral-value
                • Int-value
                • Char-value
                • Byte-value
                • Short-value
                • Long-value
                • Float-value
                • Double-value
                • Boolean-value
                  • Boolean-valuep
                  • Boolean-value-fix
                  • Boolean-value-equiv
                  • Make-boolean-value
                  • Boolean-value->bool
                    • Change-boolean-value
                  • Floating-point-value
                  • Disjoint-primitive-values
                  • Short-value-list
                  • Long-value-list
                  • Int-value-list
                  • Float-value-list
                  • Double-value-list
                  • Char-value-list
                  • Byte-value-list
                  • Boolean-value-list
                • Floating-point-placeholders
                • Pointers
                • Floating-point-value-set-parameters
                • Values
                • Primitive-operations
                • Primitive-conversions
                • Reference-values
          • 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
    • Boolean-value

    Boolean-value->bool

    Get the bool field from a boolean-value.

    Signature
    (boolean-value->bool x) → bool
    Arguments
    x — Guard (boolean-valuep x).
    Returns
    bool — Type (booleanp bool).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: boolean-value->bool$inline

    (defun boolean-value->bool$inline (x)
      (declare (xargs :guard (boolean-valuep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'boolean-value->bool))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (acl2::bool-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: booleanp-of-boolean-value->bool

    (defthm booleanp-of-boolean-value->bool
      (b* ((bool (boolean-value->bool$inline x)))
        (booleanp bool))
      :rule-classes :rewrite)

    Theorem: boolean-value->bool$inline-of-boolean-value-fix-x

    (defthm boolean-value->bool$inline-of-boolean-value-fix-x
      (equal (boolean-value->bool$inline (boolean-value-fix x))
             (boolean-value->bool$inline x)))

    Theorem: boolean-value->bool$inline-boolean-value-equiv-congruence-on-x

    (defthm
         boolean-value->bool$inline-boolean-value-equiv-congruence-on-x
      (implies (boolean-value-equiv x x-equiv)
               (equal (boolean-value->bool$inline x)
                      (boolean-value->bool$inline x-equiv)))
      :rule-classes :congruence)