• 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-object-eval
          • Fgl-object-p
          • G-map
          • G-ite
          • G-cons
          • G-concrete
            • Make-g-concrete
            • G-concrete->val
              • Change-g-concrete
            • G-apply
            • G-integer
            • Fgl-object-equiv
            • G-boolean
            • G-var
            • Fgl-bitvector
            • Fgl-object-kind
            • Summarize-fgl-object
            • Fgl-make-isomorphic
            • Fgl-object-alist
            • Fgl-objectlist
            • Fgl-object-fix
            • Fgl-object-count
          • 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
          • 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
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • G-concrete

    G-concrete->val

    Get the val field from a g-concrete.

    Signature
    (g-concrete->val x) → fty::x.name
    Arguments
    x — Guard (fgl-object-p x).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: g-concrete->val$inline

    (defun g-concrete->val$inline (x)
      (declare (xargs :guard (fgl-object-p x)))
      (declare (xargs :guard (equal (fgl-object-kind x)
                                    :g-concrete)))
      (let ((__function__ 'g-concrete->val))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (fgl-object-kind x) :g-concrete)
                          x)))
               (if (consp x) (cdr x) x))
             :exec (if (consp x) (cdr x) x))))

    Theorem: g-concrete->val$inline-of-fgl-object-fix-x

    (defthm g-concrete->val$inline-of-fgl-object-fix-x
      (equal (g-concrete->val$inline (fgl-object-fix x))
             (g-concrete->val$inline x)))

    Theorem: g-concrete->val$inline-fgl-object-equiv-congruence-on-x

    (defthm g-concrete->val$inline-fgl-object-equiv-congruence-on-x
      (implies (fgl-object-equiv x x-equiv)
               (equal (g-concrete->val$inline x)
                      (g-concrete->val$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: g-concrete->val-when-wrong-kind

    (defthm g-concrete->val-when-wrong-kind
      (implies (not (equal (fgl-object-kind x) :g-concrete))
               (equal (g-concrete->val x) nil)))