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

    Proposal->round

    Get the round field from a proposal.

    Signature
    (proposal->round x) → round
    Arguments
    x — Guard (proposalp x).
    Returns
    round — Type (posp round).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: proposal->round$inline

    (defun proposal->round$inline (x)
      (declare (xargs :guard (proposalp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'proposal->round))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (pos-fix (cdr (std::da-nth 1 x))))
             :exec (cdr (std::da-nth 1 x)))))

    Theorem: posp-of-proposal->round

    (defthm posp-of-proposal->round
      (b* ((round (proposal->round$inline x)))
        (posp round))
      :rule-classes :rewrite)

    Theorem: proposal->round$inline-of-proposal-fix-x

    (defthm proposal->round$inline-of-proposal-fix-x
      (equal (proposal->round$inline (proposal-fix x))
             (proposal->round$inline x)))

    Theorem: proposal->round$inline-proposal-equiv-congruence-on-x

    (defthm proposal->round$inline-proposal-equiv-congruence-on-x
      (implies (proposal-equiv x x-equiv)
               (equal (proposal->round$inline x)
                      (proposal->round$inline x-equiv)))
      :rule-classes :congruence)