• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
          • Mmp-trees
          • Semaphore
          • Database
          • Cryptography
          • Rlp
            • Rlp-tree
            • Rlp-decoding-executable
            • Rlp-decodability
              • Rlp-encode-trees-injectivity-proof
              • Rlp-encode-bytes-injectivity-proof
              • Rlp-encode-bytes-prefix-unambiguity-proof
              • Rlp-encode-tree-prefix-unambiguity-proof
              • Rlp-encode-scalar-injectivity-proof
                • Rlp-encode-scalar-prefix-unambiguity-proof
              • Rlp-encoding
              • Rlp-decoding-declarative
              • Rlp-big-endian-representations
            • Transactions
            • Hex-prefix
            • Basics
            • Addresses
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Rlp-decodability

    Rlp-encode-scalar-injectivity-proof

    Injectivity of rlp-encode-scalar, over the encodable scalars.

    This is also formulated similarly to the other injectivity theorems. It readily follows from the injectivity of rlp-encode-bytes.

    Definitions and Theorems

    Theorem: rlp-encode-scalar-injective

    (defthm rlp-encode-scalar-injective
      (implies (and (not (mv-nth 0 (rlp-encode-scalar x)))
                    (not (mv-nth 0 (rlp-encode-scalar y))))
               (equal (equal (mv-nth 1 (rlp-encode-scalar x))
                             (mv-nth 1 (rlp-encode-scalar y)))
                      (equal (nfix x) (nfix y)))))