• 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
      • 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
                • Nonforking-blockchains-p
                  • Nonforking-blockchains-p-when-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
                • 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
            • Aleobft-stake
            • Aleobft-proposals
            • Library-extensions
          • Leo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Community
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Nonforking-blockchains-def-and-init

    Nonforking-blockchains-p

    Definition of the invariant: given two correct validators in the system, their blockchains do not fork.

    Definitions and Theorems

    Theorem: nonforking-blockchains-p-necc

    (defthm nonforking-blockchains-p-necc
     (implies
      (nonforking-blockchains-p systate)
      (implies
       (and (in val1 (correct-addresses systate))
            (in val2 (correct-addresses systate)))
       (lists-noforkp
        (validator-state->blockchain (get-validator-state val1 systate))
        (validator-state->blockchain
             (get-validator-state val2 systate))))))

    Theorem: booleanp-of-nonforking-blockchains-p

    (defthm booleanp-of-nonforking-blockchains-p
      (b* ((yes/no (nonforking-blockchains-p systate)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: nonforking-blockchains-p-of-system-state-fix-systate

    (defthm nonforking-blockchains-p-of-system-state-fix-systate
      (equal (nonforking-blockchains-p (system-state-fix systate))
             (nonforking-blockchains-p systate)))

    Theorem: nonforking-blockchains-p-system-state-equiv-congruence-on-systate

    (defthm
      nonforking-blockchains-p-system-state-equiv-congruence-on-systate
      (implies (system-state-equiv systate systate-equiv)
               (equal (nonforking-blockchains-p systate)
                      (nonforking-blockchains-p systate-equiv)))
      :rule-classes :congruence)