• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
        • Specification
        • Executable
          • Decoding-left-inverse
            • Decodex-of-encode-of-instr
            • Get-opcode-of-encode-of-instr
            • Get-funct3-of-encode-of-instr
            • Get-rd-of-encode-of-instr
            • Get-rs1-of-encode-of-instr
            • Get-fields-itype-of-encode-of-instr
            • Get-imm-itype-of-encode-of-instr
            • Get-rs2-of-encode-of-instr
            • Get-fields-rtype-of-encode-of-instr
            • Encode-injective
            • Get-funct7-of-encode-of-instr
            • Get-fields-utype-of-encode-of-instr
            • Decodex-of-encode
              • Get-imm-utype-of-encode-of-instr
              • Get-fields-stype-of-encode-of-instr
              • Get-fields-btype-of-encode-of-instr
              • Get-imm-stype-of-encode-of-instr
              • Get-imm-jtype-of-encode-of-instr
              • Get-imm-btype-of-encode-of-instr
              • Get-fields-jtype-of-encode-of-instr
            • Decoding-executable
            • Decoding-right-inverse
            • Execution-executable
            • Decoding-correct
          • Specialized
        • 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
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Decoding-left-inverse

    Decodex-of-encode

    Decoding the encoding of a valid instruction yields the original instruction.

    That is, decoding is left inverse of encoding, over valid instructions.

    Definitions and Theorems

    Theorem: decodex-of-encode

    (defthm decodex-of-encode
      (implies (instr-validp instr feat)
               (equal (decodex (encode instr feat) feat)
                      (instr-fix instr))))