• 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
            • Correctness
            • Definition
              • Transitions
              • Operations
              • States
                • Certificates
                • System-states
                  • Correct-addresses
                  • Update-validator-state
                  • Update-network-state
                  • Validators-state
                  • System-state
                  • System-state-option
                  • Get-validator-state
                  • Faulty-addresses
                  • Number-validators
                  • Number-faulty
                    • Get-network-state
                    • All-addresses
                    • Number-correct
                  • Messages
                  • Validator-states
                  • Transactions
                  • Addresses
                  • Blocks
                • Initialization
                • Events
            • Aleobft-stake2
            • Aleobft-dynamic
            • 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-states

    Number-faulty

    Number of faulty validators in the system.

    Signature
    (number-faulty systate) → number
    Arguments
    systate — Guard (system-statep systate).
    Returns
    number — Type (natp number).

    This is sometimes denoted f in the literature, but the same symbol sometimes instead denotes the maximum tolerated number of faulty validators. See the discussion in max-faulty-for-total.

    Definitions and Theorems

    Function: number-faulty

    (defun number-faulty (systate)
      (declare (xargs :guard (system-statep systate)))
      (let ((__function__ 'number-faulty))
        (declare (ignorable __function__))
        (cardinality (faulty-addresses systate))))

    Theorem: natp-of-number-faulty

    (defthm natp-of-number-faulty
      (b* ((number (number-faulty systate)))
        (natp number))
      :rule-classes :rewrite)

    Theorem: number-faulty-alt-def

    (defthm number-faulty-alt-def
      (equal (number-faulty systate)
             (- (number-validators systate)
                (number-correct systate))))

    Theorem: number-faulty-of-system-state-fix-systate

    (defthm number-faulty-of-system-state-fix-systate
      (equal (number-faulty (system-state-fix systate))
             (number-faulty systate)))

    Theorem: number-faulty-system-state-equiv-congruence-on-systate

    (defthm number-faulty-system-state-equiv-congruence-on-systate
      (implies (system-state-equiv systate systate-equiv)
               (equal (number-faulty systate)
                      (number-faulty systate-equiv)))
      :rule-classes :congruence)