• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
          • Specification
          • Executable
          • Specialized
          • Optimized
            • State-stobj
              • Stat1
              • Write1-memory-unsigned64
              • Stat1-iso
              • Read1-memory-unsigned64
              • Stat1-from-stat
              • Write1-memory-unsigned32
              • Read1-memory-unsigned32
              • Write1-memory-unsigned16
              • Write1-memory-unsigned8
              • Read1-memory-unsigned16
              • Read1-instruction
              • Stat-from-stat1
              • Write1-xreg
              • Read1-xreg-unsigned32
              • Read1-xreg-unsigned
              • Read1-memory-unsigned8
              • Write1-xreg-32
              • Stat1-validp
              • Read1-xreg-signed32
              • Read1-xreg-signed
              • Write1-pc
              • Make-stat1
                • Error1
                • Read1-pc
                • Inc41-pc
                • Stat1->memory
                • Errorp1
          • 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
    • State-stobj

    Make-stat1

    Signature
    (make-stat1 xregs pc memory error) → stat1
    Arguments
    xregs — Guard (stat1-xregs-p xregs).
    pc — Guard (stat1-pc-p pc).
    memory — Guard (stat1-memory-p memory).
    error — Guard (stat1-error-p error).
    Returns
    stat1 — Type (stat1p stat1), given the guard.

    Definitions and Theorems

    Function: make-stat1

    (defun make-stat1 (xregs pc memory error)
      (declare (xargs :guard (and (stat1-xregs-p xregs)
                                  (stat1-pc-p pc)
                                  (stat1-memory-p memory)
                                  (stat1-error-p error))))
      (list xregs pc memory error))

    Theorem: stat1p-of-make-stat1

    (defthm stat1p-of-make-stat1
      (implies (and (stat1-xregs-p xregs)
                    (stat1-pc-p pc)
                    (stat1-memory-p memory)
                    (stat1-error-p error))
               (b* ((stat1 (make-stat1 xregs pc memory error)))
                 (stat1p stat1)))
      :rule-classes :rewrite)