• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                  • Call-dinfo
                  • Denv
                  • Update-var/const-dinfo-in-scope-list
                  • Update-var/const-dinfo-in-scope
                  • Var/const-dinfo
                  • Update-var/const-dinfo
                  • Add-var/const-dinfo-to-scope
                  • Add-var/const-dinfo
                  • Var/const-dinfo-option
                  • Get-var/const-dinfo-from-scope-list
                  • Denv-option
                  • Get-var/const-dinfo-from-scope
                  • Vcscope-dinfo-option
                  • Vcscope-dinfo-list-option
                  • Vcscope-dinfo
                  • Screens
                    • Screen-message
                    • Screen
                      • Screen-fix
                        • Screen-equiv
                        • Make-screen
                        • Screen->messages
                        • Change-screen
                        • Screenp
                      • Print-message-to-screen
                      • Screen-message-list
                      • Init-screen
                    • Get-var/const-dinfo
                    • Vcscope-dinfo-option-result
                    • Vcscope-dinfo-list-result
                    • Vcscope-dinfo-result
                    • Dynamic-struct-environments
                    • Dynamic-function-environments
                    • Denv-result
                    • Init-denv
                    • Vcscope-dinfo-list
                    • Call-dinfo-list
                  • Arithmetic-operations
                  • Curve-parameterization
                  • Shift-operations
                  • Errors
                  • Value-expressions
                  • Locations
                  • Input-execution
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Screen

    Screen-fix

    Fixing function for screen structures.

    Signature
    (screen-fix x) → new-x
    Arguments
    x — Guard (screenp x).
    Returns
    new-x — Type (screenp new-x).

    Definitions and Theorems

    Function: screen-fix$inline

    (defun screen-fix$inline (x)
     (declare (xargs :guard (screenp x)))
     (let ((__function__ 'screen-fix))
      (declare (ignorable __function__))
      (mbe
        :logic
        (b*
         ((messages
               (screen-message-list-fix (cdr (std::da-nth 0 (cdr x))))))
         (cons :screen (list (cons 'messages messages))))
        :exec x)))

    Theorem: screenp-of-screen-fix

    (defthm screenp-of-screen-fix
      (b* ((new-x (screen-fix$inline x)))
        (screenp new-x))
      :rule-classes :rewrite)

    Theorem: screen-fix-when-screenp

    (defthm screen-fix-when-screenp
      (implies (screenp x)
               (equal (screen-fix x) x)))

    Function: screen-equiv$inline

    (defun screen-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (screenp acl2::x)
                                  (screenp acl2::y))))
      (equal (screen-fix acl2::x)
             (screen-fix acl2::y)))

    Theorem: screen-equiv-is-an-equivalence

    (defthm screen-equiv-is-an-equivalence
      (and (booleanp (screen-equiv x y))
           (screen-equiv x x)
           (implies (screen-equiv x y)
                    (screen-equiv y x))
           (implies (and (screen-equiv x y)
                         (screen-equiv y z))
                    (screen-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: screen-equiv-implies-equal-screen-fix-1

    (defthm screen-equiv-implies-equal-screen-fix-1
      (implies (screen-equiv acl2::x x-equiv)
               (equal (screen-fix acl2::x)
                      (screen-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: screen-fix-under-screen-equiv

    (defthm screen-fix-under-screen-equiv
      (screen-equiv (screen-fix acl2::x)
                    acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-screen-fix-1-forward-to-screen-equiv

    (defthm equal-of-screen-fix-1-forward-to-screen-equiv
      (implies (equal (screen-fix acl2::x) acl2::y)
               (screen-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-screen-fix-2-forward-to-screen-equiv

    (defthm equal-of-screen-fix-2-forward-to-screen-equiv
      (implies (equal acl2::x (screen-fix acl2::y))
               (screen-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: screen-equiv-of-screen-fix-1-forward

    (defthm screen-equiv-of-screen-fix-1-forward
      (implies (screen-equiv (screen-fix acl2::x)
                             acl2::y)
               (screen-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: screen-equiv-of-screen-fix-2-forward

    (defthm screen-equiv-of-screen-fix-2-forward
      (implies (screen-equiv acl2::x (screen-fix acl2::y))
               (screen-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)