• 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
            • Scratchobj-fix
            • Scratchobj-case
            • Scratchobj-equiv
            • Scratchobj-p
            • Scratchobj-formals
            • Scratchobj-fnsym
            • Scratchobj-fgl-objlist
            • Scratchobj-fgl-obj
            • Scratchobj-cinstlist
            • Scratchobj-cinst
            • Scratchobj-bfrlist
            • Scratchobj-kind
            • Scratchobj-bfr
              • Make-scratchobj-bfr
              • Change-scratchobj-bfr
              • Scratchobj-bfr->val
            • Minor-frame
            • 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
    • Scratchobj-bfr

    Scratchobj-bfr->val

    Get the val field from a scratchobj-bfr.

    Signature
    (scratchobj-bfr->val x) → fty::x.name
    Arguments
    x — Guard (scratchobj-p x).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: scratchobj-bfr->val$inline

    (defun scratchobj-bfr->val$inline (x)
      (declare (xargs :guard (scratchobj-p x)))
      (declare (xargs :guard (equal (scratchobj-kind x) :bfr)))
      (let ((__function__ 'scratchobj-bfr->val))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (scratchobj-kind x) :bfr)
                          x)))
               (cdr x))
             :exec (cdr x))))

    Theorem: scratchobj-bfr->val$inline-of-scratchobj-fix-x

    (defthm scratchobj-bfr->val$inline-of-scratchobj-fix-x
      (equal (scratchobj-bfr->val$inline (scratchobj-fix x))
             (scratchobj-bfr->val$inline x)))

    Theorem: scratchobj-bfr->val$inline-scratchobj-equiv-congruence-on-x

    (defthm scratchobj-bfr->val$inline-scratchobj-equiv-congruence-on-x
      (implies (scratchobj-equiv x x-equiv)
               (equal (scratchobj-bfr->val$inline x)
                      (scratchobj-bfr->val$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: scratchobj-bfr->val-when-wrong-kind

    (defthm scratchobj-bfr->val-when-wrong-kind
      (implies (not (equal (scratchobj-kind x) :bfr))
               (equal (scratchobj-bfr->val x) nil)))