• 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
          • Representation
            • Representation-of-integer-operations
            • Atc-arrays
            • Representation-of-integers
            • Representation-of-integer-conversions
            • Pointed-integers
              • Def-pointed-integer-operations
              • Def-pointed-integer-operations-loop
              • Ushort-write
              • Ullong-write
              • Sshort-write
              • Sllong-write
              • Ulong-write
              • Uint-write
                • Uchar-write
                • Slong-write
                • Sint-write
                • Schar-write
                • Ushort-read
                • Ullong-read
                • Sshort-read
                • Sllong-read
                • Ulong-read
                • Uint-read
                • Uchar-read
                • Slong-read
                • Sint-read
                • Schar-read
              • Shallow-deep-embedding-relation
            • 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
    • Pointed-integers

    Uint-write

    Representation of a write of a pointed type unsigned int.

    Signature
    (uint-write x) → x
    Arguments
    x — Guard (uintp x).
    Returns
    x — Type (star (uintp x)).

    Definitions and Theorems

    Function: uint-write

    (defun uint-write (x)
      (declare (xargs :guard (uintp x)))
      (let ((__function__ 'uint-write))
        (declare (ignorable __function__))
        (uint-fix x)))

    Theorem: return-type-of-uint-write

    (defthm return-type-of-uint-write
      (b* ((x (uint-write x)))
        (star (uintp x)))
      :rule-classes :rewrite)

    Theorem: uintp-of-uint-write

    (defthm uintp-of-uint-write
      (b* ((x (uint-write x))) (uintp x))
      :rule-classes :rewrite)

    Theorem: uint-write-of-uint-fix-x

    (defthm uint-write-of-uint-fix-x
      (equal (uint-write (uint-fix x))
             (uint-write x)))

    Theorem: uint-write-uint-equiv-congruence-on-x

    (defthm uint-write-uint-equiv-congruence-on-x
      (implies (uint-equiv x x-equiv)
               (equal (uint-write x)
                      (uint-write x-equiv)))
      :rule-classes :congruence)