• 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
        • Syntax-for-tools
        • Atc
        • Language
          • Abstract-syntax
            • Tyspecseq
            • Expr
            • Binop
            • Fileset
            • Obj-declor
            • Ident
            • Iconst
            • Obj-adeclor
            • Const
            • Fundef
            • Unop
            • File
            • Tag-declon
            • Fun-declor
            • Obj-declon
            • Iconst-length
            • Abstract-syntax-operations
            • Label
            • Struct-declon
            • Initer
            • Ext-declon
            • Fun-adeclor
            • Expr-option
            • Iconst-base
            • Initer-option
            • Iconst-option
            • Tyspecseq-option
            • Stmt-option
            • Scspecseq
            • Param-declon
            • Obj-declon-option
            • File-option
            • Tyname
            • Transunit
            • Fun-declon
            • Transunit-result
            • Param-declon-list
            • Struct-declon-list
            • Expr-list
            • Tyspecseq-list
            • Ident-set
              • Ident-set-fix
              • Ident-setp
                • Ident-set-equiv
              • Ident-list
              • Ext-declon-list
              • Unop-list
              • Tyname-list
              • Fundef-list
              • Fun-declon-list
              • Binop-list
              • Stmt-fixtypes
              • Expr-fixtypes
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
            • Keywords
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • 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
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Ident-set

    Ident-setp

    Recognizer for ident-set.

    Signature
    (ident-setp x) → *

    Definitions and Theorems

    Function: ident-setp

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

    Theorem: booleanp-ofident-setp

    (defthm booleanp-ofident-setp
      (booleanp (ident-setp x)))

    Theorem: setp-when-ident-setp

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

    Theorem: identp-of-head-when-ident-setp

    (defthm identp-of-head-when-ident-setp
      (implies (ident-setp x)
               (equal (identp (head x))
                      (not (emptyp x)))))

    Theorem: ident-setp-of-tail-when-ident-setp

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

    Theorem: ident-setp-of-insert

    (defthm ident-setp-of-insert
      (equal (ident-setp (insert a x))
             (and (identp a) (ident-setp (sfix x)))))

    Theorem: identp-when-in-ident-setp-binds-free-x

    (defthm identp-when-in-ident-setp-binds-free-x
      (implies (and (in a x) (ident-setp x))
               (identp a)))

    Theorem: not-in-ident-setp-when-not-identp

    (defthm not-in-ident-setp-when-not-identp
      (implies (and (ident-setp x) (not (identp a)))
               (not (in a x))))

    Theorem: ident-setp-of-union

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

    Theorem: ident-setp-of-intersect

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

    Theorem: ident-setp-of-difference

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

    Theorem: ident-setp-of-delete

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