• 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
          • Aleobft-stake
          • Aleobft-proposals
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                  • 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
                    • Get-network-state
                    • Correct-addresses
                    • Address-validator-state-map
                  • Certificates
                  • Transactions
                  • Proposals
                  • Messages
                  • Validator-states
                  • Blocks
                  • Addresses
                • Events
                • Reachability
            • 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

    Make-system-state

    Basic constructor macro for system-state structures.

    Syntax
    (make-system-state [:validators <validators>] 
                       [:network <network>]) 
    

    This is the usual way to construct system-state structures. It simply conses together a structure with the specified fields.

    This macro generates a new system-state structure from scratch. See also change-system-state, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-system-state

    (defmacro make-system-state (&rest args)
      (std::make-aggregate 'system-state
                           args '((:validators) (:network))
                           'make-system-state
                           nil))

    Function: system-state

    (defun system-state (validators network)
     (declare
          (xargs :guard (and (address-validator-state-mapp validators)
                             (message-setp network))))
     (declare (xargs :guard t))
     (let ((__function__ 'system-state))
      (declare (ignorable __function__))
      (b* ((validators
                (mbe :logic (address-validator-state-map-fix validators)
                     :exec validators))
           (network (mbe :logic (message-set-fix network)
                         :exec network)))
        (list (cons 'validators validators)
              (cons 'network network)))))