• 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
              • Value-pointer-validp
              • Value-pointer->designator
              • Lognot-pointer-value
              • Test-pointer-value
              • Value-pointer-danglingp
              • Value-pointer-dangling
              • Value-pointer-nullp
              • Value-pointer-null
              • Bytes
              • Keywords
              • Real-operations
              • Array-operations
              • Scalar-operations
              • 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
    • Pointer-operations

    Value-pointer-null

    Null pointer for a given referenced type.

    Signature
    (value-pointer-null reftype) → ptr
    Arguments
    reftype — Guard (typep reftype).
    Returns
    ptr — Type (valuep ptr).

    Definitions and Theorems

    Function: value-pointer-null

    (defun value-pointer-null (reftype)
      (declare (xargs :guard (typep reftype)))
      (let ((__function__ 'value-pointer-null))
        (declare (ignorable __function__))
        (make-value-pointer :core (pointer-null)
                            :reftype reftype)))

    Theorem: valuep-of-value-pointer-null

    (defthm valuep-of-value-pointer-null
      (b* ((ptr (value-pointer-null reftype)))
        (valuep ptr))
      :rule-classes :rewrite)

    Theorem: value-kind-of-value-pointer-null

    (defthm value-kind-of-value-pointer-null
      (b* ((?ptr (value-pointer-null reftype)))
        (equal (value-kind ptr) :pointer)))

    Theorem: value-pointer-null-of-type-fix-reftype

    (defthm value-pointer-null-of-type-fix-reftype
      (equal (value-pointer-null (type-fix reftype))
             (value-pointer-null reftype)))

    Theorem: value-pointer-null-type-equiv-congruence-on-reftype

    (defthm value-pointer-null-type-equiv-congruence-on-reftype
      (implies (type-equiv reftype reftype-equiv)
               (equal (value-pointer-null reftype)
                      (value-pointer-null reftype-equiv)))
      :rule-classes :congruence)