• 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
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
            • Keywords
            • Real-operations
            • Array-operations
            • Scalar-operations
              • Test-scalar-value
              • Lognot-scalar-value
              • Structure-operations
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • 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
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Scalar-operations

    Lognot-scalar-value

    Apply ! to a scalar value [C17:6.5.3.3/5].

    Signature
    (lognot-scalar-value val) → resval
    Arguments
    val — Guard (valuep val).
    Returns
    resval — Type (valuep resval).

    Definitions and Theorems

    Function: lognot-scalar-value

    (defun lognot-scalar-value (val)
      (declare (xargs :guard (valuep val)))
      (declare (xargs :guard (value-scalarp val)))
      (let ((__function__ 'lognot-scalar-value))
        (declare (ignorable __function__))
        (cond ((value-integerp val)
               (lognot-integer-value val))
              ((value-case val :pointer)
               (lognot-pointer-value val))
              (t (ec-call (value-fix (impossible)))))))

    Theorem: valuep-of-lognot-scalar-value

    (defthm valuep-of-lognot-scalar-value
      (b* ((resval (lognot-scalar-value val)))
        (valuep resval))
      :rule-classes :rewrite)

    Theorem: lognot-scalar-value-of-value-fix-val

    (defthm lognot-scalar-value-of-value-fix-val
      (equal (lognot-scalar-value (value-fix val))
             (lognot-scalar-value val)))

    Theorem: lognot-scalar-value-value-equiv-congruence-on-val

    (defthm lognot-scalar-value-value-equiv-congruence-on-val
      (implies (value-equiv val val-equiv)
               (equal (lognot-scalar-value val)
                      (lognot-scalar-value val-equiv)))
      :rule-classes :congruence)