• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
                • Fty-check-mv-let-call
                • Fty-check-lambda-call
                • Fty-check-if-call
                • Fty-remove-equal-formals-actuals
                • Fty-check-and-call
                • Fty-check-or-call
                • Fty-check-fn-call
                  • Fty-check-not-call
                  • Fty-check-list-call
                  • Fty-fsublis-var-lst
                  • Fty-if-to-if*
                  • Fty-fsublis-var
                • Atc-term-recognizers
                • Atc-input-processing
                • Atc-shallow-embedding
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Fty-pseudo-term-utilities

    Fty-check-fn-call

    FTY version of check-fn-call.

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

    Definitions and Theorems

    Function: fty-check-fn-call

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

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

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

    Theorem: symbolp-of-fty-check-fn-call.fn

    (defthm symbolp-of-fty-check-fn-call.fn
      (b* (((mv ?yes/no ?fn acl2::?args)
            (fty-check-fn-call term)))
        (symbolp fn))
      :rule-classes :rewrite)

    Theorem: pseudo-term-listp-of-fty-check-fn-call.args

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

    Theorem: true-listp-of-fty-check-fn-call.args

    (defthm true-listp-of-fty-check-fn-call.args
      (b* (((mv ?yes/no ?fn acl2::?args)
            (fty-check-fn-call term)))
        (true-listp args))
      :rule-classes :type-prescription)

    Theorem: fty-check-fn-call-not-quote

    (defthm fty-check-fn-call-not-quote
      (b* (((mv ?yes/no ?fn acl2::?args)
            (fty-check-fn-call term)))
        (not (equal fn 'quote))))

    Theorem: pseudo-term-list-count-of-check-fn-call.args

    (defthm pseudo-term-list-count-of-check-fn-call.args
      (implies (pseudo-termp term)
               (b* (((mv yes/no & args)
                     (check-fn-call term)))
                 (implies yes/no
                          (< (pseudo-term-list-count args)
                             (pseudo-term-count term)))))
      :rule-classes :linear)

    Theorem: pseudo-term-list-count-of-fty-check-fn-call.args

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