• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
          • Soft-future-work
          • Soft-macros
          • Updates-to-workshop-material
          • Soft-implementation
          • Soft-notions
            • Second-order-functions
            • Second-order-function-instances
            • Function-variable-instantiation
            • Second-order-theorems
            • Function-variable-dependency
              • Function-variables
              • Second-order-theorem-instances
          • C
          • 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
    • Soft-notions

    Function-variable-dependency

    Notion of dependency on function variables.

    A term term depends on a function variable fvar iff fvar occurs in term or fvar is one of the function variables that a second-order function that occurs in term depends on..

    A second-order function sofun depends on a function variable fvar iff its body, guard, or (if present) measure depends on fvar.

    A second-order theorem sothm depends on a function variable fvar iff its formula depends on fvar.

    Examples

    Example 1

    Given

    (defunvar ?f (*) => *)
    (defunvar ?g (*) => *)
    (defun2 h[?f] (x) (?f (cons x 3)))

    the term (h[?f] (?g a)) depends exactly on ?g and ?f.

    Example 2

    Given

    (defunvar ?f (*) => *)
    (defunvar ?g (*) => *)
    (defun2 h[?f] (x) (?f (cons x 3)))
    (defun2 k[?f][?g] (a) (h[?f] (?g a)))

    the function k[?f][?g] depends exactly on ?g and ?f.

    Example 3

    Given

    (defunvar ?f (*) => *)
    (defunvar ?g (*) => *)
    (defun2 h[?f] (x) (?f (cons x 3)))
    (defthm th (h[?f] (?g a)))

    the theorem th depends exactly on ?g and ?f.