• 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
              • Stat1-iso
                • Stat1-from-stat
                • Write1-memory-unsigned64
                • Stat-from-stat1
                • Read1-memory-unsigned64
                • Write1-memory-unsigned32
                • Make-stat1
                • Write1-xreg
                • Write1-memory-unsigned8
                • Write1-memory-unsigned16
                • Stat1->memory
                • Read1-memory-unsigned32
                • Read1-instruction
                • Write1-xreg-32
                • Write1-pc
                • Read1-memory-unsigned16
                • Stat1-validp
                • Read1-xreg-unsigned32
                • Read1-xreg-unsigned
                • Read1-xreg-signed32
                • Read1-memory-unsigned8
                • Inc1-4-pc
                • Error1
                • Read1-xreg-signed
                • Read1-pc
                • 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

    Stat1-iso

    Isomorphism between stat and stat1.

    The stat1-from-stat and stat-from-stat1 functions are the isomorphic conversions.

    We prove a local lemma to prove stat1-from-stat-of-stat-from-stat1.

    Definitions and Theorems

    Theorem: stat-stat1-iso.alpha-image

    (defthm stat-stat1-iso.alpha-image
      (implies (statp stat)
               (stat1p (stat1-from-stat stat))))

    Theorem: stat-stat1-iso.beta-image

    (defthm stat-stat1-iso.beta-image
      (implies (stat1p stat1)
               (statp (stat-from-stat1 stat1))))

    Theorem: stat-from-stat1-of-stat1-from-stat

    (defthm stat-from-stat1-of-stat1-from-stat
      (implies (statp stat)
               (equal (stat-from-stat1 (stat1-from-stat stat))
                      stat)))

    Theorem: stat1-from-stat-of-stat-from-stat1

    (defthm stat1-from-stat-of-stat-from-stat1
      (implies (stat1p stat1)
               (equal (stat1-from-stat (stat-from-stat1 stat1))
                      stat1)))

    Theorem: stat-stat1-iso.doma-guard

    (defthm stat-stat1-iso.doma-guard
      t
      :rule-classes nil)

    Theorem: stat-stat1-iso.domb-guard

    (defthm stat-stat1-iso.domb-guard
      t
      :rule-classes nil)

    Theorem: stat-stat1-iso.alpha-guard

    (defthm stat-stat1-iso.alpha-guard
      (implies (statp stat) (statp stat)))

    Theorem: stat-stat1-iso.beta-guard

    (defthm stat-stat1-iso.beta-guard
      (implies (stat1p stat1)
               (and (stat1p stat1) (stat1p stat1))))

    Theorem: stat1-from-stat-injective

    (defthm stat1-from-stat-injective
      (implies (and (statp stat) (statp stat$))
               (equal (equal (stat1-from-stat stat)
                             (stat1-from-stat stat$))
                      (equal stat stat$))))

    Theorem: stat-from-stat1-injective

    (defthm stat-from-stat1-injective
      (implies (and (stat1p stat1) (stat1p stat1$))
               (equal (equal (stat-from-stat1 stat1)
                             (stat-from-stat1 stat1$))
                      (equal stat1 stat1$))))