• 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
          • Aleobft-proposals
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                • Certificates
                  • Certs-with-author+round
                  • Certs-with-authors+round
                  • Cert-with-author+round
                  • Certs-with-prop
                  • Certs-with-round
                  • Certificate
                  • Certificate-option
                  • Cert-set->prop-set
                  • Cert-list-orderedp
                  • Cert-set->round-set
                  • Cert-set->author-set
                  • Certificate->signers
                  • Cert-list-evenp
                  • Certificate->transactions
                  • Certs-with-author+round-and-props-with-author+round
                  • Certificate->previous
                  • Certificate->author
                  • Certificate->round
                  • Certificate-set
                    • Certificate-setp
                      • Certificate-set-fix
                      • Certificate-set-equiv
                    • Certificate-list
                  • Transactions
                  • Proposals
                  • Messages
                  • Validator-states
                  • Blocks
                  • Addresses
                • Events
                • Reachability
            • 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
    • Certificate-set

    Certificate-setp

    Recognizer for certificate-set.

    Signature
    (certificate-setp x) → *

    Definitions and Theorems

    Function: certificate-setp

    (defun certificate-setp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (certificatep (car x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (acl2::fast-<< (car x) (cadr x))
                      (certificate-setp (cdr x)))))))

    Theorem: booleanp-ofcertificate-setp

    (defthm booleanp-ofcertificate-setp
      (booleanp (certificate-setp x)))

    Theorem: setp-when-certificate-setp

    (defthm setp-when-certificate-setp
      (implies (certificate-setp x) (setp x))
      :rule-classes (:rewrite))

    Theorem: certificatep-of-head-when-certificate-setp

    (defthm certificatep-of-head-when-certificate-setp
      (implies (certificate-setp x)
               (equal (certificatep (head x))
                      (not (emptyp x)))))

    Theorem: certificate-setp-of-tail-when-certificate-setp

    (defthm certificate-setp-of-tail-when-certificate-setp
      (implies (certificate-setp x)
               (certificate-setp (tail x))))

    Theorem: certificate-setp-of-insert

    (defthm certificate-setp-of-insert
      (equal (certificate-setp (insert a x))
             (and (certificatep a)
                  (certificate-setp (sfix x)))))

    Theorem: certificatep-when-in-certificate-setp-binds-free-x

    (defthm certificatep-when-in-certificate-setp-binds-free-x
      (implies (and (in a x) (certificate-setp x))
               (certificatep a)))

    Theorem: not-in-certificate-setp-when-not-certificatep

    (defthm not-in-certificate-setp-when-not-certificatep
      (implies (and (certificate-setp x)
                    (not (certificatep a)))
               (not (in a x))))

    Theorem: certificate-setp-of-union

    (defthm certificate-setp-of-union
      (equal (certificate-setp (union x y))
             (and (certificate-setp (sfix x))
                  (certificate-setp (sfix y)))))

    Theorem: certificate-setp-of-intersect

    (defthm certificate-setp-of-intersect
      (implies (and (certificate-setp x)
                    (certificate-setp y))
               (certificate-setp (intersect x y))))

    Theorem: certificate-setp-of-difference

    (defthm certificate-setp-of-difference
      (implies (certificate-setp x)
               (certificate-setp (difference x y))))

    Theorem: certificate-setp-of-delete

    (defthm certificate-setp-of-delete
      (implies (certificate-setp x)
               (certificate-setp (delete a x))))