• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
        • Fgl-solving
        • Fgl-handling-if-then-elses
        • Fgl-getting-bits-from-objects
        • Fgl-primitive-and-meta-rules
        • Fgl-counterexamples
        • Fgl-interpreter-overview
        • Fgl-correctness-of-binding-free-variables
        • Fgl-debugging
        • Fgl-testbenches
        • Def-fgl-boolean-constraint
        • Fgl-stack
          • Scratchobj
            • Scratchobj-fix
            • Scratchobj-case
            • Scratchobj-equiv
            • Scratchobj-p
              • Scratchobj-formals
              • Scratchobj-fnsym
              • Scratchobj-fgl-objlist
              • Scratchobj-fgl-obj
              • Scratchobj-cinstlist
              • Scratchobj-cinst
              • Scratchobj-bfrlist
              • Scratchobj-kind
              • Scratchobj-bfr
            • Minor-frame
            • Major-frame
            • Major-stack
            • Scratchlist
            • Minor-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Removable-runes
        • Efficiency
        • Rewrite-bounds
        • Bash
        • Def-dag-measure
        • Bdd
        • Remove-hyps
        • Contextual-rewriting
        • Simp
        • Rewrite$-hyps
        • Bash-term-to-dnf
        • Use-trivial-ancestors-check
        • Minimal-runes
        • Clause-processor-tools
        • Fn-is-body
        • Without-subsumption
        • Rewrite-equiv-hint
        • Def-bounds
        • Rewrite$-context
        • Try-gl-concls
        • Hint-utils
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Scratchobj

    Scratchobj-p

    Recognizer for scratchobj structures.

    Signature
    (scratchobj-p x) → *

    Definitions and Theorems

    Function: scratchobj-p

    (defun scratchobj-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'scratchobj-p))
        (declare (ignorable __function__))
        (and (consp x)
             (cond ((or (atom x) (eq (car x) :fgl-obj))
                    (and (b* ((val (cdr x)))
                           (fgl-object-p val))))
                   ((eq (car x) :fgl-objlist)
                    (and (b* ((val (cdr x)))
                           (fgl-objectlist-p val))))
                   ((eq (car x) :bfr)
                    (and (b* ((?val (cdr x))) t)))
                   ((eq (car x) :bfrlist)
                    (and (b* ((val (cdr x))) (true-listp val))))
                   ((eq (car x) :cinst)
                    (and (b* ((val (cdr x)))
                           (constraint-instance-p val))))
                   ((eq (car x) :cinstlist)
                    (and (b* ((val (cdr x)))
                           (constraint-instancelist-p val))))
                   ((eq (car x) :fnsym)
                    (and (b* ((val (cdr x)))
                           (pseudo-fnsym-p val))))
                   (t (and (eq (car x) :formals)
                           (and)
                           (b* ((val (cdr x)))
                             (pseudo-var-list-p val))))))))

    Theorem: consp-when-scratchobj-p

    (defthm consp-when-scratchobj-p
      (implies (scratchobj-p x) (consp x))
      :rule-classes :compound-recognizer)