• 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
                  • 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-states

    All-addresses

    Set of the addresses of all the validators in the system.

    Signature
    (all-addresses systate) → addrs
    Arguments
    systate — Guard (system-statep systate).
    Returns
    addrs — Type (address-setp addrs).

    These are the keys in the map.

    Definitions and Theorems

    Function: all-addresses

    (defun all-addresses (systate)
      (declare (xargs :guard (system-statep systate)))
      (let ((__function__ 'all-addresses))
        (declare (ignorable __function__))
        (omap::keys (system-state->validators systate))))

    Theorem: address-setp-of-all-addresses

    (defthm address-setp-of-all-addresses
      (b* ((addrs (all-addresses systate)))
        (address-setp addrs))
      :rule-classes :rewrite)

    Theorem: all-addresses-of-system-state-fix-systate

    (defthm all-addresses-of-system-state-fix-systate
      (equal (all-addresses (system-state-fix systate))
             (all-addresses systate)))

    Theorem: all-addresses-system-state-equiv-congruence-on-systate

    (defthm all-addresses-system-state-equiv-congruence-on-systate
      (implies (system-state-equiv systate systate-equiv)
               (equal (all-addresses systate)
                      (all-addresses systate-equiv)))
      :rule-classes :congruence)