• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Removable-runes
      • Efficiency
      • Rewrite-bounds
      • Bash
      • Def-dag-measure
      • Fgl
        • Fgl-rewrite-rules
          • Fgl-syntactic-checker-binders
          • Binder
          • Fancy-ev
          • Def-fgl-program
          • Bind-var
          • Add-fgl-brewrites
          • Def-fgl-rewrite
          • Narrow-equiv
          • Def-fgl-branch-merge
          • Add-fgl-rewrites
          • Fgl-interp-obj
          • Fgl-prog2
          • Collect-cmr-rewrites-for-formula-name
            • Syntax-bind
            • Fgl-time
            • Assume
            • Add-fgl-binder-meta
            • Add-fgl-primitive
            • Add-fgl-meta
            • Add-fgl-branch-merges
            • Cmr::rewritelist->lhses
            • Remove-fgl-brewrites
            • Remove-fgl-branch-merges
            • Lhses->branch-function-syms
            • Enable-execution
            • Abort-rewrite
            • Syntax-interp
            • Remove-fgl-rewrites
            • Lhses->leading-function-syms
            • Remove-fgl-primitive
            • Remove-fgl-binder-meta
            • If!
            • Disable-execution
            • Remove-fgl-meta
            • Fgl-time-fn
            • Disable-definition
            • Def-fgl-brewrite
          • Fgl-function-mode
          • Fgl-object
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-interpreter-overview
          • Fgl-counterexamples
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-array-support
          • Fgl-internals
        • 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
      • Testing-utilities
      • Math
    • Fgl-rewrite-rules

    Collect-cmr-rewrites-for-formula-name

    Signature
    (collect-cmr-rewrites-for-formula-name name world) → rewrites
    Arguments
    name — Guard (symbolp name).
    world — Guard (plist-worldp world).
    Returns
    rewrites — Type (cmr::rewritelist-p rewrites).

    Definitions and Theorems

    Function: collect-cmr-rewrites-for-formula-name

    (defun
     collect-cmr-rewrites-for-formula-name
     (name world)
     (declare (xargs :guard (and (symbolp name)
                                 (plist-worldp world))))
     (let
      ((__function__ 'collect-cmr-rewrites-for-formula-name))
      (declare (ignorable __function__))
      (b*
       ((form (acl2::meta-extract-formula-w name world))
        ((mv err rewrites)
         (cmr::parse-rewrites-from-term form world))
        ((when (and err (not rewrites)))
         (er hard?
             'collect-cmr-rewrites-for-formula-name
             "No rewrites parsed from ~x0: ~@1"
             name err)))
       (and
        err
        (cw
         "Warning: incomplete conversion from formula to rewrites for ~x0: ~@1~%"
         name err))
       rewrites)))

    Theorem: rewritelist-p-of-collect-cmr-rewrites-for-formula-name

    (defthm
     rewritelist-p-of-collect-cmr-rewrites-for-formula-name
     (b* ((rewrites (collect-cmr-rewrites-for-formula-name name world)))
         (cmr::rewritelist-p rewrites))
     :rule-classes :rewrite)