• 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-dynamic
          • Aleobft-arxiv
            • Correctness
              • Unequivocal-dags-def-and-init
              • Same-committees-def-and-implied
              • Dag-omni-paths
              • Signer-records
              • Unequivocal-dags-next
              • Quorum-intersection
              • 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-even-blocks
              • Simultaneous-induction
              • System-certificates
                • System-certs-of-next
                • Validators-certs
                  • System-certs
                  • System-certs-when-init
                • Last-anchor-def-and-init
                • Last-anchor-next
                • Dag-previous-quorum
                • Signed-certificates
                • Committed-anchors-sequences
                • Omni-paths
                • Last-anchor-voters
                • Unequivocal-dag
                • Nonforking-blockchains
                • Nonforking-anchors
                • Committed-redundant
                • Same-committees
                • Blockchain-redundant
              • Definition
            • Aleobft-stake
            • Aleobft-proposals
            • 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
    • System-certificates

    Validators-certs

    Certificates from the DAGs of a set of (correct) validators.

    Signature
    (validators-certs vals systate) → certs
    Arguments
    vals — Guard (address-setp vals).
    systate — Guard (system-statep systate).
    Returns
    certs — Type (certificate-setp certs).

    We union the DAGs of the given validators.

    Definitions and Theorems

    Function: validators-certs

    (defun validators-certs (vals systate)
      (declare (xargs :guard (and (address-setp vals)
                                  (system-statep systate))))
      (declare (xargs :guard (subset vals (correct-addresses systate))))
      (let ((__function__ 'validators-certs))
        (declare (ignorable __function__))
        (b* (((when (or (not (mbt (address-setp vals)))
                        (emptyp vals)))
              nil)
             (vstate (get-validator-state (head vals)
                                          systate)))
          (union (validator-state->dag vstate)
                 (validators-certs (tail vals)
                                   systate)))))

    Theorem: certificate-setp-of-validators-certs

    (defthm certificate-setp-of-validators-certs
      (b* ((certs (validators-certs vals systate)))
        (certificate-setp certs))
      :rule-classes :rewrite)

    Theorem: in-of-validators-certs-when-in-some-dag

    (defthm in-of-validators-certs-when-in-some-dag
     (implies
      (and
          (address-setp vals)
          (subset vals (correct-addresses systate))
          (in val vals)
          (in cert
              (validator-state->dag (get-validator-state val systate))))
      (in cert (validators-certs vals systate))))

    Theorem: validators-certs-of-address-set-fix-vals

    (defthm validators-certs-of-address-set-fix-vals
      (equal (validators-certs (address-set-fix vals)
                               systate)
             (validators-certs vals systate)))

    Theorem: validators-certs-address-set-equiv-congruence-on-vals

    (defthm validators-certs-address-set-equiv-congruence-on-vals
      (implies (address-set-equiv vals vals-equiv)
               (equal (validators-certs vals systate)
                      (validators-certs vals-equiv systate)))
      :rule-classes :congruence)

    Theorem: validators-certs-of-system-state-fix-systate

    (defthm validators-certs-of-system-state-fix-systate
      (equal (validators-certs vals (system-state-fix systate))
             (validators-certs vals systate)))

    Theorem: validators-certs-system-state-equiv-congruence-on-systate

    (defthm validators-certs-system-state-equiv-congruence-on-systate
      (implies (system-state-equiv systate systate-equiv)
               (equal (validators-certs vals systate)
                      (validators-certs vals systate-equiv)))
      :rule-classes :congruence)