• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
        • Transformations
        • Language
          • Abstract-syntax
          • Dynamic-semantics
          • Concrete-syntax
          • Static-soundness
            • Static-soundess-of-execution
            • Theorems-about-cstate-to-vars-and-execution
            • Static-soundness-theorems-about-add-funs
            • Static-soundness-theorems-about-modes
            • Static-soundness-theorems-about-init-local
            • Check-var-list
            • Funinfo-safep
            • Static-soundness-theorems-about-find-fun
            • Funenv-to-funtable
            • Theorems-about-checking-expression-lists-in-reverse
            • Static-soundness-of-variable-writing
            • Funscope-to-funtable
            • Funenv-safep
            • Funscope-safep
            • Cstate-to-vars
            • Funinfo-to-funtype
            • Static-soundness-of-variable-addition
            • Static-soundness-of-variable-reading
              • Static-soundness-of-literal-execution
              • Exec-top-block-static-soundness
              • Static-soundness-of-path-execution
            • Static-semantics
            • Errors
          • Yul-json
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Static-soundness

    Static-soundness-of-variable-reading

    Theorems about the static soundness of variable reading.

    If check-var and check-var-list succeed, also read-var-value and read-vars-values do.

    Definitions and Theorems

    Theorem: read-var-value-when-check-var

    (defthm read-var-value-when-check-var
      (implies (check-var var (cstate-to-vars cstate))
               (not (reserrp (read-var-value var cstate)))))

    Theorem: read-vars-values-when-check-var-list

    (defthm read-vars-values-when-check-var-list
      (implies (check-var-list vars (cstate-to-vars cstate))
               (not (reserrp (read-vars-values vars cstate)))))