• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • 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
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Config

    Configp

    Recognizer for config structures.

    Signature
    (configp x) → *

    Definitions and Theorems

    Function: configp

    (defun configp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'configp))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :config)
             (true-listp (cdr x))
             (eql (len (cdr x)) 2)
             (b* ((comms (std::da-nth 0 (cdr x)))
                  (env (std::da-nth 1 (cdr x))))
               (and (comm-listp comms) (envp env))))))

    Theorem: consp-when-configp

    (defthm consp-when-configp
      (implies (configp x) (consp x))
      :rule-classes :compound-recognizer)