• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
          • Command-error
            • Command-error-p
            • Command-error-fix
            • Command-error-case
            • Command-error-kind
            • Command-error-equiv
            • Command-error-wrong-number-of-arguments
            • Command-error-address-key-index-too-large
            • Command-error-wrong-command
            • Command-error-malformed-value
            • Command-error-malformed-to
            • Command-error-malformed-passphrase
            • Command-error-malformed-nonce
            • Command-error-malformed-mnemonic
            • Command-error-malformed-gas-price
            • Command-error-malformed-gas-limit
              • Command-error-malformed-gas-limit->gas-limit
                • Make-command-error-malformed-gas-limit
                • Change-command-error-malformed-gas-limit
              • Command-error-malformed-entropy
              • Command-error-malformed-data
              • Command-error-malformed-address-key-index
              • Command-error-address-key-index-skipped
              • Command-error-address-key-derivation-fail
              • Command-error-transaction-sign-fail
              • Command-error-transaction-rlp-fail
              • Command-error-state-file-untestable
              • Command-error-state-file-present
              • Command-error-state-file-not-regular
              • Command-error-state-file-malformed
              • Command-error-state-file-absent
              • Command-error-root-key-derivation-fail
              • Command-error-purpose-key-derivation-fail
              • Command-error-pretransaction-rlp-fail
              • Command-error-no-command
              • Command-error-external-chain-key-derivation-fail
              • Command-error-coin-type-key-derivation-fail
              • Command-error-address-key-index-limit
              • Command-error-account-key-derivation-fail
            • Sign
            • Init-from-mnemonic
            • Command-error-message
            • Stat
            • Next-key
            • Init-from-entropy
            • Process-command
            • Transaction-message
            • Maybe-command-error
            • Maybe-stat
            • Check-stat-file-present
            • Valid-key-path-p
            • String-to-byte-list
            • Load-stat
            • Mnemonic-message
            • Process-sign
            • Process-init-from-entropy
            • All-valid-key-paths-p
            • String-to-word
            • String-to-nat
            • Process-next-key
            • Wallet
            • Process-init-from-mnemonic
            • Check-stat-file-absent
            • Stat-wfp
            • Save-stat
            • Stat-addresses-bounded-p
            • Stat-all-valid-key-paths-p
            • Stat-priv-keys-p
            • Stat-root-depth-zero-p
            • Stat-path-prefix-in-tree-p
            • Crypto-hdwallet-executable
            • *stat-filepath*
            • *key-path-prefix*
            • *coin-type-index*
            • *purpose-index*
            • *external-chain-index*
            • *command-name-init-from-mnemonic*
            • *command-name-init-from-entropy*
            • *account-index*
            • *command-name-sign*
            • *command-name-next-key*
          • Apt
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • C
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • 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
    • Command-error-malformed-gas-limit

    Command-error-malformed-gas-limit->gas-limit

    Get the gas-limit field from a command-error-malformed-gas-limit.

    Signature
    (command-error-malformed-gas-limit->gas-limit x) → gas-limit
    Arguments
    x — Guard (command-error-p x).
    Returns
    gas-limit — Type (stringp gas-limit).

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

    Definitions and Theorems

    Function: command-error-malformed-gas-limit->gas-limit$inline

    (defun command-error-malformed-gas-limit->gas-limit$inline (x)
     (declare (xargs :guard (command-error-p x)))
     (declare (xargs :guard (equal (command-error-kind x)
                                   :malformed-gas-limit)))
     (let ((__function__ 'command-error-malformed-gas-limit->gas-limit))
       (declare (ignorable __function__))
       (mbe :logic
            (b* ((x (and (equal (command-error-kind x)
                                :malformed-gas-limit)
                         x)))
              (acl2::str-fix (std::da-nth 0 (cdr x))))
            :exec (std::da-nth 0 (cdr x)))))

    Theorem: stringp-of-command-error-malformed-gas-limit->gas-limit

    (defthm stringp-of-command-error-malformed-gas-limit->gas-limit
     (b* ((gas-limit
               (command-error-malformed-gas-limit->gas-limit$inline x)))
       (stringp gas-limit))
     :rule-classes :rewrite)

    Theorem: command-error-malformed-gas-limit->gas-limit$inline-of-command-error-fix-x

    (defthm
     command-error-malformed-gas-limit->gas-limit$inline-of-command-error-fix-x
     (equal (command-error-malformed-gas-limit->gas-limit$inline
                 (command-error-fix x))
            (command-error-malformed-gas-limit->gas-limit$inline x)))

    Theorem: command-error-malformed-gas-limit->gas-limit$inline-command-error-equiv-congruence-on-x

    (defthm
     command-error-malformed-gas-limit->gas-limit$inline-command-error-equiv-congruence-on-x
     (implies
      (command-error-equiv x x-equiv)
      (equal
         (command-error-malformed-gas-limit->gas-limit$inline x)
         (command-error-malformed-gas-limit->gas-limit$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: command-error-malformed-gas-limit->gas-limit-when-wrong-kind

    (defthm command-error-malformed-gas-limit->gas-limit-when-wrong-kind
      (implies (not (equal (command-error-kind x)
                           :malformed-gas-limit))
               (equal (command-error-malformed-gas-limit->gas-limit x)
                      (acl2::str-fix nil))))