• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
        • Type-prescription
        • Rewrite
        • Meta
        • Linear
        • Definition
        • Clause-processor
          • Meta-extract
            • Def-meta-extract
            • Fn-get-def
            • Set-skip-meta-termp-checks
            • Make-summary-data
            • Clause-processor-tools
            • Set-skip-meta-termp-checks!
          • Tau-system
          • Forward-chaining
          • Equivalence
          • Congruence
          • Free-variables
          • Executable-counterpart
          • Induction
          • Type-reasoning
          • Compound-recognizer
          • Rewrite-quoted-constant
          • Elim
          • Well-founded-relation-rule
          • Built-in-clause
          • Well-formedness-guarantee
          • Patterned-congruence
          • Rule-classes-introduction
          • Guard-holders
          • Refinement
          • Type-set-inverter
          • Generalize
          • Corollary
          • Induction-heuristics
          • Backchaining
          • Default-backchain-limit
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Meta-extract

    Fn-get-def

    Look up a function's definition from the world.

    Invocation:

    (fn-get-def fnname state)

    or equivalently,if world is (w state),

    (fn-get-def-w fnname world)

    produces (mv successp formals body), where if successp is true, then (fnname . formals) is equal to body under evaluation.

    fn-get-def can be assumed to work correctly in the context of metafunctions and clause processors via meta-extract.

    The def-meta-extract macro supports fn-get-def indirectly: we rewrite the successp return value to a call of fn-check-def, and def-meta-extract provides a theorem that rewrites an evaluation of (fnname . args) to the evaluation of body under the pairing of formals to args when it can relieve the hypothesis

    (fn-check-def fnname state formals body).