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

    Change-system-state

    Modifying constructor for system-state structures.

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

    This is an often useful alternative to make-system-state.

    We construct a new system-state structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

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

    Macro: change-system-state

    (defmacro change-system-state (x &rest args)
      (std::change-aggregate 'system-state
                             x args
                             '((:validators . system-state->validators)
                               (:network . system-state->network))
                             'change-system-state
                             'nil))