• 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
          • Aleobft-dynamic
          • Aleobft-stake
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                • Certificates
                • Messages
                • Validator-states
                  • Validator-state
                    • Validator-state-fix
                    • Validator-statep
                    • Make-validator-state
                    • Validator-state-equiv
                    • Validator-state->committed
                    • Change-validator-state
                    • Validator-state->endorsed
                    • Validator-state->buffer
                    • Validator-state->blockchain
                    • Validator-state->timer
                    • Validator-state->round
                    • Validator-state->last
                      • Validator-state->dag
                    • Address+pos-pairs-with-address
                    • Timer
                    • Address+pos
                    • Address+pos-set
                  • Transactions
                  • Blocks
                  • Addresses
                • Events
            • 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
    • Validator-state

    Validator-state->last

    Get the last field from a validator-state.

    Signature
    (validator-state->last x) → last
    Arguments
    x — Guard (validator-statep x).
    Returns
    last — Type (natp last).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: validator-state->last$inline

    (defun validator-state->last$inline (x)
      (declare (xargs :guard (validator-statep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'validator-state->last))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (nfix (cdr (std::da-nth 4 x))))
             :exec (cdr (std::da-nth 4 x)))))

    Theorem: natp-of-validator-state->last

    (defthm natp-of-validator-state->last
      (b* ((last (validator-state->last$inline x)))
        (natp last))
      :rule-classes :rewrite)

    Theorem: validator-state->last$inline-of-validator-state-fix-x

    (defthm validator-state->last$inline-of-validator-state-fix-x
      (equal (validator-state->last$inline (validator-state-fix x))
             (validator-state->last$inline x)))

    Theorem: validator-state->last$inline-validator-state-equiv-congruence-on-x

    (defthm
     validator-state->last$inline-validator-state-equiv-congruence-on-x
     (implies (validator-state-equiv x x-equiv)
              (equal (validator-state->last$inline x)
                     (validator-state->last$inline x-equiv)))
     :rule-classes :congruence)