• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • 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
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Add-macro-fn
          • Check-vars-not-free
          • Safe-mode
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
            • Std/util
            • Defdata
            • Defrstobj
            • Seq
            • Match-tree
            • Defrstobj
            • With-supporters
            • Def-partial-measure
            • Template-subst
            • 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
              • Defthm-domain
              • Event-macros
              • Def-universal-equiv
              • Def-saved-obligs
              • With-supporters-after
              • Definec
              • Sig
              • Outer-local
              • Data-structures
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Interfacing-tools
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • 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.