• 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

    Sint-write

    Representation of a write of a pointed type signed int.

    Signature
    (sint-write x) → x
    Arguments
    x — Guard (sintp x).
    Returns
    x — Type (star (sintp x)).

    Definitions and Theorems

    Function: sint-write

    (defun sint-write (x)
      (declare (xargs :guard (sintp x)))
      (let ((__function__ 'sint-write))
        (declare (ignorable __function__))
        (sint-fix x)))

    Theorem: return-type-of-sint-write

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

    Theorem: sintp-of-sint-write

    (defthm sintp-of-sint-write
      (b* ((x (sint-write x))) (sintp x))
      :rule-classes :rewrite)

    Theorem: sint-write-of-sint-fix-x

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

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

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