• 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
          • Transactions
            • Make-signed-transaction
            • Transaction
            • Maybe-byte-list20
              • Maybe-byte-list20-fix
              • Maybe-byte-list20-equiv
              • Maybe-byte-list20-case
              • Maybe-byte-list20-some
                • Maybe-byte-list20-some->val
                  • Make-maybe-byte-list20-some
                  • Change-maybe-byte-list20-some
                • Maybe-byte-list20-none
                • Maybe-byte-list20p
              • Rlp-decode-transaction
              • Rlp-encode-transaction
              • Rlp-transaction-encoding-p
            • 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
    • Maybe-byte-list20-some

    Maybe-byte-list20-some->val

    Get the fty::val field from a maybe-byte-list20-some.

    Signature
    (maybe-byte-list20-some->val x) → fty::val
    Arguments
    x — Guard (maybe-byte-list20p x).
    Returns
    fty::val — Type (byte-list20p fty::val).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: maybe-byte-list20-some->val$inline

    (defun maybe-byte-list20-some->val$inline (x)
      (declare (xargs :guard (maybe-byte-list20p x)))
      (declare (xargs :guard x))
      (let ((__function__ 'maybe-byte-list20-some->val))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and x x)))
               (acl2::byte-list20-fix x))
             :exec x)))

    Theorem: byte-list20p-of-maybe-byte-list20-some->val

    (defthm byte-list20p-of-maybe-byte-list20-some->val
      (b* ((fty::val (maybe-byte-list20-some->val$inline x)))
        (byte-list20p fty::val))
      :rule-classes :rewrite)

    Theorem: maybe-byte-list20-some->val$inline-of-maybe-byte-list20-fix-x

    (defthm
          maybe-byte-list20-some->val$inline-of-maybe-byte-list20-fix-x
     (equal
          (maybe-byte-list20-some->val$inline (maybe-byte-list20-fix x))
          (maybe-byte-list20-some->val$inline x)))

    Theorem: maybe-byte-list20-some->val$inline-maybe-byte-list20-equiv-congruence-on-x

    (defthm
     maybe-byte-list20-some->val$inline-maybe-byte-list20-equiv-congruence-on-x
     (implies (maybe-byte-list20-equiv x x-equiv)
              (equal (maybe-byte-list20-some->val$inline x)
                     (maybe-byte-list20-some->val$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: maybe-byte-list20-some->val-when-wrong-kind

    (defthm maybe-byte-list20-some->val-when-wrong-kind
      (implies (not x)
               (equal (maybe-byte-list20-some->val x)
                      (acl2::byte-list20-fix nil))))