• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
          • Def-ctrex-rule
          • Fgl-counterexample-implementation-details
            • Cgraph
              • Cgraph-p
              • Ctrex-rule
                • Ctrex-rule-fix
                • Make-ctrex-rule
                • Ctrex-rule-p
                  • Ctrex-rule-equiv
                  • Ctrex-rule->dep-success-vars
                  • Change-ctrex-rule
                  • Ctrex-rule->unify-subst
                  • Ctrex-rule->ruletype
                  • Ctrex-rule->priority
                  • Ctrex-rule->value
                  • Ctrex-rule->target
                  • Ctrex-rule->success
                  • Ctrex-rule->match
                  • Ctrex-rule->deps
                  • Ctrex-rule->order
                  • Ctrex-rule->name
                • Cgraph-fix
                • Cgraph-equiv
              • Cgraph-derive-assignments-for-vars
              • Cgraph-derive-assignments-obj
              • Cgraph-derive-assignments-bindings
          • Fgl-interpreter-overview
          • 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
          • 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
    • Ctrex-rule

    Ctrex-rule-p

    Recognizer for ctrex-rule structures.

    Signature
    (ctrex-rule-p x) → *

    Definitions and Theorems

    Function: ctrex-rule-p

    (defun ctrex-rule-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'ctrex-rule-p))
      (declare (ignorable __function__))
      (and
        (mbe :logic
             (and (alistp x)
                  (equal (strip-cars x)
                         '(name match
                                unify-subst target deps dep-success-vars
                                success priority value order ruletype)))
             :exec (fty::alist-with-carsp
                        x
                        '(name match
                               unify-subst target deps dep-success-vars
                               success priority value order ruletype)))
        (b* ((name (cdr (std::da-nth 0 x)))
             (match (cdr (std::da-nth 1 x)))
             (unify-subst (cdr (std::da-nth 2 x)))
             (target (cdr (std::da-nth 3 x)))
             (deps (cdr (std::da-nth 4 x)))
             (dep-success-vars (cdr (std::da-nth 5 x)))
             (success (cdr (std::da-nth 6 x)))
             (priority (cdr (std::da-nth 7 x)))
             (value (cdr (std::da-nth 8 x)))
             (order (cdr (std::da-nth 9 x)))
             (ruletype (cdr (std::da-nth 10 x))))
          (and (symbolp name)
               (pseudo-termp match)
               (fgl-object-bindings-p unify-subst)
               (pseudo-termp target)
               (pseudo-term-subst-p deps)
               (pseudo-term-subst-p dep-success-vars)
               (pseudo-termp success)
               (pseudo-termp priority)
               (pseudo-termp value)
               (natp order)
               (ctrex-ruletype-p ruletype))))))

    Theorem: consp-when-ctrex-rule-p

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