• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
        • Atj
          • Atj-implementation
            • Atj-types
            • Atj-java-primitive-array-model
            • Atj-java-abstract-syntax
              • Jbinop
              • Jmethod
              • Jtype
              • Jfield
              • Jexprs
              • Jliteral
              • Junop
              • Jlocvar
              • Jcunit
              • Jaccess
              • Maybe-jexpr
              • Jparam
                • Jparam-fix
                • Jparam-equiv
                • Make-jparam
                • Change-jparam
                • Jparam->type
                • Jparam->name
                • Jparam->final?
                  • Jparamp
                • Jimport
                • Jcinitializer
                • Jresult
                • Jstatems+jblocks
                • Jexpr-get-field
                • Jliteral-long-dec-nouscores
                • Nat-to-dec-chars-theorems
                • Jmethods-to-jcbody-elements
                • Jclasses-to-jcbody-elements
                • Jblock-locvar-final
                • Jblock-locvar
                • Jliteral-int-dec-nouscores
                • Jfields-to-jcbody-elements
                • Jblock-for
                • Jblock-smethod
                • Jblock-imethod
                • Jblock-ifelse
                • Jblock-asg-name
                • Jparam-list->types
                • Jparam-list->names
                • Jexpr-lit-long-dec-nouscores
                • Jexpr-lit-int-dec-nouscores
                • Jexpr-literal-string
                • Jexpr-literal-floating
                • Jexpr-literal-character
                • Jblock-while
                • Jblock-method
                • Jblock-if
                • Jblock-expr
                • Jblock-do
                • Jblock-asg
                • Jexpr-name-list
                • Jblock-throw
                • Jblock-return
                • Jparam-list
                • Jimport-list
                • Jexpr-literal-true
                • Jexpr-literal-null
                • Jexpr-literal-false
                • Jexpr-literal-1
                • Jexpr-literal-0
                • Jclass-list
                • Jblock-continue
                • Jtype-short
                • Jtype-long
                • Jtype-list
                • Jtype-int
                • Jtype-float
                • Jtype-double
                • Jtype-char
                • Jtype-byte
                • Jtype-boolean
                • Jmethod-list
                • Jliteral-list
                • Jfield-list
                • Jblock-list
                • Jblock-break
                • Jclasses+jcmembers
              • 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
              • Aij-notions
              • Atj-macro-definition
            • Atj-tutorial
          • Aij
          • Language
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Jparam

    Jparam->final?

    Get the final? field from a jparam.

    Signature
    (jparam->final? x) → final?
    Arguments
    x — Guard (jparamp x).
    Returns
    final? — Type (booleanp final?).

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

    Definitions and Theorems

    Function: jparam->final?$inline

    (defun jparam->final?$inline (x)
      (declare (xargs :guard (jparamp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'jparam->final?))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (acl2::bool-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: booleanp-of-jparam->final?

    (defthm booleanp-of-jparam->final?
      (b* ((final? (jparam->final?$inline x)))
        (booleanp final?))
      :rule-classes :rewrite)

    Theorem: jparam->final?$inline-of-jparam-fix-x

    (defthm jparam->final?$inline-of-jparam-fix-x
      (equal (jparam->final?$inline (jparam-fix x))
             (jparam->final?$inline x)))

    Theorem: jparam->final?$inline-jparam-equiv-congruence-on-x

    (defthm jparam->final?$inline-jparam-equiv-congruence-on-x
      (implies (jparam-equiv x x-equiv)
               (equal (jparam->final?$inline x)
                      (jparam->final?$inline x-equiv)))
      :rule-classes :congruence)