• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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-counterexamples
        • Fgl-getting-bits-from-objects
        • Fgl-primitive-and-meta-rules
        • Fgl-interpreter-overview
        • Fgl-correctness-of-binding-free-variables
        • Fgl-debugging
        • Fgl-testbenches
        • Def-fgl-boolean-constraint
        • Fgl-stack
        • Def-fgl-param-thm
        • Fgl-rewrite-tracing
        • Def-fgl-thm
        • Fgl-fast-alist-support
        • Fgl-array-support
        • Advanced-equivalence-checking-with-fgl
        • Fgl-fty-support
        • Fgl-internals
          • Symbolic-arithmetic
          • Bfr
            • Bfr-eval
            • Bfrstate
            • Bfr->aignet-lit
            • Bfr-p
            • Bounded-lit-fix
            • Bfr-list-fix
            • Aignet-lit->bfr
            • Variable-g-bindings
            • Fgl-object-bindings-bfrs-ok
              • Fgl-object-bindings-bfrlist
              • Bfr-listp$
              • Bfrstate>=
              • Bfr-listp-witness
              • Bfr-set-var
              • Bfr-negate
              • Bfr-fix
              • Fgl-bfr-object-bindings-p
              • Bfr-mode
              • Bfr-mode-is
              • Lbfr-case
              • Bfrstate-case
              • Bfrstate-mode-is
              • Lbfr-mode-is
              • Bfr-mode-p
            • Fgl-interpreter-state
        • 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
    • Bfr

    Fgl-object-bindings-bfrs-ok

    Signature
    (fgl-object-bindings-bfrs-ok x &optional (bfrstate 'bfrstate)) 
      → 
    *
    Arguments
    x — Guard (fgl-object-bindings-p x).
    bfrstate — Guard (bfrstate-p bfrstate).

    Definitions and Theorems

    Function: fgl-object-bindings-bfrs-ok-fn

    (defun fgl-object-bindings-bfrs-ok-fn (x bfrstate)
      (declare (xargs :guard (and (fgl-object-bindings-p x)
                                  (bfrstate-p bfrstate))))
      (let ((__function__ 'fgl-object-bindings-bfrs-ok))
        (declare (ignorable __function__))
        (if (atom x)
            t
          (and (or (not (mbt (and (consp (car x))
                                  (pseudo-var-p (caar x)))))
                   (fgl-object-bfrs-ok (cdar x)))
               (fgl-object-bindings-bfrs-ok (cdr x))))))

    Theorem: fgl-object-bindings-bfrs-ok-fn-of-fgl-object-bindings-fix-x

    (defthm fgl-object-bindings-bfrs-ok-fn-of-fgl-object-bindings-fix-x
      (equal (fgl-object-bindings-bfrs-ok-fn (fgl-object-bindings-fix x)
                                             bfrstate)
             (fgl-object-bindings-bfrs-ok-fn x bfrstate)))

    Theorem: fgl-object-bindings-bfrs-ok-fn-fgl-object-bindings-equiv-congruence-on-x

    (defthm
     fgl-object-bindings-bfrs-ok-fn-fgl-object-bindings-equiv-congruence-on-x
     (implies (fgl-object-bindings-equiv x x-equiv)
              (equal (fgl-object-bindings-bfrs-ok-fn x bfrstate)
                     (fgl-object-bindings-bfrs-ok-fn x-equiv bfrstate)))
     :rule-classes :congruence)

    Theorem: fgl-object-bindings-bfrs-ok-fn-of-bfrstate-fix-bfrstate

    (defthm fgl-object-bindings-bfrs-ok-fn-of-bfrstate-fix-bfrstate
      (equal (fgl-object-bindings-bfrs-ok-fn x (bfrstate-fix bfrstate))
             (fgl-object-bindings-bfrs-ok-fn x bfrstate)))

    Theorem: fgl-object-bindings-bfrs-ok-fn-bfrstate-equiv-congruence-on-bfrstate

    (defthm
     fgl-object-bindings-bfrs-ok-fn-bfrstate-equiv-congruence-on-bfrstate
     (implies (bfrstate-equiv bfrstate bfrstate-equiv)
              (equal (fgl-object-bindings-bfrs-ok-fn x bfrstate)
                     (fgl-object-bindings-bfrs-ok-fn x bfrstate-equiv)))
     :rule-classes :congruence)