• 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
      • Riscv
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • 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
          • Correctness
          • Definition
            • Initialization
            • Transitions
            • States
              • Committees
              • System-states
                • Validators-state
                • System-state
                  • System-statep
                  • System-state-fix
                  • System-state-equiv
                  • Make-system-state
                  • System-state->validators
                    • System-state->network
                    • Change-system-state
                  • Update-validator-state
                  • Update-network-state
                  • Get-validator-state
                  • Correct-addresses
                  • Get-network-state
                • Certificates
                • Messages
                • Transactions
                • Proposals
                • Validator-states
                • Blocks
                • Addresses
              • Events
              • Reachability
            • Library-extensions
          • Aleovm
          • Leo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • System-state

    System-state->validators

    Get the validators field from a system-state.

    Signature
    (system-state->validators x) → validators
    Arguments
    x — Guard (system-statep x).
    Returns
    validators — Type (validators-statep validators).

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

    Definitions and Theorems

    Function: system-state->validators$inline

    (defun system-state->validators$inline (x)
      (declare (xargs :guard (system-statep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'system-state->validators))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (validators-state-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: validators-statep-of-system-state->validators

    (defthm validators-statep-of-system-state->validators
      (b* ((validators (system-state->validators$inline x)))
        (validators-statep validators))
      :rule-classes :rewrite)

    Theorem: system-state->validators$inline-of-system-state-fix-x

    (defthm system-state->validators$inline-of-system-state-fix-x
      (equal (system-state->validators$inline (system-state-fix x))
             (system-state->validators$inline x)))

    Theorem: system-state->validators$inline-system-state-equiv-congruence-on-x

    (defthm
     system-state->validators$inline-system-state-equiv-congruence-on-x
     (implies (system-state-equiv x x-equiv)
              (equal (system-state->validators$inline x)
                     (system-state->validators$inline x-equiv)))
     :rule-classes :congruence)