• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
          • Circuits
          • Language
            • Grammar
            • Early-version
              • Abstract-syntax
                • Binary-op
                • Literal
                • Instruction
                • Hash-op
                • Literal-type
                • Operand
                • Unary-op
                • Identifier
                • Commit-op
                  • Commit-op-case
                  • Commit-op-fix
                  • Commit-op-equiv
                  • Commit-opp
                  • Commit-op-kind
                    • Commit-op-commit.ped64
                    • Commit-op-commit.ped128
                    • Commit-op-commit.bhp768
                    • Commit-op-commit.bhp512
                    • Commit-op-commit.bhp256
                    • Commit-op-commit.bhp1024
                  • Mapping
                  • Function
                  • Programdef
                  • Finalize-type
                  • Closure
                  • Register-type
                  • Finalizer
                  • Value-type
                  • Record-type
                  • Command
                  • Plaintext-type
                  • Finalization-option
                  • Visibility
                  • Register
                  • Reference
                  • Programid
                  • Locator
                  • Finalization
                  • Entry-type
                  • Regaccess
                  • Program
                  • Interface-type
                  • Ident+ptype
                  • Ident+etype
                  • Function-output
                  • Finalize-output
                  • Finalize-input
                  • Closure-output
                  • Closure-input
                  • Assert-op
                  • Function-input
                  • Equal-op
                  • Finalize-command
                  • Ternary-op
                  • Import
                  • Ident+ptype-list
                  • Operand-list
                  • Ident+etype-list
                  • Programdef-list
                  • Instruction-list
                  • Import-list
                  • Identifier-list
                  • Function-output-list
                  • Function-input-list
                  • Finalize-output-list
                  • Finalize-input-list
                  • Command-list
                  • Closure-output-list
                  • Closure-input-list
                • Parser
                • Concrete-syntax
              • Concrete-syntax
          • Leo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Commit-op

    Commit-op-kind

    Get the kind (tag) of a commit-op structure.

    Signature
    (commit-op-kind x) → kind
    Arguments
    x — Guard (commit-opp x).

    Definitions and Theorems

    Function: commit-op-kind$inline

    (defun commit-op-kind$inline (x)
      (declare (xargs :guard (commit-opp x)))
      (let ((__function__ 'commit-op-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x)
                               (eq (car x) :commit.bhp256))
                           :commit.bhp256)
                          ((eq (car x) :commit.bhp512)
                           :commit.bhp512)
                          ((eq (car x) :commit.bhp768)
                           :commit.bhp768)
                          ((eq (car x) :commit.bhp1024)
                           :commit.bhp1024)
                          ((eq (car x) :commit.ped64)
                           :commit.ped64)
                          (t :commit.ped128))
             :exec (car x))))

    Theorem: commit-op-kind-possibilities

    (defthm commit-op-kind-possibilities
      (or (equal (commit-op-kind x)
                 :commit.bhp256)
          (equal (commit-op-kind x)
                 :commit.bhp512)
          (equal (commit-op-kind x)
                 :commit.bhp768)
          (equal (commit-op-kind x)
                 :commit.bhp1024)
          (equal (commit-op-kind x) :commit.ped64)
          (equal (commit-op-kind x)
                 :commit.ped128))
      :rule-classes
      ((:forward-chaining :trigger-terms ((commit-op-kind x)))))