• 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
        • Semantics
        • Abstract-syntax
          • Aexp
          • Bexp
            • Bexp-case
            • Bexp-fix
            • Bexpp
            • Bexp-count
            • Bexp-equiv
            • Bexp-less
            • Bexp-equal
            • Bexp-and
            • Bexp-const
            • Bexp-not
              • Make-bexp-not
              • Bexp-not->arg
                • Change-bexp-not
              • Bexp-kind
            • Comm
            • Comm-list
            • Command-fixtypes
          • Interpreter
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Bexp-not

    Bexp-not->arg

    Get the arg field from a bexp-not.

    Signature
    (bexp-not->arg x) → arg
    Arguments
    x — Guard (bexpp x).
    Returns
    arg — Type (bexpp arg).

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

    Definitions and Theorems

    Function: bexp-not->arg$inline

    (defun bexp-not->arg$inline (x)
      (declare (xargs :guard (bexpp x)))
      (declare (xargs :guard (equal (bexp-kind x) :not)))
      (let ((__function__ 'bexp-not->arg))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (bexp-kind x) :not) x)))
               (bexp-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: bexpp-of-bexp-not->arg

    (defthm bexpp-of-bexp-not->arg
      (b* ((arg (bexp-not->arg$inline x)))
        (bexpp arg))
      :rule-classes :rewrite)

    Theorem: bexp-not->arg$inline-of-bexp-fix-x

    (defthm bexp-not->arg$inline-of-bexp-fix-x
      (equal (bexp-not->arg$inline (bexp-fix x))
             (bexp-not->arg$inline x)))

    Theorem: bexp-not->arg$inline-bexp-equiv-congruence-on-x

    (defthm bexp-not->arg$inline-bexp-equiv-congruence-on-x
      (implies (bexp-equiv x x-equiv)
               (equal (bexp-not->arg$inline x)
                      (bexp-not->arg$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: bexp-not->arg-when-wrong-kind

    (defthm bexp-not->arg-when-wrong-kind
      (implies (not (equal (bexp-kind x) :not))
               (equal (bexp-not->arg x)
                      (bexp-fix nil))))