• 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
                • Fty-check-mv-let-call
                • Fty-check-if-call
                • Atj-fn-body
                • Atj-string-ascii-java-identifier-p
                • Fty-check-list-call
                  • Atj-string-ascii-java-package-name-p
                  • Atj-string-ascii-java-identifier-listp
                  • *atj-java-lang-class-names*
                • 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-library-extensions

    Fty-check-list-call

    FTY version of check-list-call.

    Signature
    (fty-check-list-call term) → (mv yes/no elements)
    Arguments
    term — Guard (pseudo-termp term).
    Returns
    yes/no — Type (booleanp yes/no).
    elements — Type (pseudo-term-listp elements).

    Definitions and Theorems

    Function: fty-check-list-call

    (defun fty-check-list-call (term)
      (declare (xargs :guard (pseudo-termp term)))
      (let ((__function__ 'fty-check-list-call))
        (declare (ignorable __function__))
        (check-list-call (pseudo-term-fix term))))

    Theorem: booleanp-of-fty-check-list-call.yes/no

    (defthm booleanp-of-fty-check-list-call.yes/no
      (b* (((mv ?yes/no ?elements)
            (fty-check-list-call term)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: pseudo-term-listp-of-fty-check-list-call.elements

    (defthm pseudo-term-listp-of-fty-check-list-call.elements
      (b* (((mv ?yes/no ?elements)
            (fty-check-list-call term)))
        (pseudo-term-listp elements))
      :rule-classes :rewrite)

    Theorem: pseudo-term-count-of-fty-check-list-call-weak

    (defthm pseudo-term-count-of-fty-check-list-call-weak
      (b* (((mv ?yes/no ?elements)
            (fty-check-list-call term)))
        (implies yes/no
                 (<= (pseudo-term-list-count elements)
                     (pseudo-term-count term))))
      :rule-classes :linear)

    Theorem: pseudo-term-count-of-fty-check-list-call

    (defthm pseudo-term-count-of-fty-check-list-call
      (b* (((mv ?yes/no ?elements)
            (fty-check-list-call term)))
        (implies yes/no
                 (implies (consp elements)
                          (< (pseudo-term-list-count elements)
                             (pseudo-term-count term)))))
      :rule-classes :linear)