• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
        • Mmp-trees
        • Semaphore
        • Database
        • Cryptography
        • Rlp
          • Rlp-tree
            • Rlp-tree-case
            • Rlp-tree-equiv
            • Rlp-treep
            • Rlp-tree-leaf
            • Rlp-tree-branch
            • Rlp-tree-kind
              • Rlp-tree-list
              • Rlp-tree-fix
              • Rlp-tree-count
            • Rlp-decoding-executable
            • Rlp-decodability
            • Rlp-encoding
            • Rlp-decoding-declarative
            • Rlp-big-endian-representations
          • Transactions
          • Hex-prefix
          • Basics
          • Addresses
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Rlp-tree

    Rlp-tree-kind

    Get the kind (tag) of a rlp-tree structure.

    Signature
    (rlp-tree-kind x) → kind
    Arguments
    x — Guard (rlp-treep x).

    Definitions and Theorems

    Function: rlp-tree-kind$inline

    (defun rlp-tree-kind$inline (x)
      (declare (xargs :guard (rlp-treep x)))
      (let ((__function__ 'rlp-tree-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :leaf)) :leaf)
                          (t :branch))
             :exec (car x))))

    Theorem: rlp-tree-kind-possibilities

    (defthm rlp-tree-kind-possibilities
      (or (equal (rlp-tree-kind x) :leaf)
          (equal (rlp-tree-kind x) :branch))
      :rule-classes
      ((:forward-chaining :trigger-terms ((rlp-tree-kind x)))))