• 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
          • Scratchobj
          • Minor-frame
            • Minor-frame-fix
            • Minor-frame-equiv
            • Make-minor-frame
            • Minor-frame->term-index
            • Minor-frame->scratch
              • Minor-frame->bindings
              • Change-minor-frame
              • Minor-frame->term
              • Minor-frame-p
            • Major-frame
            • Major-stack
            • Scratchlist
            • Minor-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
        • 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
    • Minor-frame

    Minor-frame->scratch

    Get the scratch field from a minor-frame.

    Signature
    (minor-frame->scratch x) → scratch
    Arguments
    x — Guard (minor-frame-p x).
    Returns
    scratch — Type (scratchlist-p scratch).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: minor-frame->scratch$inline

    (defun minor-frame->scratch$inline (x)
      (declare (xargs :guard (minor-frame-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'minor-frame->scratch))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (scratchlist-fix (cdr (std::da-nth 1 x))))
             :exec (cdr (std::da-nth 1 x)))))

    Theorem: scratchlist-p-of-minor-frame->scratch

    (defthm scratchlist-p-of-minor-frame->scratch
      (b* ((scratch (minor-frame->scratch$inline x)))
        (scratchlist-p scratch))
      :rule-classes :rewrite)

    Theorem: minor-frame->scratch$inline-of-minor-frame-fix-x

    (defthm minor-frame->scratch$inline-of-minor-frame-fix-x
      (equal (minor-frame->scratch$inline (minor-frame-fix x))
             (minor-frame->scratch$inline x)))

    Theorem: minor-frame->scratch$inline-minor-frame-equiv-congruence-on-x

    (defthm
          minor-frame->scratch$inline-minor-frame-equiv-congruence-on-x
      (implies (minor-frame-equiv x x-equiv)
               (equal (minor-frame->scratch$inline x)
                      (minor-frame->scratch$inline x-equiv)))
      :rule-classes :congruence)