• Top
    • Documentation
      • Xdoc
        • Undocumented
          • Interp-flags
          • Simpcode
          • Npn4
          • Cutinfo
          • Glcp-config-p
          • Glmc-config-p
          • Defsvtv-args
          • Vl-renaming-alist-p
          • Vcd-pathmap-p
          • Vcd-idxhash-p
          • *atc-exec-binary-strict-pure-rules*
          • Ecut-wirename-alistp
          • Context
          • Svtv-data-obj
          • Incremental-extremize-config-p
          • Ctrex-rule
          • Glmc-fsm-p
          • Eqbylbp-config-p
          • Proof-obligation
          • Cgraph-edge
          • Wcp-instance-rule-p
          • Wcp-witness-rule-p
          • Obligation-hyp
          • Vl-parsestate
          • Ecutnames-p
          • Te-args
          • Fn-info-elt-p
          • Truth-idx
          • Polarity4
          • Wcp-template-p
          • Phase-fsm-params
          • Fgl-casesplit-config
          • Cutscore
          • Truth6
          • Truth5
          • Truth4
          • Truth3
          • Propiso-info-p
          • Vl-rhs
          • Fgl-satlink-monolithic-sat-config
          • Constraint-tuple
          • Svexl-node
          • Ringosc3
          • Prof-entry-p
          • Constraint-tuple-p
          • Fgl-rune
          • Stv-spec-p
          • Svex-scc-consts
          • Base-fsm
          • Svtv-precompose-data
          • Pipeline-setup
          • Svl-module
          • Maybe-fgl-generic-rule
          • Frames
          • Vl-warningtree
          • Maybe-proof-obligation
          • Svtv-override-check
          • Fty-info
          • Prof-entry
          • Vl-maybe-rhs
          • Vl-parsed-ports
          • Svex-context
          • Maybe-svex
          • Fgl-exhaustive-test-config
          • Maybe-simpcode
          • Maybe-rational
          • Flatten-res
          • Fty-type
          • Rewrite
          • Addnames-indices
          • Svtv*-phase
          • Fgl-binder-rune
          • Congruence-rule
          • Vl-ctxexpr
          • Rsh-of-concat-table
          • Chase-position
          • Hyp-tuple-p
          • Glcp-obj-ctrex-p
          • Glcp-bit-ctrex-p
          • Boundrw-subst-p
          • Svtv-cyclephase
          • Svar-split
          • Scopetree
          • Flatnorm-res
          • Fgl-rule
          • Constraint-rule
          • Vl-user-paramsetting
          • Svtv-composedata
          • Array-fieldinfo-p
          • Wcp-example-app-p
          • Svtv*-input
          • Svtv-override-triple
          • Svtv-evaldata
          • Svex-override-triple
          • Svar-override-triple
          • Constraint-rule-p
          • Vl-parsed-ports
          • Svtv-assigns-override-config
          • Svex/index
          • Svl-env
          • Svl-aliasdb
          • Inverter
          • Fgl-binder-rule
          • Bvar-db-consistency-error
          • Wcp-lit-actions-p
          • Vcd-multivector-p
          • Svtv-fsm
          • Svexl
          • Constraint-instance
          • Vl-parsestate
          • Partsum-comp
          • Classname/params
          • Vcd-vector-p
          • Tmp-occ
          • Svl-occ
          • Svexllist
          • Svexl-alist
          • Uninterpreted
          • Rw-pair
          • Vl-echar-raw
          • Vl-echar-raw
          • Use-set
          • Svtv-probe
          • Svex-phase-varname
          • Svex-cycle-varname
          • Svex-alistlist-eval-equiv
          • Svex-alist-eval-equiv!
          • Svex-alist-eval-equiv
          • Range
          • Phase-fsm-config
          • Constraint
          • Alias
          • Sig
          • Sandwich
          • Cgraph-derivstate
          • Candidate-assign
          • Svex-envlists-equivalent
          • Scalar-fieldinfo-p
          • Fgl-ev-congruence-rulelist-correct-p
          • N-outputs-dom-supergates-sweep-config
          • Truth4arr
          • Npn4arr
          • Flatnorm-setup
          • G-map-tag
          • Obs-sdom-array
          • Dom-supergates-sweep-config
          • Syndef::acid4
          • Svex-envlists-similar
          • Svex-alist-compose-equiv
          • Sym-prod
          • Fgl-congruence-rune
          • U32arr
          • Litarr
          • Aigtrans
          • Svexlist-eval-equiv
          • Svex-eval-equiv
          • N-outputs-unreachability-config
          • Unreachability-config
          • Keys-equiv
          • Vl-maybe-exprtype-list-p
          • Svex-alistlist
          • List-notin
          • Vcd-multivectorlist-p
          • Vcd-indexlist-p
          • Field-spec-listp
          • Alternative-spec-listp
          • Variable-listp
          • Prof-entrylist-p
          • Glcp-obj-ctrexlist-p
          • Pseudo-input-listp
          • Boundrw-substlist-p
          • Vcd-vectorlist-p
          • Neteval-ordering
          • Hyp-tuplelist-p
          • Symbol-path-list-p
          • Input-listp
          • Ecutname-list-p
          • Constraintlist
          • Fgl-object-bindings
          • Fgl-generic-rule
          • Eval-formula-equiv
          • Nonkeyword-listp
          • 4v-equiv
          • Svexl-node-array
          • Sig-path
          • Func-alist
          • Fgl-generic-rune
          • Fgl-ev-iff-equiv
          • Fgl-ev-equiv
          • Pseudo-term-subst
          • Nth-lit-equiv
          • Lits-equiv
          • Frames-equiv
          • Svex-s4env
          • Svex-env-keys-equiv
          • Svex-alist-same-keys
          • Svex-alist-keys-equiv
          • Pseudo-term-alist
          • Nth-nat-equiv
          • Nth-equiv
          • Faig-const-equiv
          • Bdd-equiv
          • Vl-user-paramsettings
          • Classname/params-unparam-map
          • Obligation-hyp-list
          • Svtv*-output-alist
          • Svtv*-input-alist
          • Svtv-probealist
          • Svtv-override-triplemap
          • Svtv-cyclephaselist
          • Svex/index-maybenat-alist
          • Svex-context-alist
          • Rangemap
          • Fnsym-svexlistlist-alist
          • Tmp-occ-alist
          • Svl-module-alist
          • Svexl-node-alist
          • Occ-name-alist
          • Alias-alist
          • Special-char-alist
          • Fty-info-alist
          • Bfr-updates
            • Bfr-updates-p
              • Bfr-updates-fix
              • Bfr-updates-equiv
            • Term-equivs
            • Term-bvars
            • Sig-table
            • Fgl-function-mode-alist
            • Ctrex-ruletable
            • Constraint-db
            • Congruence-rule-table
            • Cgraph-derivstates
            • Cgraph-alist
            • Cgraph
            • Casesplit-alist
            • Truthmap
            • Axi-map
            • Faig-fix-equiv
            • Vl-string/int-alist
            • Vl-reservedtable
            • Vl-echarlist
            • Vl-ctxexprlist
            • Vl-coredatatype-infolist
            • Vl-usertypes
            • Vl-coredatatype-infolist
            • Proof-obligation-list
            • Use-set-summaries
            • Svtv-rev-probealist
            • Svex/index-nat-alist
            • Svex/index-key-alist
            • Svex-key-alist
            • Svex-envlist
            • Svar-width-map
            • Svar-splittab
            • Svar-key-alist
            • Rsh-of-concat-alist
            • Path-alist
            • Name-alist
            • Address-alist
            • Svl-occ-alist
            • Symbol-string-alist
            • Symbol-integer-alist
            • Sym-nat-alist
            • String-string-alist
            • Fty-types
            • Fty-field-alist
            • Any-table
            • Obj-alist
            • Nat-nat-alist
            • Constraint-instancelist
            • Congruence-rulelist
            • Calist
            • Bvar-db-consistency-errorlist
            • Var-counts-alist
            • Pseudo-var-list
            • Equiv-contextslist
            • Nat-val-alistp
            • Id-neg-alist
            • String-keyed-alist-p
            • Vl-reportcardkeylist
            • Partsumlist
            • Partsum-elt
            • Classname/paramslist
            • Vl-reportcardkeylist
            • Vl-locationlist
            • Vl-echarlist
            • Perm4-list
            • Svtv*-phaselist
            • Svtv-override-triplemaplist
            • Svtv-override-triplelist
            • Svtv-override-checklist
            • Svtv-name-lhs-map-list
            • Svtv-data$c-field-p
            • Svex/indexlist
            • Svexlistlist
            • Svex-override-triplelistlist
            • Svex-override-triplelist
            • Svex-contextlist
            • Svarlist-list
            • Svar-override-triplelistlist
            • Svar-override-triplelist
            • Rangelist
            • Chase-stack
            • Addresslist
            • 4veclistlist
            • Occ-name-list
            • Alias-lst
            • Word-list
            • Sig-path-list
            • Function-option-name-lst
            • Any-trace
            • Bfr-varnamelist
            • Aig-varlist
            • Scratch-nontagidxlist
            • Prof-entrylist
            • Interp-st-field-p
            • Fgl-runelist
            • Fgl-rulelist
            • Fgl-object-bindingslist
            • Fgl-congruence-runelist
            • Fgl-binder-runelist
            • Fgl-binder-rulelist
            • Ctrex-rulelist
            • Constraint-tuplelist
            • Cgraph-edgelist
            • Candidate-assigns
            • Rw-pairlist
            • Rewritelist
            • Equiv-contexts
            • Bindinglist
            • Pos-list
            • Obs-sdom-info-list
            • Cutinfolist
            • Bit-list
            • Axi-termlist
            • Axi-litlist
            • Symbol-pseudoterm-alist
            • Vl-user-paramsettings-mode-p
            • Ipasir-status-p
            • Ctrex-ruletype-p
            • String-stringlist-alist
            • St-hyp-method-p
            • Axi-op-p
            • Vl-opacity-p
            • Svar-overridetype-p
            • Scratchobj-kind-p
            • Logicman-field-p
            • Env$-field-p
            • Axi
            • *smt-architecture*
            • *vl-directions-kwds*
            • *vl-directions-kwd-alist*
            • *atc-exec-expr-call-rules*
            • Rlp-trees
          • Save
          • Defsection
          • Markup
          • Preprocessor
          • Emacs-links
          • Defxdoc
          • Katex-integration
          • Constructors
          • Entities
          • Save-rendered
          • Add-resource-directory
          • Defxdoc+
          • Testing
          • Order-subtopics
          • Missing-parents
          • Save-rendered-event
          • Archive-matching-topics
          • Archive-xdoc
          • Xdoc-extend
          • Set-default-parents
          • Defpointer
          • Defxdoc-raw
          • Xdoc-tests
          • Xdoc-prepend
          • Defsection-progn
          • Gen-xdoc-for-file
        • ACL2-doc
        • Pointers
        • Doc
        • Documentation-copyright
        • Args
        • ACL2-doc-summary
        • Finding-documentation
        • Broken-link
      • Books
      • Recursion-and-induction
      • Boolean-reasoning
      • Debugging
      • Projects
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Bfr-updates

    Bfr-updates-p

    Recognizer for bfr-updates.

    Signature
    (bfr-updates-p x) → *

    Definitions and Theorems

    Function: bfr-updates-p

    (defun bfr-updates-p (x)
           (declare (xargs :guard t))
           (let ((__function__ 'bfr-updates-p))
                (declare (ignorable __function__))
                (if (atom x)
                    t
                    (and (consp (car x))
                         (bfr-varname-p (caar x))
                         (bfr-updates-p (cdr x))))))

    Theorem: bfr-updates-p-of-revappend

    (defthm bfr-updates-p-of-revappend
            (equal (bfr-updates-p (revappend x y))
                   (and (bfr-updates-p (list-fix x))
                        (bfr-updates-p y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-remove

    (defthm bfr-updates-p-of-remove
            (implies (bfr-updates-p x)
                     (bfr-updates-p (remove a x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-last

    (defthm bfr-updates-p-of-last
            (implies (bfr-updates-p (double-rewrite x))
                     (bfr-updates-p (last x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-nthcdr

    (defthm bfr-updates-p-of-nthcdr
            (implies (bfr-updates-p (double-rewrite x))
                     (bfr-updates-p (nthcdr n x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-butlast

    (defthm bfr-updates-p-of-butlast
            (implies (bfr-updates-p (double-rewrite x))
                     (bfr-updates-p (butlast x n)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-update-nth

    (defthm bfr-updates-p-of-update-nth
            (implies (bfr-updates-p (double-rewrite x))
                     (iff (bfr-updates-p (update-nth n y x))
                          (and (and (consp y) (bfr-varname-p (car y)))
                               (or (<= (nfix n) (len x))
                                   (and (consp nil)
                                        (bfr-varname-p (car nil)))))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-repeat

    (defthm bfr-updates-p-of-repeat
            (iff (bfr-updates-p (acl2::repeat n x))
                 (or (and (consp x) (bfr-varname-p (car x)))
                     (zp n)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-take

    (defthm bfr-updates-p-of-take
            (implies (bfr-updates-p (double-rewrite x))
                     (iff (bfr-updates-p (take n x))
                          (or (and (consp nil)
                                   (bfr-varname-p (car nil)))
                              (<= (nfix n) (len x)))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-union-equal

    (defthm bfr-updates-p-of-union-equal
            (equal (bfr-updates-p (union-equal x y))
                   (and (bfr-updates-p (list-fix x))
                        (bfr-updates-p (double-rewrite y))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-intersection-equal-2

    (defthm bfr-updates-p-of-intersection-equal-2
            (implies (bfr-updates-p (double-rewrite y))
                     (bfr-updates-p (intersection-equal x y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-intersection-equal-1

    (defthm bfr-updates-p-of-intersection-equal-1
            (implies (bfr-updates-p (double-rewrite x))
                     (bfr-updates-p (intersection-equal x y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-set-difference-equal

    (defthm bfr-updates-p-of-set-difference-equal
            (implies (bfr-updates-p x)
                     (bfr-updates-p (set-difference-equal x y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-set-equiv-congruence

    (defthm bfr-updates-p-set-equiv-congruence
            (implies (acl2::set-equiv x y)
                     (equal (bfr-updates-p x)
                            (bfr-updates-p y)))
            :rule-classes :congruence)

    Theorem: bfr-updates-p-when-subsetp-equal

    (defthm bfr-updates-p-when-subsetp-equal
            (and (implies (and (subsetp-equal x y)
                               (bfr-updates-p y))
                          (bfr-updates-p x))
                 (implies (and (bfr-updates-p y)
                               (subsetp-equal x y))
                          (bfr-updates-p x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-rcons

    (defthm bfr-updates-p-of-rcons
            (iff (bfr-updates-p (acl2::rcons a x))
                 (and (and (consp a) (bfr-varname-p (car a)))
                      (bfr-updates-p (list-fix x))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-rev

    (defthm bfr-updates-p-of-rev
            (equal (bfr-updates-p (acl2::rev x))
                   (bfr-updates-p (list-fix x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-duplicated-members

    (defthm bfr-updates-p-of-duplicated-members
            (implies (bfr-updates-p x)
                     (bfr-updates-p (acl2::duplicated-members x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-difference

    (defthm bfr-updates-p-of-difference
            (implies (bfr-updates-p x)
                     (bfr-updates-p (set::difference x y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-intersect-2

    (defthm bfr-updates-p-of-intersect-2
            (implies (bfr-updates-p y)
                     (bfr-updates-p (set::intersect x y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-intersect-1

    (defthm bfr-updates-p-of-intersect-1
            (implies (bfr-updates-p x)
                     (bfr-updates-p (set::intersect x y)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-union

    (defthm bfr-updates-p-of-union
            (iff (bfr-updates-p (set::union x y))
                 (and (bfr-updates-p (set::sfix x))
                      (bfr-updates-p (set::sfix y))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-mergesort

    (defthm bfr-updates-p-of-mergesort
            (iff (bfr-updates-p (set::mergesort x))
                 (bfr-updates-p (list-fix x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-delete

    (defthm bfr-updates-p-of-delete
            (implies (bfr-updates-p x)
                     (bfr-updates-p (set::delete k x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-insert

    (defthm bfr-updates-p-of-insert
            (iff (bfr-updates-p (set::insert a x))
                 (and (bfr-updates-p (set::sfix x))
                      (and (consp a)
                           (bfr-varname-p (car a)))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-sfix

    (defthm bfr-updates-p-of-sfix
            (iff (bfr-updates-p (set::sfix x))
                 (or (bfr-updates-p x)
                     (not (set::setp x))))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-list-fix

    (defthm bfr-updates-p-of-list-fix
            (equal (bfr-updates-p (list-fix x))
                   (bfr-updates-p x))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-append

    (defthm bfr-updates-p-of-append
            (equal (bfr-updates-p (append a b))
                   (and (bfr-updates-p a)
                        (bfr-updates-p b)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-when-not-consp

    (defthm bfr-updates-p-when-not-consp
            (implies (not (consp x))
                     (bfr-updates-p x))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-cdr-when-bfr-updates-p

    (defthm bfr-updates-p-of-cdr-when-bfr-updates-p
            (implies (bfr-updates-p (double-rewrite x))
                     (bfr-updates-p (cdr x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-cons

    (defthm bfr-updates-p-of-cons
            (equal (bfr-updates-p (cons a x))
                   (and (and (consp a) (bfr-varname-p (car a)))
                        (bfr-updates-p x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-fast-alist-clean

    (defthm bfr-updates-p-of-fast-alist-clean
            (implies (bfr-updates-p x)
                     (bfr-updates-p (fast-alist-clean x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-updates-p-of-hons-shrink-alist

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

    Theorem: bfr-updates-p-of-hons-acons

    (defthm bfr-updates-p-of-hons-acons
            (equal (bfr-updates-p (hons-acons a n x))
                   (and (bfr-varname-p a)
                        t (bfr-updates-p x)))
            :rule-classes ((:rewrite)))

    Theorem: bfr-varname-p-of-caar-when-bfr-updates-p

    (defthm bfr-varname-p-of-caar-when-bfr-updates-p
            (implies (bfr-updates-p x)
                     (iff (bfr-varname-p (caar x))
                          (or (consp x) (bfr-varname-p nil))))
            :rule-classes ((:rewrite)))