• 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-stake2
            • Correctness
            • Definition
              • Initialization
                • System-init
                • System-init-loop
                • Validator-init
                  • System-initp
                  • System-validators-initp
                • Transitions
                • States
                • Events
                • Reachability
            • 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
    • Initialization

    Validator-init

    Initial (correct) validator state.

    Signature
    (validator-init) → vstate
    Returns
    vstate — Type (validator-statep vstate).

    Initially, each correct validator is in round 1, has empty DAG, has no record of endorsed certificates, has 0 as last committed round (meaning that no anchors have been committed yet, since 0 is not a valid round number), has an empty blockchain, and has no committed certificates.

    Definitions and Theorems

    Function: validator-init

    (defun validator-init nil
      (declare (xargs :guard t))
      (let ((__function__ 'validator-init))
        (declare (ignorable __function__))
        (make-validator-state :round 1
                              :dag nil
                              :endorsed nil
                              :last 0
                              :blockchain nil
                              :committed nil)))

    Theorem: validator-statep-of-validator-init

    (defthm validator-statep-of-validator-init
      (b* ((vstate (validator-init)))
        (validator-statep vstate))
      :rule-classes :rewrite)