• 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
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • 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
              • Certificates
              • Messages
              • Transactions
              • Proposals
                • Proposal
                  • Proposal-fix
                  • Proposal-equiv
                  • Make-proposal
                  • Proposal->transactions
                  • Change-proposal
                    • Proposal->previous
                    • Proposal->round
                    • Proposal->author
                    • Proposalp
                  • Props-with-author+round
                  • Props-with-round
                  • Prop-set-unequivp
                  • Proposal-option
                  • Prop-set-none-author-p
                  • Prop-set-all-author-p
                  • Proposal-set
                • 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
    • 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))