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

    Get-rd-of-encode-of-instr

    Theorems about get-rd applied to the encoding of different instructions.

    Definitions and Theorems

    Theorem: get-rd-of-encode-of-instr-op-imm

    (defthm get-rd-of-encode-of-instr-op-imm
      (equal (get-rd (encode (instr-op-imm funct rd rs1 imm)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-op-imms32

    (defthm get-rd-of-encode-of-instr-op-imms32
      (equal (get-rd (encode (instr-op-imms32 funct rd rs1 imm)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-op-imms64

    (defthm get-rd-of-encode-of-instr-op-imms64
      (equal (get-rd (encode (instr-op-imms64 funct rd rs1 imm)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-op-imm-32

    (defthm get-rd-of-encode-of-instr-op-imm-32
      (equal (get-rd (encode (instr-op-imm-32 funct rd rs1 imm)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-op-imms-32

    (defthm get-rd-of-encode-of-instr-op-imms-32
      (equal (get-rd (encode (instr-op-imms-32 funct rd rs1 imm)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-lui

    (defthm get-rd-of-encode-of-instr-lui
      (equal (get-rd (encode (instr-lui rd imm) feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-auipc

    (defthm get-rd-of-encode-of-instr-auipc
      (equal (get-rd (encode (instr-auipc rd imm) feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-op

    (defthm get-rd-of-encode-of-instr-op
      (equal (get-rd (encode (instr-op funct rd rs1 rs2)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-op-32

    (defthm get-rd-of-encode-of-instr-op-32
      (equal (get-rd (encode (instr-op-32 funct rd rs1 rs2)
                             feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-jal

    (defthm get-rd-of-encode-of-instr-jal
      (equal (get-rd (encode (instr-jal rd imm) feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-jalr

    (defthm get-rd-of-encode-of-instr-jalr
      (equal (get-rd (encode (instr-jalr rd rs1 imm) feat))
             (ubyte5-fix rd)))

    Theorem: get-rd-of-encode-of-instr-load

    (defthm get-rd-of-encode-of-instr-load
      (equal (get-rd (encode (instr-load funct rd rs1 imm)
                             feat))
             (ubyte5-fix rd)))