Theorems about get-rs2 applied to the encoding of different instructions.
Theorem:
(defthm get-rs2-of-encode-of-instr-op (equal (get-rs2 (encode (instr-op funct rd rs1 rs2) feat)) (ubyte5-fix rs2)))
Theorem:
(defthm get-rs2-of-encode-of-instr-op-32 (equal (get-rs2 (encode (instr-op-32 funct rd rs1 rs2) feat)) (ubyte5-fix rs2)))
Theorem:
(defthm get-rs2-of-encode-of-instr-branch (equal (get-rs2 (encode (instr-branch funct rs1 rs2 imm) feat)) (ubyte5-fix rs2)))
Theorem:
(defthm get-rs2-of-encode-of-instr-store (equal (get-rs2 (encode (instr-store funct rs1 rs2 imm) feat)) (ubyte5-fix rs2)))