• 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
          • Decoding-executable
          • Decoding-right-inverse
            • Decodex-injective
              • Encode-of-decodex
            • 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-right-inverse

    Decodex-injective

    Injectivity of decoding.

    Different valid encodings are decoded differently. This is a direct consequence of encode-of-decodex: if two different instructions were decoded in the same way, the encoder would be unable to restore both at the same time.

    Definitions and Theorems

    Theorem: decodex-injective

    (defthm decodex-injective
      (b* ((instr1? (decodex enc1 feat))
           (instr2? (decodex enc2 feat)))
        (implies (and instr1? instr2?)
                 (equal (equal instr1? instr2?)
                        (equal (ubyte32-fix enc1)
                               (ubyte32-fix enc2))))))