• 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-gen-test-method
                • Atj-shallow-code-generation
                • Atj-common-code-generation
                • Atj-shallow-quoted-constant-generation
                • Atj-pre-translation
                  • Atj-pre-translation-array-analysis
                  • Atj-pre-translation-type-annotation
                    • Atj-type-annotate-term
                    • Atj-check-annotated-mv-let-call
                    • Atj-type-conv-allowed-p
                    • Atj-type-annotate-formals+body
                    • Atj-type-rewrap-term
                    • Atj-type-conv
                    • Atj-type-unwrap-term
                    • Atj-type-id
                    • Atj-type-wrap-term
                    • Atj-types-id
                    • Atj-types-of-conv
                    • Atj-types-conv-allowed-p
                    • Atj-type-annotate-var
                    • Atj-type-unannotate-var
                    • Atj-type-of-id
                    • Atj-types-of-id
                    • Atj-type-annotate-mv-nth-terms
                    • Atj-type-annotate-vars
                    • Atj-select-mv-term-types
                    • Atj-type-unannotate-vars
                      • Atj-type-rewrap-terms
                      • Atj-type-wrapped-variable-p
                    • Atj-pre-translation-var-reuse
                    • Atj-pre-translate
                    • Atj-pre-translation-multiple-values
                    • Atj-pre-translation-no-aij-types-analysis
                    • Atj-pre-translation-var-renaming
                    • Atj-pre-translation-remove-return-last
                    • Atj-pre-translation-disjunctions
                    • Atj-pre-translation-trivial-vars
                    • Atj-pre-translation-conjunctions
                    • Atj-pre-translation-unused-vars
                    • Atj-pre-translation-remove-dead-if-branches
                  • Atj-gen-everything
                  • Atj-name-translation
                  • Atj-gen-test-cunit
                  • Atj-gen-test-class
                  • Atj-gen-main-file
                  • Atj-post-translation
                  • Atj-deep-code-generation
                  • Atj-gen-test-methods
                  • Atj-gen-test-file
                  • Atj-gen-env-file
                  • Atj-gen-output-subdir
                • 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
          • 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-pre-translation-type-annotation

    Atj-type-unannotate-vars

    Remove the type annotations from a list of variables.

    Signature
    (atj-type-unannotate-vars vars) → unannotated-vars
    Arguments
    vars — Guard (symbol-listp vars).
    Returns
    unannotated-vars — Type (symbol-listp unannotated-vars).

    The annotating types are discarded.

    Definitions and Theorems

    Function: atj-type-unannotate-vars

    (defun atj-type-unannotate-vars (vars)
      (declare (xargs :guard (symbol-listp vars)))
      (let ((__function__ 'atj-type-unannotate-vars))
        (declare (ignorable __function__))
        (b* (((when (endp vars)) nil)
             ((mv var &)
              (atj-type-unannotate-var (car vars)))
             (vars (atj-type-unannotate-vars (cdr vars))))
          (cons var vars))))

    Theorem: symbol-listp-of-atj-type-unannotate-vars

    (defthm symbol-listp-of-atj-type-unannotate-vars
      (b* ((unannotated-vars (atj-type-unannotate-vars vars)))
        (symbol-listp unannotated-vars))
      :rule-classes :rewrite)

    Theorem: len-of-atj-type-unannotate-vars

    (defthm len-of-atj-type-unannotate-vars
      (b* ((?unannotated-vars (atj-type-unannotate-vars vars)))
        (equal (len unannotated-vars)
               (len vars))))