• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • 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
        • Taspi
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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$))))