• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
            • Svtv-chase
            • Svtv-p
            • Svtv-to-fsm
              • Svtv-to-fsm-defs
                • Svtv-spec-fsm-bindings-for-alist
                • Svtv-spec-fsm-bindings-for-alists
                • Svtv-spec-fsm-constraints-for-alist
                • Svtv-spec-fsm-constraints-for-alists
                • Lhprobe
                • Svtv-spec-fsm-bindings-for-lhprobe
                • Svtv-spec-fsm-constraints-for-lhprobe
                • Lhprobe-map-overridemux-eval
                • Svtv-fsm-namemap-alistlist
                • Lhprobe-constraintlist-overridemux-eval
                • Lhs-overridemux-eval-signx
                • Svtv-fsm-namemap-envlist
                • Lhprobe/4vec-overridemux-eval
                • Lhprobe-constraintlist-max-stage
                • Lhprobe-constraint-overridemux-eval
                • Svex-envlists-agree
                • Lhprobe-overridemux-eval
                • Lhs-overridemux-eval-zero
                • Lhatom-overridemux-eval
                • Svar/4vec-alist-eval
                • Svtv-probealist-to-lhprobe-map
                • Svex-envlists-ovtestsimilar
                • Lhprobe-map-max-stage
                • Lhprobe-constraint
                • Svar/4vec-alistlist-eval
                • Lhprobe-map-eval
                • Lhprobe-constraint-max-stage
                • Lhprobe/4vec-change-override
                • Lhprobe-constraintlist-eval
                • Svtv-probe-to-lhprobe
                • Svar/4vec-eval
                • Lhs-eval-signx
                • Lhprobe-signedness-for-alist
                • Lhprobe-change-override
                • Svtv-spec-fsm-bindings
                • Svtv-spec-cycle-fsm-inputsubsts
                • Lhprobe/4vec-p
                • Lhprobe-constraint-eval
                • Svtv-spec-fsm-constraints
                • Svex-envlist-keys-list
                • Svtv-spec-non-test-vars
                • Svar/4vec-p
                • Svtv-spec->override-val-alists*
                • Svtv-spec->override-test-alists*
                • Svtv-spec->in-alists*
                • Lhprobe-map
                  • Lhprobe-map-fix
                  • Lhprobe-map-p
                    • Lhprobe-map-equiv
                  • Svar/4vec-alist
                  • Svar/4vec-alistlist
                  • Lhprobe-constraintlist
                  • Force-execute
                • Defnamemap
                • Parse-svtv-to-fsm-thm
                • Svex-envs-check-ovtests-ok-rec
                • Svtv-to-fsm-final-thm-var-bindings
                • Svex-envlists-ovtests-ok
                • Svtv-override-triplemaplist-relevant-vars
                • Svtv-override-triplemap-relevant-vars
                • Svex-envlists-check-ovtests-ok
                • Svtv-override-triple-relevant-vars
                • Svtv-override-triplemaplist-test-only-p
                • Svex-envlists-ovtestequiv
                • Svtv-override-triplemap-test-only-p
                • Svex-envlists-ovtestsubsetp
                • Svtv-override-triple-test-only-p
                • Svex-envlists-check-ovtests-ok-rec
                • Svex-envs-check-ovtests-ok
                • Svex-alistlist-removekeys
                • Svtv-to-fsm-final-thm
                • Svtv-to-fsm-first-thm-input-var-bindings
                • Svtv-to-fsm-first-thm
                • Svtv-to-fsm-thm-fn
              • Make-svtv
              • Svtv-fix
              • Change-svtv
              • Svtv-equiv
              • Svtv->orig-overrides
              • Svtv->orig-internals
              • Svtv->expanded-overrides
              • Svtv->states
              • Svtv->nextstate
              • Svtv->expanded-ins
              • Svtv->outmasks
              • Svtv->outexprs
              • Svtv->orig-outs
              • Svtv->orig-ins
              • Svtv->inmasks
              • Svtv->nphases
              • Svtv->name
              • Svtv->labels
              • Svtv->inmap
              • Svtv->form
            • Svtv-spec
            • Defsvtv
            • Process.lisp
            • Svtv-doc
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • Svtv-debug
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Lhprobe-map

    Lhprobe-map-p

    Recognizer for lhprobe-map.

    Signature
    (lhprobe-map-p x) → *

    Definitions and Theorems

    Function: lhprobe-map-p

    (defun lhprobe-map-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'lhprobe-map-p))
        (declare (ignorable __function__))
        (if (atom x)
            (eq x nil)
          (and (consp (car x))
               (svar-p (caar x))
               (lhprobe-p (cdar x))
               (lhprobe-map-p (cdr x))))))

    Theorem: lhprobe-map-p-of-append

    (defthm lhprobe-map-p-of-append
      (equal (lhprobe-map-p (append acl2::a acl2::b))
             (and (lhprobe-map-p (list-fix acl2::a))
                  (lhprobe-map-p acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-repeat

    (defthm lhprobe-map-p-of-repeat
      (iff (lhprobe-map-p (repeat acl2::n x))
           (or (and (consp x)
                    (svar-p (car x))
                    (lhprobe-p (cdr x)))
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-rev

    (defthm lhprobe-map-p-of-rev
      (equal (lhprobe-map-p (rev x))
             (lhprobe-map-p (list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-list-fix

    (defthm lhprobe-map-p-of-list-fix
      (implies (lhprobe-map-p x)
               (lhprobe-map-p (list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-lhprobe-map-p-compound-recognizer

    (defthm true-listp-when-lhprobe-map-p-compound-recognizer
      (implies (lhprobe-map-p x)
               (true-listp x))
      :rule-classes :compound-recognizer)

    Theorem: lhprobe-map-p-when-not-consp

    (defthm lhprobe-map-p-when-not-consp
      (implies (not (consp x))
               (equal (lhprobe-map-p x) (not x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-cdr-when-lhprobe-map-p

    (defthm lhprobe-map-p-of-cdr-when-lhprobe-map-p
      (implies (lhprobe-map-p (double-rewrite x))
               (lhprobe-map-p (cdr x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-cons

    (defthm lhprobe-map-p-of-cons
      (equal (lhprobe-map-p (cons acl2::a x))
             (and (and (consp acl2::a)
                       (svar-p (car acl2::a))
                       (lhprobe-p (cdr acl2::a)))
                  (lhprobe-map-p x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-remove-assoc

    (defthm lhprobe-map-p-of-remove-assoc
      (implies (lhprobe-map-p x)
               (lhprobe-map-p (remove-assoc-equal acl2::name x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-put-assoc

    (defthm lhprobe-map-p-of-put-assoc
      (implies
           (and (lhprobe-map-p x))
           (iff (lhprobe-map-p (put-assoc-equal acl2::name acl2::val x))
                (and (svar-p acl2::name)
                     (lhprobe-p acl2::val))))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-fast-alist-clean

    (defthm lhprobe-map-p-of-fast-alist-clean
      (implies (lhprobe-map-p x)
               (lhprobe-map-p (fast-alist-clean x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-hons-shrink-alist

    (defthm lhprobe-map-p-of-hons-shrink-alist
      (implies (and (lhprobe-map-p x)
                    (lhprobe-map-p y))
               (lhprobe-map-p (hons-shrink-alist x y)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-map-p-of-hons-acons

    (defthm lhprobe-map-p-of-hons-acons
      (equal (lhprobe-map-p (hons-acons acl2::a acl2::n x))
             (and (svar-p acl2::a)
                  (lhprobe-p acl2::n)
                  (lhprobe-map-p x)))
      :rule-classes ((:rewrite)))

    Theorem: lhprobe-p-of-cdr-of-hons-assoc-equal-when-lhprobe-map-p

    (defthm lhprobe-p-of-cdr-of-hons-assoc-equal-when-lhprobe-map-p
      (implies (lhprobe-map-p x)
               (iff (lhprobe-p (cdr (hons-assoc-equal acl2::k x)))
                    (or (hons-assoc-equal acl2::k x)
                        (lhprobe-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: alistp-when-lhprobe-map-p-rewrite

    (defthm alistp-when-lhprobe-map-p-rewrite
      (implies (lhprobe-map-p x) (alistp x))
      :rule-classes ((:rewrite)))

    Theorem: alistp-when-lhprobe-map-p

    (defthm alistp-when-lhprobe-map-p
      (implies (lhprobe-map-p x) (alistp x))
      :rule-classes :tau-system)

    Theorem: lhprobe-p-of-cdar-when-lhprobe-map-p

    (defthm lhprobe-p-of-cdar-when-lhprobe-map-p
      (implies (lhprobe-map-p x)
               (iff (lhprobe-p (cdar x))
                    (or (consp x) (lhprobe-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: svar-p-of-caar-when-lhprobe-map-p

    (defthm svar-p-of-caar-when-lhprobe-map-p
      (implies (lhprobe-map-p x)
               (iff (svar-p (caar x))
                    (or (consp x) (svar-p nil))))
      :rule-classes ((:rewrite)))