• 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
      • 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
        • Aleobft
          • Aleobft-static
          • Aleobft-stake2
          • Aleobft-dynamic
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                  • Update-validator-state
                  • System-state
                    • System-statep
                      • System-state-fix
                      • System-state-equiv
                      • Make-system-state
                      • System-state->validators
                      • System-state->network
                      • Change-system-state
                    • Validators-state
                    • Update-network-state
                    • Correct-addresses
                    • Get-validator-state
                    • Faulty-addresses
                    • Get-network-state
                    • All-addresses
                  • Certificates
                  • Messages
                  • Validator-states
                  • Transactions
                  • Blocks
                  • Addresses
                • Events
            • Aleobft-stake
            • Aleobft-proposals
            • Library-extensions
          • Leo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • System-state

    System-statep

    Recognizer for system-state structures.

    Signature
    (system-statep x) → *

    Definitions and Theorems

    Function: system-statep

    (defun system-statep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'system-statep))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x)
                                     '(validators network)))
                  :exec (fty::alist-with-carsp x '(validators network)))
             (b* ((validators (cdr (std::da-nth 0 x)))
                  (network (cdr (std::da-nth 1 x))))
               (and (validators-statep validators)
                    (message-setp network))))))

    Theorem: consp-when-system-statep

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