• 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
          • Semantics
            • Step
            • Write-var
            • Outcome
            • Beval
            • Read-var
            • Config
              • Config-fix
              • Config-equiv
              • Make-config
              • Config->comms
                • Change-config
                • Configp
                • Config->env
              • Terminatingp
              • Aeval
              • Step*
              • Stepn
              • Env
            • Abstract-syntax
            • Interpreter
          • 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
    • Config

    Config->comms

    Get the comms field from a config.

    Signature
    (config->comms x) → comms
    Arguments
    x — Guard (configp x).
    Returns
    comms — Type (comm-listp comms).

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

    Definitions and Theorems

    Function: config->comms$inline

    (defun config->comms$inline (x)
      (declare (xargs :guard (configp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'config->comms))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (comm-list-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: comm-listp-of-config->comms

    (defthm comm-listp-of-config->comms
      (b* ((comms (config->comms$inline x)))
        (comm-listp comms))
      :rule-classes :rewrite)

    Theorem: config->comms$inline-of-config-fix-x

    (defthm config->comms$inline-of-config-fix-x
      (equal (config->comms$inline (config-fix x))
             (config->comms$inline x)))

    Theorem: config->comms$inline-config-equiv-congruence-on-x

    (defthm config->comms$inline-config-equiv-congruence-on-x
      (implies (config-equiv x x-equiv)
               (equal (config->comms$inline x)
                      (config->comms$inline x-equiv)))
      :rule-classes :congruence)