• 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
      • Riscv
      • 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
              • Transitions-accept
              • Transitions-create
              • Dags
                • Path-to-author+round
                • Successors
                • Certificate-causal-history
                • Dag-in-committees-p
                • Paths-in-unequivocal-closed-dags
                • Predecessors
                • Unequivocal-previous-certificates
                • Certificate-previous-in-dag-p
                • Certificates-dag-paths-p
                • Causal-histories-in-unequivocal-closed-dags
                • Dag-predecessor-quorum-p
                • Path-to-previous
                • Dag-has-committees-p
                  • Path-to-author+round-set-to-path-to-author+round
                  • Dag-closedp
                  • Path-to-author+round-transitive
                  • Path-to-author+round-to-cert-with-author+round
                  • In-of-certificate-causal-history
                  • Path-to-predecessor
                  • Path-from-successor
                  • Certificate-causal-history-subset-when-path
                  • Path-to-head-of-predecessors
                  • Dag-no-prodecessors-round-1-p
                • Events-possiblep
                • Elections
                • Events-next
                • Event-next
                • Transitions-commit
                • Event-possiblep
                • Transitions-advance
                • Blockchains
                • Anchors
              • States
              • Events
              • Reachability
            • 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
    • Dags

    Dag-has-committees-p

    Check if the active committee at the round of every certificate in a DAG can be calculated from a given blockchain.

    The intent is that the DAG and blockchain are the ones of a validator. This is an invariant of the DAGs of validators, as proved elsewhere.

    Besides the auto-generated dag-has-committees-p-necc, we also introduce a variant that helps bind the free variable dag when there is a hypothesis saying that a certificate cert is in it.

    Definitions and Theorems

    Theorem: dag-has-committees-p-necc

    (defthm dag-has-committees-p-necc
      (implies
           (dag-has-committees-p dag blockchain)
           (implies (in cert dag)
                    (active-committee-at-round (certificate->round cert)
                                               blockchain))))

    Theorem: booleanp-of-dag-has-committees-p

    (defthm booleanp-of-dag-has-committees-p
      (b* ((yes/no (dag-has-committees-p dag blockchain)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: dag-has-committees-p-necc-bind-dag

    (defthm dag-has-committees-p-necc-bind-dag
      (implies (and (in cert dag)
                    (dag-has-committees-p dag blockchain))
               (active-committee-at-round (certificate->round cert)
                                          blockchain)))

    Theorem: dag-has-committees-p-of-empty-dag

    (defthm dag-has-committees-p-of-empty-dag
      (dag-has-committees-p nil blockchain))

    Theorem: dag-has-committees-p-of-insert

    (defthm dag-has-committees-p-of-insert
      (iff (dag-has-committees-p (insert cert dag)
                                 blockchain)
           (and (dag-has-committees-p dag blockchain)
                (active-committee-at-round (certificate->round cert)
                                           blockchain))))