• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
          • Atj
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
              • Atj-input-processing
              • Atj-java-pretty-printer
              • Atj-code-generation
              • Atj-java-primitives
              • Atj-java-primitive-arrays
              • Atj-type-macros
              • Atj-java-syntax-operations
              • Atj-fn
              • Atj-library-extensions
              • Atj-java-input-types
              • Atj-test-structures
                • Atj-test-value
                  • Atj-test-value-fix
                  • Atj-test-value-case
                  • Atj-test-valuep
                  • Atj-test-value-equiv
                  • Atj-test-value-kind
                  • Atj-test-value-ACL2
                  • Atj-test-value-jshort[]
                  • Atj-test-value-jshort
                  • Atj-test-value-jlong[]
                  • Atj-test-value-jlong
                  • Atj-test-value-jint[]
                  • Atj-test-value-jint
                  • Atj-test-value-jchar[]
                    • Atj-test-value-jchar[]->get
                      • Make-atj-test-value-jchar[]
                      • Change-atj-test-value-jchar[]
                    • Atj-test-value-jchar
                    • Atj-test-value-jbyte[]
                    • Atj-test-value-jbyte
                    • Atj-test-value-jboolean[]
                    • Atj-test-value-jboolean
                  • Atj-test
                  • Atj-test-value-of-type
                  • Atj-test-values-of-types
                  • Atj-test-value-to-type
                  • Atj-test-values-to-types
                  • Atj-test-value-ACL2-list
                  • Atj-test-value-list
                  • Atj-test-list
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Atj-test-value-jchar[]

    Atj-test-value-jchar[]->get

    Get the get field from a atj-test-value-jchar[].

    Signature
    (atj-test-value-jchar[]->get x) → get
    Arguments
    x — Guard (atj-test-valuep x).
    Returns
    get — Type (char-arrayp get).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: atj-test-value-jchar[]->get$inline

    (defun atj-test-value-jchar[]->get$inline (x)
      (declare (xargs :guard (atj-test-valuep x)))
      (declare (xargs :guard (equal (atj-test-value-kind x)
                                    :jchar[])))
      (let ((__function__ 'atj-test-value-jchar[]->get))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (atj-test-value-kind x) :jchar[])
                          x)))
               (char-array-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: char-arrayp-of-atj-test-value-jchar[]->get

    (defthm char-arrayp-of-atj-test-value-jchar[]->get
      (b* ((get (atj-test-value-jchar[]->get$inline x)))
        (char-arrayp get))
      :rule-classes :rewrite)

    Theorem: atj-test-value-jchar[]->get$inline-of-atj-test-value-fix-x

    (defthm atj-test-value-jchar[]->get$inline-of-atj-test-value-fix-x
      (equal (atj-test-value-jchar[]->get$inline (atj-test-value-fix x))
             (atj-test-value-jchar[]->get$inline x)))

    Theorem: atj-test-value-jchar[]->get$inline-atj-test-value-equiv-congruence-on-x

    (defthm
     atj-test-value-jchar[]->get$inline-atj-test-value-equiv-congruence-on-x
     (implies (atj-test-value-equiv x x-equiv)
              (equal (atj-test-value-jchar[]->get$inline x)
                     (atj-test-value-jchar[]->get$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: atj-test-value-jchar[]->get-when-wrong-kind

    (defthm atj-test-value-jchar[]->get-when-wrong-kind
      (implies (not (equal (atj-test-value-kind x)
                           :jchar[]))
               (equal (atj-test-value-jchar[]->get x)
                      (char-array-fix nil))))