• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • 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
            • States
              • Committees
              • System-states
              • Certificates
                • Certificate-set-unequivocalp
                • Certificate-sets-unequivocalp
                • Cert-with-author+round
                • Certs-with-authors+round
                • Certs-with-author
                • Certs-with-round
                • Unequivocal-certs-with-authors+round
                • Unequivocal-cert-with-author+round
                • Certificate
                • Cert-set->author-set
                • Certificate-option
                • Cert-set->round-set
                • Certs-with-authors
                • Certificate-list-orderedp
                • Certs-with-signer
                • Certificate->signers
                • Certificate-list-evenp
                  • Certificate-list-evenp-basics
                • Certificate->transactions
                • Certificate->previous
                • Certificate->author
                • Certificate->round
                • Certificate-set
                • Certificate-list
              • Messages
              • Transactions
              • Proposals
              • Validator-states
              • Blocks
              • Addresses
            • Events
            • Reachability
          • Library-extensions
        • Aleovm
        • Leo
      • Bigmems
      • Builtins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Certificates

Certificate-list-evenp

Check if the round numbers of all the certificates in a list are even.

Signature
(certificate-list-evenp x) → std::bool

This is an ordinary std::deflist. It is "loose" in that it does not care whether x is nil-terminated.

Definitions and Theorems

Function: certificate-list-evenp

(defun certificate-list-evenp (x)
  (declare (xargs :guard (certificate-listp x)))
  (let ((__function__ 'certificate-list-evenp))
    (declare (ignorable __function__))
    (if (consp x)
        (and (evenp (certificate->round (car x)))
             (certificate-list-evenp (cdr x)))
      t)))

Theorem: certificate-list-evenp-of-certificate-list-fix-x

(defthm certificate-list-evenp-of-certificate-list-fix-x
  (equal (certificate-list-evenp (certificate-list-fix x))
         (certificate-list-evenp x)))

Theorem: certificate-list-evenp-certificate-list-equiv-congruence-on-x

(defthm
      certificate-list-evenp-certificate-list-equiv-congruence-on-x
  (implies (certificate-list-equiv x x-equiv)
           (equal (certificate-list-evenp x)
                  (certificate-list-evenp x-equiv)))
  :rule-classes :congruence)

Subtopics

Certificate-list-evenp-basics
Basic theorems about certificate-list-evenp, generated by std::deflist.