• 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
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
            • Program
              • Program-fix
              • Program-equiv
              • Make-program
              • Programp
              • Program->packages
              • Program->functions
                • Change-program
              • Lift-program
            • Interpreter
            • Evaluation-states
          • 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
    • Program

    Program->functions

    Get the functions field from a program.

    Signature
    (program->functions x) → functions
    Arguments
    x — Guard (programp x).
    Returns
    functions — Type (function-setp functions).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: program->functions$inline

    (defun program->functions$inline (x)
      (declare (xargs :guard (programp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'program->functions))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (function-set-fix (std::da-nth 1 x)))
             :exec (std::da-nth 1 x))))

    Theorem: function-setp-of-program->functions

    (defthm function-setp-of-program->functions
      (b* ((functions (program->functions$inline x)))
        (function-setp functions))
      :rule-classes :rewrite)

    Theorem: program->functions$inline-of-program-fix-x

    (defthm program->functions$inline-of-program-fix-x
      (equal (program->functions$inline (program-fix x))
             (program->functions$inline x)))

    Theorem: program->functions$inline-program-equiv-congruence-on-x

    (defthm program->functions$inline-program-equiv-congruence-on-x
      (implies (program-equiv x x-equiv)
               (equal (program->functions$inline x)
                      (program->functions$inline x-equiv)))
      :rule-classes :congruence)