• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
        • Aleobft
          • Correctness
            • Unequivocal-dags-def-and-init
            • Same-committees-def-and-implied
            • Dag-omni-paths
            • Signer-records
            • Unequivocal-dags-next
            • Quorum-intersection
              • Stake-of-quorum-intersection
              • Pick-common-correct-validator
                • Quorum-intersection-has-correct-validator
              • Dag-previous-quorum-def-and-init-and-next
              • Unequivocal-signed-certificates
              • Signed-previous-quorum
              • Nonforking-anchors-def-and-init-and-next
              • Successor-predecessor-intersection
              • Fault-tolerance
              • Last-anchor-voters-def-and-init-and-next
              • Signer-quorum
              • Committed-redundant-def-and-init-and-next
              • Nonforking-blockchains-def-and-init
              • Blockchain-redundant-def-and-init-and-next
              • No-self-endorsed
              • Last-anchor-present
              • Anchors-extension
              • Nonforking-blockchains-next
              • Backward-closure
              • Last-blockchain-round
              • Dag-certificate-next
              • Omni-paths-def-and-implied
              • Ordered-blockchain
              • Simultaneous-induction
              • System-certificates
              • Last-anchor-def-and-init
              • Last-anchor-next
              • Dag-previous-quorum
              • Signed-certificates
              • Committed-anchor-sequences
              • Omni-paths
              • Last-anchor-voters
              • Unequivocal-dags
              • Nonforking-blockchains
              • Nonforking-anchors
              • Committed-redundant
              • Same-committees
              • Blockchain-redundant
            • Definition
            • Library-extensions
          • Aleovm
          • Leo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Quorum-intersection

    Pick-common-correct-validator

    Pick a common correct validator address from two sets of addresses.

    Signature
    (pick-common-correct-validator vals1 vals2 systate) → val?
    Arguments
    vals1 — Guard (address-setp vals1).
    vals2 — Guard (address-setp vals2).
    systate — Guard (system-statep systate).
    Returns
    val? — Type (address-optionp val?).

    This is just pick-correct-validator applied to the intersection of the two sets. The significance of this is that, as explained in quorum-intersection, we want to intersect two quora (represented by vals1 and vals2 here), and pick a correct validator common to the two sets.

    Definitions and Theorems

    Function: pick-common-correct-validator

    (defun pick-common-correct-validator (vals1 vals2 systate)
      (declare (xargs :guard (and (address-setp vals1)
                                  (address-setp vals2)
                                  (system-statep systate))))
      (let ((__function__ 'pick-common-correct-validator))
        (declare (ignorable __function__))
        (pick-correct-validator (intersect vals1 vals2)
                                systate)))

    Theorem: address-optionp-of-pick-common-correct-validator

    (defthm address-optionp-of-pick-common-correct-validator
      (b* ((val? (pick-common-correct-validator vals1 vals2 systate)))
        (address-optionp val?))
      :rule-classes :rewrite)

    Theorem: pick-common-correct-validator-of-system-state-fix-systate

    (defthm pick-common-correct-validator-of-system-state-fix-systate
      (equal (pick-common-correct-validator
                  vals1 vals2 (system-state-fix systate))
             (pick-common-correct-validator vals1 vals2 systate)))

    Theorem: pick-common-correct-validator-system-state-equiv-congruence-on-systate

    (defthm
     pick-common-correct-validator-system-state-equiv-congruence-on-systate
     (implies
      (system-state-equiv systate systate-equiv)
      (equal (pick-common-correct-validator vals1 vals2 systate)
             (pick-common-correct-validator vals1 vals2 systate-equiv)))
     :rule-classes :congruence)