• 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
      • 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
                • Max-faulty-for-total
                • Bonded-committee-at-round
                • Committee-members-stake
                • Active-committee-at-round
                • Update-committee-with-transaction
                • Committee-quorum-stake
                • Lookback
                • Committee-option
                • Update-committee-with-transaction-list
                • Committee-after-blocks
                • Same-bonded-committees-p
                • Same-active-committees-p
                • Committee
                  • Committee-fix
                  • Committeep
                  • Committee-equiv
                  • Committee->members-with-stake
                    • Make-committee
                    • Change-committee
                  • Committee-member-stake
                  • Committee-total-stake
                  • Committee-max-faulty-stake
                  • Committee-nonemptyp
                  • Committee-members
                  • Address-pos-map
                  • Genesis-committee
                • System-states
                • 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
    • Committee

    Committee->members-with-stake

    Get the members-with-stake field from a committee.

    Signature
    (committee->members-with-stake x) → members-with-stake
    Arguments
    x — Guard (committeep x).
    Returns
    members-with-stake — Type (address-pos-mapp members-with-stake).

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

    Definitions and Theorems

    Function: committee->members-with-stake$inline

    (defun committee->members-with-stake$inline (x)
      (declare (xargs :guard (committeep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'committee->members-with-stake))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (address-pos-map-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: address-pos-mapp-of-committee->members-with-stake

    (defthm address-pos-mapp-of-committee->members-with-stake
     (b* ((members-with-stake (committee->members-with-stake$inline x)))
       (address-pos-mapp members-with-stake))
     :rule-classes :rewrite)

    Theorem: committee->members-with-stake$inline-of-committee-fix-x

    (defthm committee->members-with-stake$inline-of-committee-fix-x
      (equal (committee->members-with-stake$inline (committee-fix x))
             (committee->members-with-stake$inline x)))

    Theorem: committee->members-with-stake$inline-committee-equiv-congruence-on-x

    (defthm
     committee->members-with-stake$inline-committee-equiv-congruence-on-x
     (implies (committee-equiv x x-equiv)
              (equal (committee->members-with-stake$inline x)
                     (committee->members-with-stake$inline x-equiv)))
     :rule-classes :congruence)