• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
        • Values
          • Integer-values
          • Boolean-values
            • Bool
              • Boolp
              • Bool-fix
              • Bool-equiv
              • Make-bool
              • Change-bool
              • Bool->get
              • Boolean-operations
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Bool

    Bool->get

    Get the get field from a bool.

    Signature
    (bool->get x) → get
    Arguments
    x — Guard (boolp x).
    Returns
    get — Type (booleanp get).

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

    Definitions and Theorems

    Function: bool->get$inline

    (defun bool->get$inline (x)
      (declare (xargs :guard (boolp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'bool->get))
        (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-bool->get

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

    Theorem: bool->get$inline-of-bool-fix-x

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

    Theorem: bool->get$inline-bool-equiv-congruence-on-x

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