• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
        • Semantics
          • Step
          • Write-var
          • Outcome
          • Beval
          • Read-var
          • Config
            • Config-fix
            • Config-equiv
            • Make-config
            • Config->comms
            • Change-config
            • Configp
            • Config->env
            • Terminatingp
            • Aeval
            • Step*
            • Stepn
            • Env
          • Abstract-syntax
          • Interpreter
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Config

    Config->env

    Get the env field from a config.

    Signature
    (config->env x) → env
    Arguments
    x — Guard (configp x).
    Returns
    env — Type (envp env).

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

    Definitions and Theorems

    Function: config->env$inline

    (defun config->env$inline (x)
      (declare (xargs :guard (configp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'config->env))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (env-fix (std::da-nth 1 (cdr x))))
             :exec (std::da-nth 1 (cdr x)))))

    Theorem: envp-of-config->env

    (defthm envp-of-config->env
      (b* ((env (config->env$inline x)))
        (envp env))
      :rule-classes :rewrite)

    Theorem: config->env$inline-of-config-fix-x

    (defthm config->env$inline-of-config-fix-x
      (equal (config->env$inline (config-fix x))
             (config->env$inline x)))

    Theorem: config->env$inline-config-equiv-congruence-on-x

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