• 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
                • Certificates
                • Transactions
                • Proposals
                  • Proposal
                    • Proposal-fix
                    • Proposalp
                    • Proposal-equiv
                    • Make-proposal
                    • Proposal->transactions
                    • Change-proposal
                      • Proposal->previous
                      • Proposal->round
                      • Proposal->author
                    • Props-with-author+round
                    • Props-with-round
                    • Prop-set-unequivp
                    • Proposal-option
                    • Prop-set-none-author-p
                    • Prop-set-all-author-p
                    • Proposal-set
                  • 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
    • Proposal

    Change-proposal

    Modifying constructor for proposal structures.

    Syntax
    (change-proposal x 
                     [:author <author>] 
                     [:round <round>] 
                     [:transactions <transactions>] 
                     [:previous <previous>]) 
    

    This is an often useful alternative to make-proposal.

    We construct a new proposal 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-proposal

    (defmacro change-proposal (x &rest args)
      (std::change-aggregate 'proposal
                             x args
                             '((:author . proposal->author)
                               (:round . proposal->round)
                               (:transactions . proposal->transactions)
                               (:previous . proposal->previous))
                             'change-proposal
                             'nil))